You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/development/advanced/debugging.md
+2-8Lines changed: 2 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ This snippet of code can be used to for testing that a basic command works witho
13
13
asyncfunction _test(repository:Repository) {
14
14
vscode.window.showInformationMessage("Testing")
15
15
16
-
let cwd =repository.rootUri.path;
16
+
let cwd =repository.rootUri.fsPath;
17
17
18
18
vscode.window.showInformationMessage(cwd)
19
19
@@ -28,10 +28,4 @@ This was prompted by issue [#93](https://github.com/MichaelCurrin/auto-commit-ms
28
28
29
29
The output in the debug mode did not work because the shell command failed to spawn at all using `exec()` in Node.
30
30
31
-
I printed the `cwd` value in the VS Code info box using code above. I realized that when it was used with `git` in `cmd` on Windows that the path was not valid. Showing as `/c:/...` with a leading forward-slash appropriate for Linux/macOS but not Windows `cmd`.
32
-
33
-
This is the temporary hack until the `vscode` library has a fix:
34
-
35
-
```typescript
36
-
cwd=cwd.replace("/c:/", "c:/")
37
-
```
31
+
The `cwd` value was incorrect from the existing logs which I didn't notice initially but using the test above made it clear.
0 commit comments