Skip to content

CoolCoderSuper/visualbasic-language-server

 
 

Repository files navigation

Description

This is a hacky Roslyn-based LSP server for Visual Basic, based on csharp-ls.

vb-ls requires .NET 8 SDK to be installed. However it has been reported to work with projects using older versions of dotnet SDK, including .NET Core 3, .NET Framework 4.8 and possibly older ones too as it uses the standard Roslyn/MSBuild libs that Visual Studio & omnisharp does.

Acknowledgements

Installation

dotnet tool install --global vb-ls

See vb-ls nuget page

Settings

  • vb.solution - solution to load, optional
  • vb.applyFormattingOptions - use formatting options as supplied by the client (may override .editorconfig values), defaults to false

Clients

vb-ls implements the standard LSP protocol to interact with your editor. However there are some features that need a non-standard implementation and this is where editor-specific plugins can be helpful.

NeoVim

NeoVim 0.11+ can easily be configured using the vim.lsp.config api.

vim.lsp.config['vb_ls'] = {
    cmd = { 'vb-ls' },
    root_markers = { '*.sln', '*.slnx', '*.vbproj' },
    filetypes = { 'vbnet' },
    init_options = {
      AutomaticWorkspaceInit = true,
    },
}

vim.lsp.enable('vb_ls')

Be sure to also add the contents of the vim-config folder to your vim start directory to register improved syntax highlighting and the vbnet filetype.

Visual Studio Code

See vscode-vb-ls.

About

Roslyn-based LSP language server for Visual Basic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • F# 96.3%
  • Vim Script 1.5%
  • C# 1.2%
  • TypeScript 0.8%
  • HTML 0.1%
  • Lua 0.1%