bixat / vscode-branch-timer

Extension for track work duration on every branch
https://marketplace.visualstudio.com/items?itemName=vscode-branch-timer.branch-timer
MIT License
5 stars 1 forks source link

Not working on windows #26

Open L-Carloni opened 3 weeks ago

L-Carloni commented 3 weeks ago

VScode info: Version: 1.92.2 (user setup) Commit: fee1edb8d6d72a0ddff41e5f71a671c23ed924b9 Date: 2024-08-14T17:29:30.058Z Electron: 30.1.2 ElectronBuildId: 9870757 Chromium: 124.0.6367.243 Node.js: 20.14.0 V8: 12.4.254.20-electron.0 OS: Windows_NT x64 10.0.22631

Issue Extension won't start

Probable cause It fails to open any file as workspacePath is incorrectly defined.

Possible solution in file src/extension.ts at line 23 replace

const workspacePath = workspace.workspaceFolders![0].uri.path;

with

const workspacePath = workspace.workspaceFolders![0].uri.fsPath;

Tested on system above and works, not tested on any linux disto

Thanks a lot for you work, it's very useful

M97Chahboun commented 3 weeks ago

Thank you for your issue report @L-Carloni