diff --git a/src/vs/workbench/parts/files/browser/fileActions.ts b/src/vs/workbench/parts/files/browser/fileActions.ts index b0edd8d968f1c63ff65914bc5967bb842420080a..f15308096a4f60154bd13f408e78f850573c35b5 100644 --- a/src/vs/workbench/parts/files/browser/fileActions.ts +++ b/src/vs/workbench/parts/files/browser/fileActions.ts @@ -1763,7 +1763,7 @@ export class RevertFileAction extends Action { export class FocusOpenEditorsView extends Action { public static ID = 'workbench.files.action.focusOpenEditorsView'; - public static LABEL = nls.localize('focusOpenEditors', "Focus on Open Editors View"); + public static LABEL = nls.localize({ key: 'focusOpenEditors', comment: ['Open is an adjective'] }, "Focus on Open Editors View"); constructor( id: string, diff --git a/src/vs/workbench/parts/files/browser/files.contribution.ts b/src/vs/workbench/parts/files/browser/files.contribution.ts index b08353b3bf70a9ed618e211b06df105dc40b2b9a..b34f812f1ee5cf041d5d0cd08105528c82e8d7d5 100644 --- a/src/vs/workbench/parts/files/browser/files.contribution.ts +++ b/src/vs/workbench/parts/files/browser/files.contribution.ts @@ -245,12 +245,12 @@ configurationRegistry.registerConfiguration({ 'properties': { 'explorer.openEditors.visible': { 'type': 'number', - 'description': nls.localize('openEditorsVisible', "Number of editors shown in the Open Editors pane. Set it to 0 to hide the pane."), + 'description': nls.localize({ key: 'openEditorsVisible', comment: ['Open is an adjective'] }, "Number of editors shown in the Open Editors pane. Set it to 0 to hide the pane."), 'default': 9 }, 'explorer.openEditors.dynamicHeight': { 'type': 'boolean', - 'description': nls.localize('dynamicHeight', "Controls if the height of the open editors section should adapt dynamically to the number of elements or not."), + 'description': nls.localize({ key: 'dynamicHeight', comment: ['Open is an adjective'] }, "Controls if the height of the open editors section should adapt dynamically to the number of elements or not."), 'default': true }, 'explorer.autoReveal': { diff --git a/src/vs/workbench/parts/files/browser/views/openEditorsView.ts b/src/vs/workbench/parts/files/browser/views/openEditorsView.ts index 92ffcf6177940e3d6edfa72478e60cb269947ace..f30f243e957e4ea24ac27c079ef98273584bdabd 100644 --- a/src/vs/workbench/parts/files/browser/views/openEditorsView.ts +++ b/src/vs/workbench/parts/files/browser/views/openEditorsView.ts @@ -58,7 +58,7 @@ export class OpenEditorsView extends AdaptiveCollapsibleViewletView { @IViewletService private viewletService: IViewletService, @IEventService private eventService: IEventService ) { - super(actionRunner, OpenEditorsView.computeExpandedBodySize(editorGroupService.getStacksModel()), !!settings[OpenEditorsView.MEMENTO_COLLAPSED], nls.localize('openEditosrSection', "Open Editors Section"), messageService, keybindingService, contextMenuService); + super(actionRunner, OpenEditorsView.computeExpandedBodySize(editorGroupService.getStacksModel()), !!settings[OpenEditorsView.MEMENTO_COLLAPSED], nls.localize({ key: 'openEditosrSection', comment: ['Open is an adjective'] }, "Open Editors Section"), messageService, keybindingService, contextMenuService); this.settings = settings; this.model = editorGroupService.getStacksModel(); @@ -70,7 +70,7 @@ export class OpenEditorsView extends AdaptiveCollapsibleViewletView { public renderHeader(container: HTMLElement): void { const titleDiv = dom.append(container, $('.title')); const titleSpan = dom.append(titleDiv, $('span')); - titleSpan.textContent = nls.localize('openEditors', "Open Editors"); + titleSpan.textContent = nls.localize({ key: 'openEditors', comment: ['Open is an adjective'] }, "Open Editors"); this.dirtyCountElement = dom.append(titleDiv, $('.monaco-count-badge')); this.updateDirtyIndicator(); @@ -105,7 +105,7 @@ export class OpenEditorsView extends AdaptiveCollapsibleViewletView { }, { indentPixels: 0, twistiePixels: 20, - ariaLabel: nls.localize('treeAriaLabel', "Open Editors") + ariaLabel: nls.localize({ key: 'treeAriaLabel', comment: ['Open is an adjective'] }, "Open Editors") }); this.fullRefreshNeeded = true;