richterger / Perl-LanguageServer

Language Server for Perl
Other
224 stars 51 forks source link

Randomize port number #155

Closed knutov closed 1 year ago

knutov commented 1 year ago

There is setting "Perl: Debug Adapter port" with defaults to 13603.

In case of working on multiple projects it is common to open multiple vscode windows with multiple remote ssh sessions to the same server with different projects in different folders.

It is required to manually change "Debug Adapter port" for Workspace with this extensions to work in this case.

That takes time to setup and inconvenient. Looks like there is no reason to have this port static, so - is it possible to make this port random, may be from some specific range for each run?

hakonhagland commented 1 year ago

is it possible to make this port random, may be from some specific range for each run?

@knutov See aslo: https://github.com/richterger/Perl-LanguageServer/issues/116

knutov commented 1 year ago

@hakonhagland Great! Unfortunately build from master seems to be not working (

I do:

git clone https://github.com/richterger/Perl-LanguageServer.git
cd Perl-LanguageServer
cd clients/vscode/perl/
vsce package  
code --install-extension  ./*.vsix

And here I've got "No symbols found in document ..."

richterger commented 1 year ago

I am about to prepare a new release, it's hopefully out during the next week.

For your above question, I guess you have to run npm install before the vsce package

richterger commented 1 year ago

2.4.0 is out

knutov commented 1 year ago

@richterger It's wonderful, thanks!