Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename symbol
Browse files Browse the repository at this point in the history
lonitra committed Aug 9, 2023

Verified

This commit was signed with the committer’s verified signature.
huangzhen1997 Joe Huang
1 parent 9f6bdcc commit abed43e
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/lsptoolshost/roslynLanguageServer.ts
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ export class RoslynLanguageServer {
public static readonly resolveCodeActionCommand: string = 'roslyn.resolveCodeAction';
public static readonly provideCompletionsCommand: string = 'roslyn.provideCompletions';
public static readonly resolveCompletionsCommand: string = 'roslyn.resolveCompletion';
public static readonly roslynSimplifyTypeNamesCommand: string = 'roslyn.simplifyMethod';
public static readonly roslynSimplifyMethodCommand: string = 'roslyn.simplifyMethod';
public static readonly razorInitializeCommand: string = 'razor.initialize';

// These are notifications we will get from the LSP server and will forward to the Razor extension.
@@ -896,7 +896,7 @@ function registerRazorCommands(context: vscode.ExtensionContext, languageServer:
);
context.subscriptions.push(
vscode.commands.registerCommand(
RoslynLanguageServer.roslynSimplifyTypeNamesCommand,
RoslynLanguageServer.roslynSimplifyMethodCommand,
async (request: SerializableSimplifyMethodParams) => {
const simplifyTypeNamesRequestType = new RequestType<SerializableSimplifyMethodParams, TextEdit[], any>(
'roslyn/simplifyMethod'
4 changes: 2 additions & 2 deletions src/razor/src/extension.ts
Original file line number Diff line number Diff line change
@@ -181,7 +181,7 @@ export async function activate(
documentManager,
logger
);
const razorSimplifyTypeNamesHandler = new RazorSimplifyMethodHandler(
const razorSimplifyMethodHandler = new RazorSimplifyMethodHandler(
documentSynchronizer,
languageServerClient,
languageServiceClient,
@@ -231,7 +231,7 @@ export async function activate(
semanticTokenHandler.register(),
razorDiagnosticHandler.register(),
codeActionsHandler.register(),
razorSimplifyTypeNamesHandler.register(),
razorSimplifyMethodHandler.register(),
]);
});

2 changes: 1 addition & 1 deletion src/razor/src/simplify/razorSimplifyMethodHandler.ts
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ export class RazorSimplifyMethodHandler extends RazorLanguageFeatureBase {

const params = new SerializableSimplifyMethodParams(identifier, request.textEdit);
const response: TextEdit[] | undefined = await vscode.commands.executeCommand(
RoslynLanguageServer.roslynSimplifyTypeNamesCommand,
RoslynLanguageServer.roslynSimplifyMethodCommand,
params
);

0 comments on commit abed43e

Please sign in to comment.