Skip to content

Commit 93d0e10

Browse files
committed
v1.3.6 Commit
1 parent f2846fc commit 93d0e10

File tree

12 files changed

+82
-26
lines changed

12 files changed

+82
-26
lines changed

.github/workflows/test-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup node
3232
uses: actions/setup-node@v4
3333
- name: npm clean install
34-
run: npm ci
34+
run: npm run project-install-clean
3535
- name: Start Xvfb
3636
run: /usr/bin/Xvfb :17 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "Started xvfb"
3737
shell: bash

.github/workflows/test-pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ jobs:
4141
- name: Setup node
4242
uses: actions/setup-node@v4
4343
- name: npm clean install
44-
run: npm ci
44+
run: npm run project-install-clean
4545
- name: Start Xvfb
4646
run: /usr/bin/Xvfb :17 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "Started xvfb"
4747
shell: bash
4848
if: ${{ success() && matrix.os == 'ubuntu-latest' }}
4949
- name: Package vsix
5050
run: npm run package
5151
- name: npm install
52-
run: npm install
52+
run: npm run package-install
5353
- name: Run Smoke tests
5454
run: npm run test-smoke
5555
env:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
node-version: 18.x
2323
- &install-dependencies
2424
name: Install dependencies
25-
run: npm ci
25+
run: npm run project-install-clean
2626
- &package
2727
name: Package vsix
2828
run: npm run package

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore-scripts=true

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.6] - 2025-10-30
11+
12+
### Fixed
13+
- MATLAB automatically closes after 5 minutes if the connection fails during startup, preventing leaked instances (Addresses [mathworks/MATLAB-extension-for-vscode#241](https://github.com/mathworks/MATLAB-extension-for-vscode/issues/241))
14+
- MATLAB now starts from the primary workspace folder, so that the `pwd` command returns the correct path during startup (Addresses [mathworks/MATLAB-extension-for-vscode#233](https://github.com/mathworks/MATLAB-extension-for-vscode/issues/233))
15+
- Resolves a crash that occurs when suppressing a linting diagnostic on a line with an existing comment (Addresses [mathworks/MATLAB-extension-for-vscode#280](https://github.com/mathworks/MATLAB-extension-for-vscode/issues/280))
16+
- Applied patches for CVE-2025-58751 and CVE-2025-58752
17+
1018
## [1.3.5] - 2025-09-04
1119

1220
### Added

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,12 @@ We encourage all feedback. If you encounter a technical issue or have an enhance
119119

120120
### 1.3.0
121121
Release date: 2024-12-18
122+
122123
Added:
123124
* Debugging support
124125
* Support for inserting code snippets shipped with MATLAB (requires MATLAB R2025a or later)
125126
* Support for opening additional MATLAB file types (e.g. `.slx`, `.fig`) from the Visual Studio Code context menu (Community contribution from @Gusmano-2-OSU)
126-
127+
127128
Fixed:
128129
* Syntax highlighting improvements (Community contribution from @apozharski)
129130

build/projectInstall.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
const { execSync } = require('child_process')
2+
const path = require('path')
3+
const fs = require('fs')
4+
5+
/**
6+
* Handles installation of project dependencies, as well as any
7+
* necessary post-install steps.
8+
*
9+
* This is required due to the standard `postinstall` script
10+
* being disabled from within `.npmrc`.
11+
*/
12+
13+
const args = process.argv.slice(2)
14+
const shouldClean = args.includes('--clean')
15+
const cmd = shouldClean ? 'npm ci' : 'npm install'
16+
const serverCmd = shouldClean ? 'npm run project-install-clean' : 'npm run project-install'
17+
18+
const projectRoot = path.resolve(__dirname, '..')
19+
const serverPath = path.join(projectRoot, 'server')
20+
21+
try {
22+
// Install main dependencies
23+
console.log('Installing dependencies for MATLAB extension for VS Code...')
24+
execSync(cmd, {
25+
cwd: projectRoot,
26+
stdio: 'inherit'
27+
})
28+
29+
// Check to make sure server directory exists
30+
if (!fs.existsSync(serverPath)) {
31+
console.error(`Directory not found: ${serverPath}`)
32+
process.exit(1)
33+
}
34+
35+
// Install licensing GUI dependencies
36+
console.log(`Installing dependencies for MATLAB language server at ${serverPath}...`)
37+
execSync(serverCmd, {
38+
cwd: serverPath,
39+
stdio: 'inherit'
40+
})
41+
42+
console.log('All dependencies installed successfully!')
43+
} catch (error) {
44+
console.error('Error installing dependencies: ', error.message)
45+
process.exit(1)
46+
}

package-lock.json

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

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Edit MATLAB code with syntax highlighting, linting, navigation support, and more",
55
"icon": "public/L-Membrane_RGB_128x128.png",
66
"license": "MIT",
7-
"version": "1.3.5",
7+
"version": "1.3.6",
88
"engines": {
99
"vscode": "^1.67.0"
1010
},
@@ -338,7 +338,8 @@
338338
"test-ui:fast": "node ./out/test/ui/runTest.js",
339339
"test": "npm run test-setup && npm run test:fast",
340340
"test:fast": "npm run test-smoke:fast && npm run test-ui:fast",
341-
"postinstall": "cd server && npm install && cd ..",
341+
"project-install": "node ./build/projectInstall.js",
342+
"project-install-clean": "node ./build/projectInstall.js --clean",
342343
"package": "vsce package"
343344
},
344345
"devDependencies": {

0 commit comments

Comments
 (0)