From dc64cfc4e63926cbd50feb8c50219d305cadba86 Mon Sep 17 00:00:00 2001 From: Kapil Borle Date: Thu, 19 Jan 2017 17:52:00 -0800 Subject: [PATCH] Send file uri instead of path to server --- src/features/DocumentFormatter.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/features/DocumentFormatter.ts b/src/features/DocumentFormatter.ts index dc6c0dda49..a63f91ded5 100644 --- a/src/features/DocumentFormatter.ts +++ b/src/features/DocumentFormatter.ts @@ -25,7 +25,7 @@ export namespace ScriptFileMarkersRequest { // TODO move some of the common interface to a separate file? interface ScriptFileMarkersRequestParams { - filePath: string; + fileUri: string; settings: any; } @@ -122,10 +122,11 @@ class PSDocumentFormattingEditProvider implements DocumentFormattingEditProvider let rule = this.ruleOrder[index]; let uniqueEdits: ScriptRegion[] = []; let edits: ScriptRegion[]; + return this.languageClient.sendRequest( ScriptFileMarkersRequest.type, { - filePath: document.fileName, + fileUri: document.uri.toString(), settings: this.getSettings(rule) }) .then((result: ScriptFileMarkersRequestResultParams) => {