Skip to content

Windows run #259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 13, 2020
Prev Previous commit
Next Next commit
Temp fix for WORKSPACE_ROOT on Windows
Signed-off-by: argemiront <[email protected]>
  • Loading branch information
argemiront committed Apr 13, 2020
commit f29d40d2ae5d0316fa25251268f2c8541b44815e
6 changes: 6 additions & 0 deletions src/services/workspace/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,11 @@ export const getWorkspaceRoot = (): string => {
// a user may have multiple workspace folders
// for simplicity, assume the first is the active workspace
const workspaceRoot: vscode.WorkspaceFolder = workspaceRoots[0]

// Remove leading / on windows machines. Temp solution
if (env.OS_PLATFORM === 'win32') {
return workspaceRoot.uri.path.substr(1)
}

return workspaceRoot.uri.path
}