File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,15 @@ export class RazorCompletionItemProvider
118
118
completionItem . commitCharacters = completionItem . commitCharacters . filter (
119
119
commitChar => commitChar !== '{' && commitChar !== '(' && commitChar !== '*' ) ;
120
120
}
121
+
122
+ // for intellicode items, manually set the insertText to avoid including stars in the commit
123
+ if ( completionItem . label . toString ( ) . includes ( '\u2605' ) ) {
124
+ // vscode.CompletionItem does not have textEditText, which was added in 3.17
125
+ let intellicodeCompletion : CompletionItem = completionItem as CompletionItem ;
126
+ if ( intellicodeCompletion . textEditText ) {
127
+ completionItem . insertText = intellicodeCompletion . textEditText ;
128
+ }
129
+ }
121
130
}
122
131
123
132
const isIncomplete = completions instanceof Array ? false
You can’t perform that action at this time.
0 commit comments