Skip to content

Commit

Permalink
fix(vscode): handle non-windows paths
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Aug 6, 2023
1 parent 2b5690b commit d3bfe96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vscode-extension/server/src/server.ts
Expand Up @@ -142,8 +142,11 @@ documents.onDidChangeContent(change => {

let globalTmpDir = '';

// TODO: this should not be necessary. Get path in better OS-agnostic way.
function cleanupFile(fname:string)
{
if (os.platform() !== 'win32')
return fname.trim();
return fname.replace(/\//g, '\\').trim();
}
function fileMatches(f1:string, f2:string)
Expand Down

0 comments on commit d3bfe96

Please sign in to comment.