-
Notifications
You must be signed in to change notification settings - Fork 34.6k
[typescript-language-features] Support import statement completions for TypeScript 4.3 #119009
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[typescript-language-features] Support import statement completions for TypeScript 4.3 #119009
Conversation
Looks good to me! Will merge once the TS side of the fix is merged. VS Code endgame starts next week, so we'd probably want to target 1.56 insiders |
@@ -5,6 +5,8 @@ | |||
"configuration.typescript": "TypeScript", | |||
"configuration.suggest.completeFunctionCalls": "Complete functions with their parameter signature.", | |||
"configuration.suggest.includeAutomaticOptionalChainCompletions": "Enable/disable showing completions on potentially undefined values that insert an optional chain call. Requires TS 3.7+ and strict null checks to be enabled.", | |||
"configuration.suggest.includeCompletionsForImportStatements": "Enable/disable auto-import-style completions on partially-typed import statements. Requires using TypeScript 4.3+ in the workspace.", | |||
"configuration.suggest.includeCompletionsWithSnippetText": "Enable/disable snippet completions from TS Server. Requires using TypeScript 4.3+ in the workspace.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to add an explicit option for snippet-formatted completions, since clients that don’t expect them would insert literal $1
instead of tab stops.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just as a future note: This is the first example where TS Server uses snippets, but I have a long standing TS issue about using snippets in more places: microsoft/TypeScript#25207
@mjbvz the TS PR is merged. Feel free to merge this one whenever you’re ready. |
Thanks! |
Counterpart of microsoft/TypeScript#43149 (cc @mjbvz)