diff --git a/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.ts b/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.ts index 92c47b46e75cc9daf73643851711b43a9144a82c..5b02583135d8854c398a881387630db34689608b 100644 --- a/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.ts +++ b/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.ts @@ -115,7 +115,7 @@ export class KeyboardLayoutPickerAction extends Action { return { label: layoutInfo.label, id: (layout).text || (layout).lang || (layout).layout, - description: layoutInfo.description + (picked ? ' (Current selection)' : ''), + description: layoutInfo.description + (picked ? ' (Current layout)' : ''), picked: !isAutoDetect && areKeyboardLayoutsEqual(currentLayout, layout) }; }); @@ -132,7 +132,7 @@ export class KeyboardLayoutPickerAction extends Action { // Offer to "Auto Detect" const autoDetectMode: IQuickPickItem = { label: nls.localize('autoDetect', "Auto Detect"), - description: isAutoDetect ? `(Current: ${(currentLayout).text || (currentLayout).lang || (currentLayout).layout})` : undefined, + description: isAutoDetect ? `(Current: ${parseKeyboardLayout(currentLayout).label})` : undefined, picked: isAutoDetect ? true : undefined };