Skip to content

weedz/vscode-perl-language-server

Repository files navigation

Perl language server for vscode

⚠️ This project is not being maintained

Unfortunately, the former maintainer no longer have the time and/or resources to work on this project. For more information see this issue.

Visual Studio Marketplace Version

Performs a really basic static analyze of perl code to provide the following:

  • Workspace and document symbol definitions (packages and functions)
  • Goto definition (packages and functions)
  • Autocomplete (packages and functions)
  • Signature help

Including completion and signature help for most builtin functions

The way this is implemented means the following perl program will create a function symbol hello:

my $str = q^
sub hello {
  print "world!";
}^;

I will not parse perl in any way so this is unfortunately a limitation of the current implementation.

Installation

Available from the VSCode Marketplace.

or

Prepackaged vscode extension is available from the releases.

Download and then open the command palatte in vscode and search for "Extension: Install from VSIX..." and select the downloaded file.

From source

Install all dependencies:

npm install

To package a vscode extension (.vsix) you will need the package vsce:

npm install -g vsce

You can now run:

vsce package

Development

Run the watch script:

npm run esbuild-watch

Should now be able to "debug" the extension with "Run > Start Debugging (F5)"