Skip to content

Commit fcc13c1

Browse files
Changes needed for Omnisharp migration of PowerShellEditorServices (#2226)
* everything needed so far (#2118) * Needed changes due to lack of support for strings over the wire. (#2150) * everything needed so far * needed changes due to lack of support for strings over the wire
1 parent 661a9ee commit fcc13c1

File tree

7 files changed

+18
-376
lines changed

7 files changed

+18
-376
lines changed

src/features/DebugSession.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ export class PickRunspaceFeature implements IFeature {
570570
}
571571

572572
private pickRunspace(processId): Thenable<string> {
573-
return this.languageClient.sendRequest(GetRunspaceRequestType, processId).then((response) => {
573+
return this.languageClient.sendRequest(GetRunspaceRequestType, { processId }).then((response) => {
574574
const items: IRunspaceItem[] = [];
575575

576576
for (const runspace of response) {

src/features/DocumentFormatter.ts

-356
This file was deleted.

src/features/ExpandAlias.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { LanguageClient, NotificationType, RequestType } from "vscode-languagecl
88
import { IFeature } from "../feature";
99
import { Logger } from "../logging";
1010

11-
export const ExpandAliasRequestType = new RequestType<string, any, void, void>("powerShell/expandAlias");
11+
export const ExpandAliasRequestType = new RequestType<any, any, void, void>("powerShell/expandAlias");
1212

1313
export class ExpandAliasFeature implements IFeature {
1414
private command: vscode.Disposable;
@@ -39,9 +39,9 @@ export class ExpandAliasFeature implements IFeature {
3939
range = new vscode.Range(sls.line, sls.character, sle.line, sle.character);
4040
}
4141

42-
this.languageClient.sendRequest(ExpandAliasRequestType, text).then((result) => {
42+
this.languageClient.sendRequest(ExpandAliasRequestType, { text }).then((result) => {
4343
editor.edit((editBuilder) => {
44-
editBuilder.replace(range, result);
44+
editBuilder.replace(range, result.text);
4545
});
4646
});
4747
});

0 commit comments

Comments
 (0)