Skip to content

Commit

Permalink
Fix: quickfix was still showing Copilot-only
Browse files Browse the repository at this point in the history
It's a workaround--I'm not sure of the right way to do this.
  • Loading branch information
sandersn committed Jan 5, 2024
1 parent 75929d0 commit 6558500
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,9 @@ class TypeScriptQuickFixProvider implements vscode.CodeActionProvider<VsCodeCode
};
}
if (expand && message !== undefined) {
const aiCodeAction = new VsCodeCodeAction(action, action.description, vscode.CodeActionKind.QuickFix);
const aiCodeAction = new VsCodeCodeAction(action, title, vscode.CodeActionKind.QuickFix);
aiCodeAction.edit = getEditForCodeAction(this.client, action);
aiCodeAction.edit?.insert(document.uri, diagnostic.range.start, '');
aiCodeAction.diagnostics = [diagnostic];
aiCodeAction.command = {
command: CompositeCommand.ID,
Expand Down

0 comments on commit 6558500

Please sign in to comment.