Skip to content

Commit 4857a75

Browse files
committed
Backport changes from production
1 parent 67de8b9 commit 4857a75

File tree

6 files changed

+21
-9
lines changed

6 files changed

+21
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ MATLAB language server supports these editors by installing the corresponding ex
2929
### Unreleased
3030

3131
### 1.2.7
32-
Release date: 2024-11-01
32+
Release date: 2024-11-07
3333

3434
Added:
3535
* Allow specifying the maximum file size for code analysis through the `maxFileSizeForAnalysis` setting

package-lock.json

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

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"pretest": "npm run test-compile",
1515
"lint": "eslint src --ext ts",
1616
"lint:fix": "eslint src --ext ts --fix",
17+
"postinstall": "cd src/licensing/gui && npm install && cd ../../..",
1718
"test": "mocha"
1819
},
1920
"repository": {
@@ -26,8 +27,8 @@
2627
"@types/express": "^4.17.21",
2728
"@types/express-session": "^1.18.0",
2829
"@types/mocha": "^10.0.6",
29-
"@types/node-fetch": "^2.6.11",
3030
"@types/node": "^18.7.18",
31+
"@types/node-fetch": "^2.6.11",
3132
"@types/sinon": "^17.0.3",
3233
"@types/which": "^2.0.1",
3334
"@types/xml2js": "^0.4.14",
@@ -48,12 +49,13 @@
4849
"webpack": "^5.74.0",
4950
"webpack-cli": "^4.10.0"
5051
},
51-
"dependencies": {
52+
"dependencies": {
5253
"chokidar": "^3.5.3",
5354
"cookie-parser": "^1.4.6",
5455
"express": "^4.18.2",
5556
"express-session": "^1.18.0",
5657
"faye": "^1.4.0",
58+
"hpagent": "^1.2.0",
5759
"node-fetch": "^3.3.2",
5860
"vscode-languageserver": "^8.0.2",
5961
"vscode-languageserver-textdocument": "^1.0.7",

src/licensing/gui/src/components/App/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ function App() {
6060
const isMHLM = useSelector(selectLicensingIsMhlm)
6161
const isNLM = useSelector(selectLicensingIsNlm)
6262
const isExistingLicense = useSelector(selectLicensingIsExistingLicense)
63-
const mhlmUsername = useSelector(selectLicensingMhlmUsername)
64-
const nlmConnectionString = useSelector(selectLicensingNLMConnectionString)
63+
const mhlmUsername = useSelector(selectLicensingMhlmUsername) // eslint-disable-line no-unused-vars
64+
const nlmConnectionString = useSelector(selectLicensingNLMConnectionString) // eslint-disable-line no-unused-vars
6565

6666
function handleClick(e) {
6767
e.preventDefault();

src/licensing/gui/src/components/Information/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright 2024 The MathWorks, Inc.
22

33
import React, { useRef, useState } from 'react';
4-
import PropTypes from 'prop-types';
54
import { useSelector, useDispatch } from 'react-redux';
65
import Linkify from 'react-linkify';
76
import {
@@ -13,7 +12,7 @@ import {
1312
selectIsAuthenticated,
1413
selectAuthToken
1514
} from '../../selectors';
16-
import { updateAuthStatus, getAuthToken } from '../../actionCreators';
15+
import { updateAuthStatus } from '../../actionCreators';
1716
import './Information.css';
1817

1918
function Information () {
@@ -24,7 +23,7 @@ function Information () {
2423
const [token, setToken] = useState('');
2524
const authEnabled = useSelector(selectAuthEnabled);
2625
const isAuthenticated = useSelector(selectIsAuthenticated);
27-
const authToken = useSelector(selectAuthToken);
26+
const authToken = useSelector(selectAuthToken); // eslint-disable-line no-unused-vars
2827
const dispatch = useDispatch();
2928
const tokenInput = useRef();
3029

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"outDir": "./out",
77
"sourceMap": true,
88
"lib": [
9-
"ES6"
9+
"ES6",
10+
"DOM"
1011
],
1112
"strict": true,
1213
"composite": true,

0 commit comments

Comments
 (0)