File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -223,9 +223,10 @@ export const getCompletionsAtPosition = (
223
223
// )
224
224
const indexToPatch = prior . entries . findIndex ( ( { name, kind } ) => name === 'toString' && kind !== ts . ScriptElementKind . warning )
225
225
if ( indexToPatch !== - 1 ) {
226
- prior . entries [ indexToPatch ] ! . insertText = `${ prior . entries [ indexToPatch ] ! . insertText ?? prior . entries [ indexToPatch ] ! . name } ()`
227
- prior . entries [ indexToPatch ] ! . kind = ts . ScriptElementKind . constElement
228
- // prior.entries[indexToPatch]!.isSnippet = true
226
+ const entryToPatch = prior . entries [ indexToPatch ] !
227
+ entryToPatch . insertText = `${ entryToPatch . insertText ?? entryToPatch . name } ()`
228
+ entryToPatch . isSnippet = true
229
+ entryToPatch . kind = ts . ScriptElementKind . constElement
229
230
}
230
231
}
231
232
You can’t perform that action at this time.
0 commit comments