alefragnani / vscode-jenkins-status

Jenkins Status Extension for Visual Studio Code
MIT License
27 stars 20 forks source link

Support Remote Development #41

Closed alefragnani closed 2 years ago

alefragnani commented 4 years ago

More info:

workspace.fs API available in VS Code 1.37 - July 2019

kalinkrustev commented 2 years ago

This might help #76

alefragnani commented 2 years ago

The initial idea was to make the extension work both locally and remotely, but without the need to install it on the remote. For that, I could use the same approach used on my other extensions, removing access to file system via fsPath in favor of Uri.

It was possible to make it work, while loading .jenkins files (json), but not .jenkinsrc.js files (js).

Based on some testes, I've noticed that the snippet in #76 indeed work for .jenkinsrc.js files, both locally and remotely, but only if the extension installed on that remote. I couldn't make it work on remotes, with the extension installed locally.

So, for this particular scenario, when the workspace contains a .jenkinsrc.js file, the extension will work only if installed on the remote. If the user try to open a remote workspace with a .jenkinsrc.js file, a message will be displayed explaining the user:

This workspace contains a .jenkinsrc.js file, which requires the Jenkins Status extension to be installed on the remote.

This tip will be added to the README file