Fix redundant aliases in command palette

This commit is contained in:
Asher 2019-01-31 10:59:18 -06:00 committed by Kyle Carberry
parent 6c4e2f9251
commit e585587e67
No known key found for this signature in database
GPG Key ID: A0409BDB6B0B3EDB
2 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import "./fill/require"; import "./fill/require";
import * as paths from "./fill/paths"; import * as paths from "./fill/paths";
import "./fill/platform";
import "./fill/storageDatabase"; import "./fill/storageDatabase";
import "./fill/windowsService"; import "./fill/windowsService";
import "./fill/environmentService"; import "./fill/environmentService";

View File

@ -0,0 +1,12 @@
import * as platform from "vs/base/common/platform";
// Use en instead of en-US since that's vscode default and it uses
// that to determine whether to output aliases which will be redundant.
if (platform.locale === "en-US") {
// tslint:disable-next-line no-any to override const
(platform as any).locale = "en";
}
if (platform.language === "en-US") {
// tslint:disable-next-line no-any to override const
(platform as any).language = "en";
}