-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Add support of contextual quick info #37451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
50d62d7
to
efbf539
Compare
src/services/services.ts
Outdated
@@ -283,6 +283,12 @@ namespace ts { | |||
} | |||
} | |||
|
|||
enum ContextualDocumentationType { | |||
None = "None", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: we prefer (usually numeric) const enums for efficiency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems Map
interface cannot work with the numerical enum, does it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't need to be map.. Jus two properties that store array of decl comments one for get and one for set accessor ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay...but I felt maybe it will take more contextual info in the future. For example getter or setter in LHS or RHS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But never mind, We could refactor in time.
91cb068
to
98eb23a
Compare
up 🆙 |
Fixes #20966