Skip to content

Commit 3d3b0c0

Browse files
authored
Merge pull request #350 from PowerShell/kapilmb/code-format-untitled
Change file path to uri in marker request
2 parents 705bafb + d83622f commit 3d3b0c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/PowerShellEditorServices.Protocol/LanguageServer/ScriptFileMarkersRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ScriptFileMarkerRequestParams
2727
/// <summary>
2828
/// Path of the file for which the markers are requested.
2929
/// </summary>
30-
public string filePath;
30+
public string fileUri;
3131

3232
/// <summary>
3333
/// Settings to be provided to ScriptAnalyzer to get the markers.

src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ private async Task HandleScriptFileMarkersRequest(
241241
RequestContext<ScriptFileMarkerRequestResultParams> requestContext)
242242
{
243243
var markers = await editorSession.AnalysisService.GetSemanticMarkersAsync(
244-
editorSession.Workspace.GetFile(requestParams.filePath),
244+
editorSession.Workspace.GetFile(requestParams.fileUri),
245245
editorSession.AnalysisService.GetPSSASettingsHashtable(requestParams.settings));
246246
await requestContext.SendResult(new ScriptFileMarkerRequestResultParams {
247247
markers = markers

0 commit comments

Comments
 (0)