Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf29d40d

Browse files
committed
Temp fix for WORKSPACE_ROOT on Windows
Signed-off-by: argemiront <argemiront@gmail.com>
1 parent454ea9d commitf29d40d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎src/services/workspace/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,11 @@ export const getWorkspaceRoot = (): string => {
3030
// a user may have multiple workspace folders
3131
// for simplicity, assume the first is the active workspace
3232
constworkspaceRoot:vscode.WorkspaceFolder=workspaceRoots[0]
33+
34+
// Remove leading / on windows machines. Temp solution
35+
if(env.OS_PLATFORM==='win32'){
36+
returnworkspaceRoot.uri.path.substr(1)
37+
}
38+
3339
returnworkspaceRoot.uri.path
3440
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp