Skip to content

Commit fdf6802

Browse files
authored
Merge pull request microsoft#183425 from microsoft/aiday/polishingQuickFixes
Polishing the typescript quick fixes
2 parents f6555ce + 81f98eb commit fdf6802

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

extensions/typescript-language-features/package.nls.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"configuration.suggest.completeFunctionCalls": "Complete functions with their parameter signature.",
99
"configuration.suggest.includeAutomaticOptionalChainCompletions": "Enable/disable showing completions on potentially undefined values that insert an optional chain call. Requires strict null checks to be enabled.",
1010
"configuration.suggest.includeCompletionsForImportStatements": "Enable/disable auto-import-style completions on partially-typed import statements.",
11-
"typescript.experimental.aiQuickFix": "Enable/disable AI-assisted quick fixes.",
11+
"typescript.experimental.aiQuickFix": "Enable/disable AI-assisted quick fixes. Requires an extension providing AI chat functionality.",
1212
"typescript.tsdk.desc": "Specifies the folder path to the tsserver and `lib*.d.ts` files under a TypeScript install to use for IntelliSense, for example: `./node_modules/typescript/lib`.\n\n- When specified as a user setting, the TypeScript version from `typescript.tsdk` automatically replaces the built-in TypeScript version.\n- When specified as a workspace setting, `typescript.tsdk` allows you to switch to use that workspace version of TypeScript for IntelliSense with the `TypeScript: Select TypeScript version` command.\n\nSee the [TypeScript documentation](https://code.visualstudio.com/docs/typescript/typescript-compiling#_using-newer-typescript-versions) for more detail about managing TypeScript versions.",
1313
"typescript.disableAutomaticTypeAcquisition": "Disables [automatic type acquisition](https://code.visualstudio.com/docs/nodejs/working-with-javascript#_typings-and-automatic-type-acquisition). Automatic type acquisition fetches `@types` packages from npm to improve IntelliSense for external libraries.",
1414
"typescript.enablePromptUseWorkspaceTsdk": "Enables prompting of users to use the TypeScript version configured in the workspace for Intellisense.",

extensions/typescript-language-features/src/languageFeatures/quickFix.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ type ApplyCodeActionCommand_args = {
2828

2929
class EditorChatFollowUp implements Command {
3030

31-
id: string = 'needsBetterName.editorChateFollowUp';
31+
id: string = '_typescript.quickFix.editorChatFollowUp';
3232

3333
constructor(private readonly prompt: string, private readonly document: vscode.TextDocument, private readonly range: vscode.Range, private readonly client: ITypeScriptServiceClient) {
34-
3534
}
3635

3736
async execute() {
@@ -50,7 +49,7 @@ class EditorChatFollowUp implements Command {
5049
if (!filepath) {
5150
return;
5251
}
53-
const response = await this.client.execute('navtree', { file: filepath }, (new vscode.CancellationTokenSource()).token);
52+
const response = await this.client.execute('navtree', { file: filepath }, nulToken);
5453
if (response.type !== 'response' || !response.body?.childItems) {
5554
return;
5655
}

0 commit comments

Comments
 (0)