diff --git a/Flow.Plugin.VSCodeWorkspaces.csproj b/Flow.Plugin.VSCodeWorkspaces.csproj index eb459fc..b56045b 100644 --- a/Flow.Plugin.VSCodeWorkspaces.csproj +++ b/Flow.Plugin.VSCodeWorkspaces.csproj @@ -13,6 +13,7 @@ latest warnings true + win-x64 true diff --git a/RemoteMachinesHelper/VSCodeRemoteMachinesApi.cs b/RemoteMachinesHelper/VSCodeRemoteMachinesApi.cs index 331b12a..64b9772 100644 --- a/RemoteMachinesHelper/VSCodeRemoteMachinesApi.cs +++ b/RemoteMachinesHelper/VSCodeRemoteMachinesApi.cs @@ -34,7 +34,11 @@ public List Machines try { - JsonElement vscodeSettingsFile = JsonSerializer.Deserialize(fileContent); + JsonElement vscodeSettingsFile = JsonSerializer.Deserialize(fileContent, new JsonSerializerOptions + { + AllowTrailingCommas = true, + ReadCommentHandling = JsonCommentHandling.Skip, + }); if (vscodeSettingsFile.TryGetProperty("remote.SSH.configFile", out var pathElement)) { var path = pathElement.GetString(); diff --git a/plugin.json b/plugin.json index 37188b8..a54cd28 100644 --- a/plugin.json +++ b/plugin.json @@ -4,7 +4,7 @@ "ActionKeyword": "{", "Name": "VS Code Workspaces", "Author": "ricardosantos9521", - "Version": "1.1.1", + "Version": "1.1.2", "Language": "csharp", "Website": "https://github.com/ricardosantos9521/PowerToys/", "ExecuteFileName": "Flow.Plugin.VSCodeWorkspaces.dll",