bugfix - typescript code completion doesn't recognize property modifiers when more than one exists (#94165)
* fix microsoft/TypeScript#37117 - code completion in typescript fails to recognize property modifiers * split kindModifiers by comma or spaces
This commit is contained in:
parent
acdfa7362e
commit
ce57f8ad58
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ class MyCompletionItem extends vscode.CompletionItem {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tsEntry.kindModifiers) {
|
if (tsEntry.kindModifiers) {
|
||||||
const kindModifiers = new Set(tsEntry.kindModifiers.split(/\s+/g));
|
const kindModifiers = new Set(tsEntry.kindModifiers.split(/,|\s+/g));
|
||||||
if (kindModifiers.has(PConst.KindModifiers.optional)) {
|
if (kindModifiers.has(PConst.KindModifiers.optional)) {
|
||||||
if (!this.insertText) {
|
if (!this.insertText) {
|
||||||
this.insertText = this.label;
|
this.insertText = this.label;
|
||||||
|
|
Loading…
Reference in a new issue