Skip to content

Commit e585587

Browse files
code-asherkylecarbs
authored andcommitted
Fix redundant aliases in command palette
1 parent 6c4e2f9 commit e585587

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

packages/vscode/src/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import "./fill/require";
22
import * as paths from "./fill/paths";
3+
import "./fill/platform";
34
import "./fill/storageDatabase";
45
import "./fill/windowsService";
56
import "./fill/environmentService";
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import * as platform from "vs/base/common/platform";
2+
3+
// Use en instead of en-US since that's vscode default and it uses
4+
// that to determine whether to output aliases which will be redundant.
5+
if (platform.locale === "en-US") {
6+
// tslint:disable-next-line no-any to override const
7+
(platform as any).locale = "en";
8+
}
9+
if (platform.language === "en-US") {
10+
// tslint:disable-next-line no-any to override const
11+
(platform as any).language = "en";
12+
}

0 commit comments

Comments
 (0)