Skip to content

Commit

Permalink
Address restore feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dibarbet committed Jan 9, 2024
1 parent e043d3e commit 9cc41f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/lsptoolshost/restore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
RestoreParams,
RestorePartialResult,
RestoreRequest,
ProjectHasUnresolvedDependenciesRequest,
ProjectNeedsRestoreRequest,
} from './roslynProtocol';
import path = require('path');

Expand All @@ -32,7 +32,7 @@ export function registerRestoreCommands(
})
);

languageServer.registerOnRequest(ProjectHasUnresolvedDependenciesRequest.type, async (params) => {
languageServer.registerOnRequest(ProjectNeedsRestoreRequest.type, async (params) => {
await restore(languageServer, restoreChannel, params.projectFilePaths, false);
});
}
Expand Down
8 changes: 4 additions & 4 deletions src/lsptoolshost/roslynProtocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export interface RestorePartialResult {
message: string;
}

export interface UnresolvedProjectDependenciesParams {
export interface ProjectNeedsRestoreName {
/**
* The set of projects that have unresolved dependencies and require a restore.
*/
Expand Down Expand Up @@ -268,8 +268,8 @@ export namespace RestorableProjects {
export const type = new lsp.RequestType0<string[], void>(method);
}

export namespace ProjectHasUnresolvedDependenciesRequest {
export const method = 'workspace/_roslyn_projectHasUnresolvedDependencies';
export namespace ProjectNeedsRestoreRequest {
export const method = 'workspace/_roslyn_projectNeedsRestore';
export const messageDirection: lsp.MessageDirection = lsp.MessageDirection.serverToClient;
export const type = new lsp.RequestType<UnresolvedProjectDependenciesParams, void, void>(method);
export const type = new lsp.RequestType<ProjectNeedsRestoreName, void, void>(method);
}

0 comments on commit 9cc41f6

Please sign in to comment.