MATLAB® language server implements the Microsoft® Language Server Protocol for the MATLAB language.
MATLAB language server requires MATLAB version R2021a or later.
Note: This language server will no longer support MATLAB R2021a in a future release. To use advanced features or run MATLAB code, you will need to have MATLAB R2021b or later installed.
MATLAB language server implements several Language Server Protocol features and their related services:
- Code diagnostics — publishDiagnostics
- Quick fixes — codeActionProvider
- Document formatting — documentFormattingProvider
- Code completions — completionProvider
- Function signature help — signatureHelpProvider
- Go to definition — definitionProvider
- Go to references — referencesProvider
- Document symbols — documentSymbol
- Symbol rename - renameProvider
MATLAB language server supports these editors by installing the corresponding extension:
- Neovim — nvim-lspconfig
- Visual Studio® Code — MATLAB extension for Visual Studio Code
Release date: 2024-11-07
Added:
- Allow specifying the maximum file size for code analysis through the
maxFileSizeForAnalysis
setting - Linting support in untitled files and in MATLAB files with different file extensions
Release date: 2024-09-20
Fixed:
- Patches CVE-2024-43788
- Resolves issue preventing code navigation and variable renaming for variables followed by a matrix operation (e.g.
x.^2
)
Release date: 2024-08-16
Added:
- Symbol rename support
Fixed:
- Leading or trailing whitespace in
installPath
setting is ignored when connecting to MATLAB
Release date: 2024-07-12
Added:
- Improvements to code folding (requires MATLAB R2024b or later)
Fixed:
- Allow connection to MATLAB when a single quote appears in the extension installation path
- Resolve error with code navigation when using with MATLAB R2024b
Release date: 2024-06-14
Notice:
- The MATLAB language server will no longer support MATLAB R2021a in a future release. To make use of the advanced features of the extension or run MATLAB code, you will need to have MATLAB R2021b or later installed.
Added:
- Added a system to detect if the connected MATLAB release is supported by the language server. This will inform the client, which may display a notification to the user about this.
Fixed:
- Resolved issue with connecting to Intel MATLAB installation on Apple Silicon machines
- Resolved error if MATLAB process is killed unexpectedly
- Fixed bug where "never" startup timing was ignored
Release date: 2024-05-17
Fixed:
- Resolved packaging failure on Mac
- Resolved connecting to MATLAB in proxy environment
- General bug fixes
Release date: 2024-04-04
Added:
- Supports connecting to MATLAB when the New Desktop for MATLAB is enabled
Fixed:
- Fixed launching App Designer and Simulink through MATLAB code execution
Release date: 2024-03-05
Added:
- Code execution support
Fixed:
- Prevent responses from MATLAB being intercepted by the incorrect request callback
- Fixed linting diagnostic suppression with MATLAB R2024a
Release date: 2024-01-16
Fixed:
- Fixed linting with mlint on Windows
- Fixed regression with code navigation when using with MATLAB R2024a
Release date: 2023-12-06
Fixed:
- Fixed code navigation when using with MATLAB R2024a
- Handle symbolic link to MATLAB when linting with mlint (Thanks @MoetaYuko!)
- Handle maca64 architecture when linting with mlint (Thanks @tiagovla!)
Release date: 2023-10-11
- Add support for MATLAB sections in the documentSymbol (outline).
Release date: 2023-09-13
Fixed:
- Fixed issue connecting to MATLAB with Node.js® version 18 and later.
Release date: 2023-08-14
Fixed:
- Patched CVE-2023-26136 and CVE-2022-25883
Release date: 2023-07-10
Fixed:
- Diagnostic suppression should be placed at correct location when '%' is contained within string
- Improved navigation to files inside MATLAB packages within the VS Code workspace but not on the MATLAB path
- Prevented navigation to private/local functions from other files
- MATLAB sign-in is no longer blocked on Windows
Release date: 2023-05-31
Fixed:
- Improves responsiveness of documentSymbol support
- Clear linting diagnostics from closed files
- MATLAB should launch with
onDemand
setting
Release date: 2023-05-12
- Resolves linting errors
Release date: 2023-05-12
- Add support for documentSymbol (outline).
Release date: 2023-04-26
- Initial release.