Skip to content

Commit 81a33c2

Browse files
authored
Merge pull request #85 from mathworks/dklilley/release/1.3.11
MATLAB language server - v1.3.11
2 parents 22edf92 + 38a75ce commit 81a33c2

20 files changed

Lines changed: 189 additions & 63 deletions

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.3.11] - 2026-05-08
11+
12+
### Added
13+
- Support for semantic token resolution to improve syntax highlighting (Community contribution from @Gustaf-C - Addresses [mathworks/MATLAB-extension-for-vscode#45](https://github.com/mathworks/MATLAB-extension-for-vscode/issues/45))
14+
15+
### Fixed
16+
- Applied patches for CVE-2026-2950, CVE-2026-4800, CVE-2026-4867, CVE-2026-33228, CVE-2026-33671, CVE-2026-33672, and CVE-2026-39363
17+
1018
## [1.3.10] - 2026-04-02
1119

1220
### Fixed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ MATLAB language server implements several Language Server Protocol features and
1919
* Symbol rename - [renameProvider](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_rename)
2020
* Code folding - [foldingRangeProvider](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_foldingRange)
2121
* Document highlights - [highlightSymbolProvider](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_documentHighlight)
22+
* Semantic tokens - [semanticTokensProvider](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_semanticTokens)
2223

2324
## Clients
2425
MATLAB language server supports these editors by installing the corresponding extension:
631 Bytes
Binary file not shown.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
function closeProject ()
2+
% Closes the currently open MATLAB project
3+
4+
% Copyright 2026 The MathWorks, Inc.
5+
proj = matlab.project.currentProject();
6+
if ~isempty(proj)
7+
close(proj);
8+
end
9+
end
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function newProject (projectName, projectPath)
2+
% Creates a new MATLAB project with the specified name and path
3+
4+
% Copyright 2026 The MathWorks, Inc.
5+
matlab.project.createProject("Name", projectName, "Folder", projectPath);
6+
end
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
function openProject (projectPath)
2+
% Opens a MATLAB project from the specified path. The path can represent
3+
% either a MATLAB project definition file (*.prj or matlab.toml), or a
4+
% folder containing one.
5+
6+
% Copyright 2026 The MathWorks, Inc.
7+
matlab.project.loadProject(projectPath);
8+
end

matlab/+matlabls/setupShadows.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ function setupShadows(languageServerFolder)
66
addRestoreDefaultPathShadow(languageServerFolder);
77
addEditShadow(languageServerFolder);
88
addClcShadow(languageServerFolder);
9+
addInputShadow(languageServerFolder);
910
catch ME
1011
disp('Error while attempting to add shadow directories to path')
1112
disp(ME.message)
@@ -43,3 +44,7 @@ function addClcShadow(languageServerFolder)
4344
addpath(fullfile(languageServerFolder, 'shadows', 'clc'));
4445
end
4546
end
47+
48+
function addInputShadow(languageServerFolder)
49+
addpath(fullfile(languageServerFolder, 'shadows', 'input'));
50+
end

matlab/initmatlabls.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ function initmatlabls (outFile)
1414

1515
% Shadow necessary functions
1616
matlabls.setupShadows(folder);
17+
18+
% Initialize project event manager
19+
matlabls.internal.project.ProjectEventManager.setupListeners();
1720

1821
try
1922
% Disable specific settings which may cause editor windows to open

matlab/shadows/input/input.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
function out = input(varargin)
2+
%INPUT Request user input
3+
4+
% Copyright 2026 The MathWorks, Inc.
5+
6+
matlabls.internal.CommunicationManager.publish('/matlabls/events/input', struct('promptString', varargin{1}));
7+
out = builtin('input', varargin{:});
8+
end

package-lock.json

Lines changed: 29 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)