mirror of
https://github.com/coder/code-server.git
synced 2025-07-30 05:22:04 +08:00
Update to VS Code 1.52.1
This commit is contained in:
6
lib/vscode/src/bootstrap-amd.js
vendored
6
lib/vscode/src/bootstrap-amd.js
vendored
@ -18,7 +18,9 @@ loader.config({
|
||||
catchError: true,
|
||||
nodeRequire: require,
|
||||
nodeMain: __filename,
|
||||
'vs/nls': nlsConfig
|
||||
'vs/nls': nlsConfig,
|
||||
amdModulesPattern: /^vs\//,
|
||||
recordStats: true
|
||||
});
|
||||
|
||||
// Running in Electron
|
||||
@ -29,7 +31,7 @@ if (process.env['ELECTRON_RUN_AS_NODE'] || process.versions['electron']) {
|
||||
}
|
||||
|
||||
// Pseudo NLS support
|
||||
if (nlsConfig.pseudo) {
|
||||
if (nlsConfig && nlsConfig.pseudo) {
|
||||
loader(['vs/nls'], function (nlsPlugin) {
|
||||
nlsPlugin.setPseudoTranslation(nlsConfig.pseudo);
|
||||
});
|
||||
|
Reference in New Issue
Block a user