File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -100,15 +100,17 @@ if (locale) {
100
100
}
101
101
102
102
// Pass in the locale to Electron so that the
103
- // Windows Control Overlay is rendered correctly on Windows,
104
- // and so that the traffic lights are rendered properly
105
- // on macOS when using a custom titlebar .
103
+ // Windows Control Overlay is rendered correctly on Windows.
104
+ // For now, don't pass in the locale on macOS due to
105
+ // https://github.com/microsoft/vscode/issues/167543 .
106
106
// If the locale is `qps-ploc`, the Microsoft
107
107
// Pseudo Language Language Pack is being used.
108
108
// In that case, use `en` as the Electron locale.
109
109
110
- const electronLocale = ( ! locale || locale === 'qps-ploc' ) ? 'en' : locale ;
111
- app . commandLine . appendSwitch ( 'lang' , electronLocale ) ;
110
+ if ( process . platform === 'win32' ) {
111
+ const electronLocale = ( ! locale || locale === 'qps-ploc' ) ? 'en' : locale ;
112
+ app . commandLine . appendSwitch ( 'lang' , electronLocale ) ;
113
+ }
112
114
113
115
// Load our code once ready
114
116
app . once ( 'ready' , function ( ) {
You can’t perform that action at this time.
0 commit comments