This is an implementation of the Language Server Protocol for the Wolfram language[1]. This extension focuses on code evaluation and inline previews.
To run a code block, use Shift + Enter. To print the results in the document, use Shift+Ctrl+Enter. Right-click to view other options.
You can view result summaries inline, and previews on variable hover. The plot window shows the latest inputs and outputs.
The language server requires an installation of Wolfram or the Wolfram Engine with wolframscript.
The wolframscript path can be configured.
Kernel: Evaluate wolfram code blocks, selections, and files
Results: Preview results in the plot window and on hover
Hovers: supports function documentation and variable previews on hover
Signatures: supports function signatures
Folding Ranges: supports folding ranges for functions
Document Formatting: supports document formatting by request
Completions: supports variable and function completions. Partial support for association keys included
Document Symbols: supports finding symbol references and implementations
Code Lens: provides code lens to run sections (split by 3 lines)
Rename: partial support for renaming expressions
Definitions: provides definitions for most built-in functions and function preview for custom functions
Colors: provides a color picker for the RGBA function
Workspace Symbols: provides support for finding symbols in a workspace
This project is made available under the MIT License
[kenkangxgwe] (https://github.com/kenkangxgwe/lsp-wl)
[codeparser] (https://github.com/WolframResearch/codeparser)
[1] Wolfram is a registered trademark of Wolfram Research, Inc. All other product names mentioned are trademarks of their producers.