Skip to content

Comments

bugfix - typescript code completion doesn't recognize property modifiers when more than one exists#94165

Merged
mjbvz merged 2 commits intomicrosoft:masterfrom
Git-Lior:bugfix-ts-completion-modifiers
Apr 7, 2020
Merged

bugfix - typescript code completion doesn't recognize property modifiers when more than one exists#94165
mjbvz merged 2 commits intomicrosoft:masterfrom
Git-Lior:bugfix-ts-completion-modifiers

Conversation

@Git-Lior
Copy link
Contributor

@Git-Lior Git-Lior commented Apr 1, 2020

This PR fixes microsoft/TypeScript#37117 (this issue also contains an example of the bug)

This is a simple fix to a simple problem. According to the typescript language service API, the property kindModifiers is comma-separated. Here is the relevant interface:

https://github.com/microsoft/TypeScript/blob/9c4cbd64fb020970f47b4b068f4007810e388a81/src/services/types.ts#L1051-L1054

the problem occurs when more than one modifier exists, and then no modifier is recognized.

@Git-Lior Git-Lior force-pushed the bugfix-ts-completion-modifiers branch from 1150a31 to 4a284eb Compare April 5, 2020 19:30
@mjbvz mjbvz merged commit ce57f8a into microsoft:master Apr 7, 2020
@mjbvz
Copy link
Collaborator

mjbvz commented Apr 7, 2020

Thanks! This is scheduled for VS code 1.45 and will be in the first 1.45 insiders build

@Git-Lior Git-Lior deleted the bugfix-ts-completion-modifiers branch April 7, 2020 20:29
@github-actions github-actions bot locked and limited conversation to collaborators May 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Partial object return has inconsistent intellisense

2 participants