diff --git a/packages/typespec-vscode/src/code-action-provider.ts b/packages/typespec-vscode/src/code-action-provider.ts index 803242b392..218c765f5d 100644 --- a/packages/typespec-vscode/src/code-action-provider.ts +++ b/packages/typespec-vscode/src/code-action-provider.ts @@ -1,5 +1,5 @@ import vscode from "vscode"; -import { OPEN_URL_COMMAND } from "./vscode-command.js"; +import { CommandName } from "./types.js"; export function createCodeActionProvider() { return vscode.languages.registerCodeActionsProvider( @@ -61,7 +61,7 @@ export class TypeSpecCodeActionProvider implements vscode.CodeActionProvider { vscode.CodeActionKind.QuickFix, ); action.command = { - command: OPEN_URL_COMMAND, + command: CommandName.OpenUrl, title: diagnostic.message, arguments: [url], };