uctakeoff / vscode-counter

VS Code extension: counts blank lines, comment lines, and physical lines of source code in many programming languages.
MIT License
152 stars 20 forks source link

Doesn't appear to work when used in a tunnel #90

Open bseddon opened 1 year ago

bseddon commented 1 year ago

When the extension is installed and used on my server it works well. However, most of my use of VS Code is remote using the 'tunnel' feature of VS Code to work with code on the server. When the extension is installed in this configuration, although its installed on the server and the paths shown in VS Code are server paths, the extension seems assume the server paths are local paths so it fails to find files.

It's not a big issue because when line counting is needed I can sign into the sever and use VS Code and the extension there. But would be nice to be able to use it while using VS Code remotely.

uctakeoff commented 1 year ago

Is this feature useful? https://github.com/uctakeoff/vscode-counter#save-language-configurations

bseddon commented 1 year ago

I've just tried it but it doesn't seem to help. When I want to count the files in a directory while using a tunnel I'm prompted to select the directory but the only valid folders are only my laptop not on the remote server.

If I use ctrl+o to open a file while using VS Code connected to a tunnel, VS code will offer and expect to use files on the remote machine. The counter extension is different this way.

Also, VS Code doesn't seem to recognize the extension when installed in the remote machine. That is, the 'VS Code Counter' options only appear when the extension is installed on my laptop. It can be installed into the remote environment but then it's options do not appear in the command palette. This is different to other extensions installed only into the remote environment. Even though, for example, GitHub Co-pilot is installed into the remote environment, its palette commands are available.

Best wishes.