Skip to content

Commit 73c1837

Browse files
committed
Fix navigation with R2024b
1 parent aef9135 commit 73c1837

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Added:
3232

3333
Fixed:
3434
* Allow connection to MATLAB when a single quote appears in the extension installation path
35+
* Resolve error with code navigation when using with MATLAB R2024b
3536

3637
### 1.2.3
3738
Release date: 2024-06-14

matlab/+matlabls/+handlers/NavigationSupportHandler.m

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,19 @@ function handleResolvePathRequest (this, msg)
5353

5454
function path = resolvePath (name, contextFile)
5555
if isMATLABReleaseOlderThan('R2023b')
56-
% For usage in R2023b and earlier
56+
% For usage in R2023a and earlier
5757
[isFound, path] = matlabls.internal.resolvePath(name, contextFile);
5858
elseif isMATLABReleaseOlderThan('R2024a')
5959
% For usage in R2023b only
6060
[isFound, path] = matlab.internal.language.introspective.resolveFile(name, []);
61-
else
62-
% For usage in R2024a and later
61+
elseif isMATLABReleaseOlderThan('R2024b')
62+
% For usage in R2024a only
6363
ec = matlab.lang.internal.introspective.ExecutionContext;
6464
[isFound, path] = matlab.lang.internal.introspective.resolveFile(name, ec);
65+
else
66+
% For usage in R2024b and later
67+
ic = matlab.lang.internal.introspective.IntrospectiveContext.caller;
68+
[isFound, path] = matlab.lang.internal.introspective.resolveFile(name, ic);
6569
end
6670

6771
if ~isFound

0 commit comments

Comments
 (0)