Skip to content

type and namespace no longer appear as global keyword completion #33615

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

Closed
uniqueiniquity opened this issue Sep 26, 2019 · 4 comments · Fixed by #34491
Closed

type and namespace no longer appear as global keyword completion #33615

uniqueiniquity opened this issue Sep 26, 2019 · 4 comments · Fixed by #34491
Assignees
Labels
Bug A bug in TypeScript Domain: Completion Lists The issue relates to showing completion lists in an editor Fix Available A PR has been opened for this issue Good First Issue Well scoped, documented and has the green light

Comments

@uniqueiniquity
Copy link
Contributor

TypeScript Version: 3.6.2

Search Terms:
keyword, completion, global, namespace

Code

n

Expected behavior:
Completion gives namespace.

Actual behavior:
Completion does not give namespace.

Playground Link: N/A

Related Issues:
Broken by #32474
See https://developercommunity.visualstudio.com/content/problem/749982/typescript-intellisense-is-incorrect-for-namespace.html for report.

@DanielRosenwasser DanielRosenwasser added this to the TypeScript 3.7.1 milestone Sep 27, 2019
@DanielRosenwasser DanielRosenwasser added the Domain: Completion Lists The issue relates to showing completion lists in an editor label Sep 27, 2019
@DanielRosenwasser
Copy link
Member

Uh, should the type keyword be included too? Seems that list was too eager.

@DanielRosenwasser DanielRosenwasser added Bug A bug in TypeScript Good First Issue Well scoped, documented and has the green light Help Wanted You can do this labels Sep 27, 2019
@DanielRosenwasser DanielRosenwasser changed the title namespace no longer appears as global keyword completion type and namespace no longer appear as global keyword completion Sep 27, 2019
@simplywondrous
Copy link

@sandersn Can I try working on this?

@sandersn
Copy link
Member

sandersn commented Oct 1, 2019

Sure! I re-reviewed the change and I think it was the drive-by fix in getTypescriptKeywordCompletions that made this happen; the code was clearly not operating as intended since it was truthy-checking a kind property. But I don't think the code that was there was correct either.

I noticed that I added declare,module and functionlike-body-keyword to the existing code. So probably you have to add namespace to the list plus any other keyword that got removed that you want to put back.

Ping me @DanielRosenwasser and @andrewbranch on the review when it's ready.

@sandersn
Copy link
Member

@simplywondrous since the beta ends next Monday, I'm going to go ahead and do this.

@sandersn sandersn added Fix Available A PR has been opened for this issue and removed Help Wanted You can do this labels Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: Completion Lists The issue relates to showing completion lists in an editor Fix Available A PR has been opened for this issue Good First Issue Well scoped, documented and has the green light
Projects
None yet
4 participants