Skip to content

Commit 28e89ac

Browse files
committed
fix: add import to the list of banned keywords, it means that no space will be added after it
it was done to fix dynamic imports, it was annoying to always remove the space
1 parent a4a4f0a commit 28e89ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

typescript/src/completionsAtPosition.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ export const getCompletionsAtPosition = (
188188
'debugger',
189189
'default',
190190
'super',
191+
'import',
191192
]
192193
prior.entries = prior.entries.map(entry => {
193194
if (entry.kind !== ts.ScriptElementKind.keyword || charAhead === ' ' || bannedKeywords.includes(entry.name)) return entry

0 commit comments

Comments
 (0)