Various updates (#6007)

Even more mechanical updates.
This commit is contained in:
Matt Godbolt
2024-01-15 18:31:46 -06:00
committed by GitHub
parent ca7467057a
commit 4256d42916
4 changed files with 590 additions and 517 deletions

1054
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -36,7 +36,7 @@
"chart.js": "^4.4.1",
"clipboard": "^2.0.11",
"compression": "^1.7.4",
"copy-webpack-plugin": "^11.0.0",
"copy-webpack-plugin": "^12.0.1",
"cross-env": "^7.0.3",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-prettier": "^5.1.3",
@@ -144,9 +144,9 @@
"nock": "^13.4.0",
"prettier": "^3.1.1",
"sass": "^1.69.7",
"sass-loader": "^13.3.3",
"sass-loader": "^14.0.0",
"sinon": "^17.0.1",
"source-map-loader": "^4.0.2",
"source-map-loader": "^5.0.0",
"supervisor": "^0.12.0",
"terser-webpack-plugin": "^5.3.10",
"ts-loader": "^9.5.1",

View File

@@ -65,29 +65,28 @@ function provide(
if (item) {
return {
actions: item.fixes.filter(
f =>
f.diagnostics?.some(d =>
context.markers.some(m => {
const diagnostic = _.pick(
d,
'message',
'startLineNumber',
'startColumn',
'endLineNumber',
'endColumn',
);
const marker = _.pick(
m,
'message',
'startLineNumber',
'startColumn',
'endLineNumber',
'endColumn',
);
return _.isEqual(marker, diagnostic);
}),
),
actions: item.fixes.filter(f =>
f.diagnostics?.some(d =>
context.markers.some(m => {
const diagnostic = _.pick(
d,
'message',
'startLineNumber',
'startColumn',
'endLineNumber',
'endColumn',
);
const marker = _.pick(
m,
'message',
'startLineNumber',
'startColumn',
'endLineNumber',
'endColumn',
);
return _.isEqual(marker, diagnostic);
}),
),
),
dispose: function () {},
};

View File

@@ -56,7 +56,7 @@ const hasGit = fs.existsSync(path.resolve(__dirname, '.git'));
// Hack alert: due to a variety of issues, sometimes we need to change
// the name here. Mostly it's things like webpack changes that affect
// how minification is done, even though that's supposed not to matter.
const webpackJsHack = '.v41.';
const webpackJsHack = '.v42.';
const plugins: Webpack.WebpackPluginInstance[] = [
new MonacoEditorWebpackPlugin({
languages: [