Skip to content

Commit

Permalink
Update code action resolve params
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwengier committed Oct 16, 2023
1 parent 2d2afb2 commit 51658f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/razor/src/codeActions/codeActionsHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 51658f1

Please sign in to comment.