We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ab7111 commit 7e27619Copy full SHA for 7e27619
1 file changed
typescript/src/completionsAtPosition.ts
@@ -223,9 +223,10 @@ export const getCompletionsAtPosition = (
223
// )
224
const indexToPatch = prior.entries.findIndex(({ name, kind }) => name === 'toString' && kind !== ts.ScriptElementKind.warning)
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
+ const entryToPatch = prior.entries[indexToPatch]!
+ entryToPatch.insertText = `${entryToPatch.insertText ?? entryToPatch.name}()`
+ entryToPatch.isSnippet = true
229
+ entryToPatch.kind = ts.ScriptElementKind.constElement
230
}
231
232
0 commit comments