Skip to content

Commit

Permalink
fix: add import to the list of banned keywords, it means that no sp…
Browse files Browse the repository at this point in the history
…ace will be added after it

it was done to fix dynamic imports, it was annoying to always remove the space
  • Loading branch information
zardoy committed Jun 20, 2022
1 parent a4a4f0a commit 28e89ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions typescript/src/completionsAtPosition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export const getCompletionsAtPosition = (
'debugger',
'default',
'super',
'import',
]
prior.entries = prior.entries.map(entry => {
if (entry.kind !== ts.ScriptElementKind.keyword || charAhead === ' ' || bannedKeywords.includes(entry.name)) return entry
Expand Down

0 comments on commit 28e89ac

Please sign in to comment.