Skip to content

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

Merged
merged 5 commits into from
May 6, 2020

Conversation

Kingwl
Copy link
Contributor

@Kingwl Kingwl commented Mar 18, 2020

Fixes #20966

@Kingwl Kingwl force-pushed the quick_info_contextual branch from 50d62d7 to efbf539 Compare March 18, 2020 15:22
@@ -283,6 +283,12 @@ namespace ts {
}
}

enum ContextualDocumentationType {
None = "None",
Copy link
Member

@DanielRosenwasser DanielRosenwasser Mar 23, 2020

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

Copy link
Contributor Author

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?

Copy link
Member

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 ?

Copy link
Contributor Author

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

Copy link
Contributor Author

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.

@Kingwl Kingwl force-pushed the quick_info_contextual branch from 91cb068 to 98eb23a Compare March 24, 2020 14:56
@sandersn sandersn added the For Backlog Bug PRs that fix a backlog bug label Apr 1, 2020
@sandersn sandersn self-assigned this Apr 1, 2020
@Kingwl
Copy link
Contributor Author

Kingwl commented Apr 26, 2020

up 🆙

@sandersn sandersn merged commit 8d78984 into microsoft:master May 6, 2020
@Kingwl Kingwl deleted the quick_info_contextual branch May 7, 2020 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Backlog Bug PRs that fix a backlog bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

get (or set) function shows description from *both* get and set function on hover
4 participants