mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Tweak wording and position of copilot infer-types
This commit is contained in:
@@ -341,7 +341,7 @@ class TypeScriptQuickFixProvider implements vscode.CodeActionProvider<VsCodeCode
|
|||||||
expand = { kind: 'code-action', action };
|
expand = { kind: 'code-action', action };
|
||||||
}
|
}
|
||||||
else if (action.fixName === fixNames.inferFromUsage && vscode.workspace.getConfiguration('typescript').get('experimental.aiCodeActions.inferAndAddTypes')) {
|
else if (action.fixName === fixNames.inferFromUsage && vscode.workspace.getConfiguration('typescript').get('experimental.aiCodeActions.inferAndAddTypes')) {
|
||||||
const inferFromBody = new VsCodeCodeAction(action, 'Copilot: Infer and add types', vscode.CodeActionKind.QuickFix);
|
const inferFromBody = new VsCodeCodeAction(action, 'Infer types using Copilot', vscode.CodeActionKind.QuickFix);
|
||||||
inferFromBody.edit = new vscode.WorkspaceEdit();
|
inferFromBody.edit = new vscode.WorkspaceEdit();
|
||||||
inferFromBody.diagnostics = [diagnostic];
|
inferFromBody.diagnostics = [diagnostic];
|
||||||
inferFromBody.command = {
|
inferFromBody.command = {
|
||||||
@@ -388,7 +388,7 @@ class TypeScriptQuickFixProvider implements vscode.CodeActionProvider<VsCodeCode
|
|||||||
}],
|
}],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
actions.unshift(codeAction);
|
actions.push(codeAction);
|
||||||
return actions;
|
return actions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user