Remove vscode-nls-dev dependency (#228002)

This was when extensions used the old localization stuff. None of this is used anymore.
This commit is contained in:
Tyler James Leonhardt
2024-09-09 09:28:32 -07:00
committed by GitHub
parent 2e4bae90c6
commit 1349397cf7
4 changed files with 2 additions and 581 deletions

View File

@@ -12,7 +12,6 @@ const path = require('path');
const fs = require('fs');
const merge = require('merge-options');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const { NLSBundlePlugin } = require('vscode-nls-dev/lib/webpack-bundler');
const { DefinePlugin, optimize } = require('webpack');
const tsLoaderOptions = {
@@ -40,13 +39,6 @@ function withNodeDefaults(/**@type WebpackConfig & { context: string }*/extConfi
test: /\.ts$/,
exclude: /node_modules/,
use: [{
// vscode-nls-dev loader:
// * rewrite nls-calls
loader: 'vscode-nls-dev/lib/webpack-loader',
options: {
base: path.join(extConfig.context, 'src')
}
}, {
// configure TypeScript loader:
// * enable sources maps for end-to-end source maps
loader: 'ts-loader',
@@ -97,8 +89,7 @@ function nodePlugins(context) {
patterns: [
{ from: 'src', to: '.', globOptions: { ignore: ['**/test/**', '**/*.ts'] }, noErrorOnMissing: true }
]
}),
new NLSBundlePlugin(id)
})
];
}
/**
@@ -196,9 +187,7 @@ function browserPlugins(context) {
'process.platform': JSON.stringify('web'),
'process.env': JSON.stringify({}),
'process.env.BROWSER_ENV': JSON.stringify('true')
}),
// TODO: bring this back once vscode-nls-dev supports browser
// new NLSBundlePlugin(id)
})
];
}