Skip to content

Commit 594672e

Browse files
committed
fix: keyword star bug when intellisense extension is installed
1 parent 5e92fd1 commit 594672e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typescript/src/completions/keywordsSpace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default (entries: ts.CompletionEntry[], scriptSnapshot: ts.IScriptSnapsho
3636
return entry
3737
}
3838
if (entry.name === 'default' && !includeDefaultSpace) return entry
39-
return { ...entry, insertText: `${entry.name} ` }
39+
return { ...entry, insertText: `${entry.insertText ?? entry.name} ` }
4040
})
4141
}
4242

0 commit comments

Comments
 (0)