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
fix the Workspace path issue
Signed-off-by: argemiront <[email protected]>
  • Loading branch information
argemiront committed Apr 13, 2020
commit 53dde7a768b9b353864b94140250e3ca05dced23
7 changes: 1 addition & 6 deletions src/services/workspace/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,5 @@ export const getWorkspaceRoot = (): string => {
// 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
return workspaceRoot.uri.fsPath
}