Skip to content

Do not offer completions for default module member symbol #55231

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

Andarist
Copy link
Contributor

@Andarist Andarist commented Aug 1, 2023

fixes #3229

@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label Aug 1, 2023
verify.completions(
{
marker: "1",
includes: [{ name: "default", kind: "keyword", sortText: completion.SortText.GlobalsOrKeywords }],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to test this through smth like exact: completion.globals but I wasn't able to figure out quickly which one should I use here.

Copy link
Member

@DanielRosenwasser DanielRosenwasser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As soon as I saw the title I was pretty sure it was for an issue I filed about 8 years ago. 😄

@DanielRosenwasser DanielRosenwasser merged commit defe33a into microsoft:main Aug 1, 2023
@Andarist Andarist deleted the fix/skip-default-module-member-completion branch August 1, 2023 22:13
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
None yet
Development

Successfully merging this pull request may close these issues.

'default' gets incorrect completion info when a default export is present
3 participants