diff --git a/src/razor/src/codeActions/codeActionsHandler.ts b/src/razor/src/codeActions/codeActionsHandler.ts index 017f1f6118..c91446023d 100644 --- a/src/razor/src/codeActions/codeActionsHandler.ts +++ b/src/razor/src/codeActions/codeActionsHandler.ts @@ -98,7 +98,7 @@ export class CodeActionsHandler { ) { try { const codeAction = resolveCodeActionParams.codeAction; - const razorDocumentUri = vscode.Uri.parse(resolveCodeActionParams.uri, true); + const razorDocumentUri = vscode.Uri.parse(resolveCodeActionParams.identifier.uri, true); const razorDocument = await this.documentManager.getDocument(razorDocumentUri); if (razorDocument === undefined) { return this.emptyCodeAction; diff --git a/src/razor/src/codeActions/serializableRazorResolveCodeActionParams.ts b/src/razor/src/codeActions/serializableRazorResolveCodeActionParams.ts index e24a3c3dc6..d449fdab22 100644 --- a/src/razor/src/codeActions/serializableRazorResolveCodeActionParams.ts +++ b/src/razor/src/codeActions/serializableRazorResolveCodeActionParams.ts @@ -5,10 +5,11 @@ import { LanguageKind } from '../rpc/languageKind'; import { CodeAction } from 'vscode-languageserver-protocol'; +import { SerializableTextDocumentIdentifier } from '../rpc/serializableTextDocumentIdentifier'; export interface SerializableRazorResolveCodeActionParams { hostDocumentVersion: number; - uri: string; + identifier: SerializableTextDocumentIdentifier; languageKind: LanguageKind; codeAction: CodeAction; }