File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
src/vs/platform/keyboardLayout/electron-main Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
6
import * as nativeKeymap from 'native-keymap' ;
7
+ import * as platform from 'vs/base/common/platform' ;
7
8
import { Emitter } from 'vs/base/common/event' ;
8
9
import { Disposable } from 'vs/base/common/lifecycle' ;
9
10
import { createDecorator } from 'vs/platform/instantiation/common/instantiation' ;
@@ -48,10 +49,15 @@ export class KeyboardLayoutMainService extends Disposable implements INativeKeyb
48
49
const nativeKeymapMod = await import ( 'native-keymap' ) ;
49
50
50
51
this . _keyboardLayoutData = readKeyboardLayoutData ( nativeKeymapMod ) ;
51
- nativeKeymapMod . onDidChangeKeyboardLayout ( ( ) => {
52
- this . _keyboardLayoutData = readKeyboardLayoutData ( nativeKeymapMod ) ;
53
- this . _onDidChangeKeyboardLayout . fire ( this . _keyboardLayoutData ) ;
54
- } ) ;
52
+ if ( ! platform . isCI ) {
53
+ // See https://github.com/microsoft/vscode/issues/152840
54
+ // Do not register the keyboard layout change listener in CI because it doesn't work
55
+ // on the build machines and it just adds noise to the build logs.
56
+ nativeKeymapMod . onDidChangeKeyboardLayout ( ( ) => {
57
+ this . _keyboardLayoutData = readKeyboardLayoutData ( nativeKeymapMod ) ;
58
+ this . _onDidChangeKeyboardLayout . fire ( this . _keyboardLayoutData ) ;
59
+ } ) ;
60
+ }
55
61
}
56
62
57
63
public async getKeyboardLayoutData ( ) : Promise < IKeyboardLayoutData > {
You can’t perform that action at this time.
0 commit comments