From 4e058f5693228ca8305d95a50f0f5a0d15df6425 Mon Sep 17 00:00:00 2001 From: Erich Gamma Date: Wed, 11 Jan 2017 09:41:13 +0100 Subject: [PATCH] tslint hygene --- src/vs/workbench/parts/markers/common/messages.ts | 4 ++-- src/vs/workbench/parts/search/browser/searchActions.ts | 4 ++-- src/vs/workbench/parts/search/browser/searchWidget.ts | 2 +- .../workbench/services/configuration/common/configuration.ts | 2 +- src/vs/workbench/test/common/editor/rangeDecorations.test.ts | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/vs/workbench/parts/markers/common/messages.ts b/src/vs/workbench/parts/markers/common/messages.ts index f32eb9144b5..81d430a00e7 100644 --- a/src/vs/workbench/parts/markers/common/messages.ts +++ b/src/vs/workbench/parts/markers/common/messages.ts @@ -37,9 +37,9 @@ export default class Messages { public static MARKERS_PANEL_SINGLE_UNKNOWN_LABEL: string = nls.localize('markers.panel.single.unknown.label', "1 Unknown"); public static MARKERS_PANEL_MULTIPLE_UNKNOWNS_LABEL = (noOfUnknowns: number): string => { return nls.localize('markers.panel.multiple.unknowns.label', "{0} Unknowns", '' + noOfUnknowns); }; - public static MARKERS_PANEL_AT_LINE_COL_NUMBER = (ln: number, col: number): string => { return nls.localize('markers.panel.at.ln.col.number', "({0}, {1})", '' + ln, '' + col); } + public static MARKERS_PANEL_AT_LINE_COL_NUMBER = (ln: number, col: number): string => { return nls.localize('markers.panel.at.ln.col.number', "({0}, {1})", '' + ln, '' + col); }; - public static MARKERS_TREE_ARIA_LABEL_RESOURCE = (fileName, noOfProblems): string => { return nls.localize('problems.tree.aria.label.resource', "{0} with {1} problems", fileName, noOfProblems); } + public static MARKERS_TREE_ARIA_LABEL_RESOURCE = (fileName, noOfProblems): string => { return nls.localize('problems.tree.aria.label.resource', "{0} with {1} problems", fileName, noOfProblems); }; public static MARKERS_TREE_ARIA_LABEL_MARKER = (marker: IMarker): string => { switch (marker.severity) { case Severity.Error: diff --git a/src/vs/workbench/parts/search/browser/searchActions.ts b/src/vs/workbench/parts/search/browser/searchActions.ts index c514ad5bab9..a1a56e31347 100644 --- a/src/vs/workbench/parts/search/browser/searchActions.ts +++ b/src/vs/workbench/parts/search/browser/searchActions.ts @@ -31,8 +31,8 @@ export function isSearchViewletFocussed(viewletService: IViewletService): boolea return activeViewlet && activeViewlet.getId() === Constants.VIEWLET_ID && activeElement && DOM.isAncestor(activeElement, (activeViewlet).getContainer().getHTMLElement()); } -export function appendKeyBindingLabel(label: string, keyBinding: Keybinding, keyBindingService2: IKeybindingService): string -export function appendKeyBindingLabel(label: string, keyBinding: number, keyBindingService2: IKeybindingService): string +export function appendKeyBindingLabel(label: string, keyBinding: Keybinding, keyBindingService2: IKeybindingService): string; +export function appendKeyBindingLabel(label: string, keyBinding: number, keyBindingService2: IKeybindingService): string; export function appendKeyBindingLabel(label: string, keyBinding: any, keyBindingService2: IKeybindingService): string { keyBinding = typeof keyBinding === 'number' ? new Keybinding(keyBinding) : keyBinding; return keyBinding ? label + ' (' + keyBindingService2.getLabelFor(keyBinding) + ')' : label; diff --git a/src/vs/workbench/parts/search/browser/searchWidget.ts b/src/vs/workbench/parts/search/browser/searchWidget.ts index 8a9c4a9ef76..c2bdb2895a7 100644 --- a/src/vs/workbench/parts/search/browser/searchWidget.ts +++ b/src/vs/workbench/parts/search/browser/searchWidget.ts @@ -71,7 +71,7 @@ export class SearchWidget extends Widget { private static REPLACE_ALL_ENABLED_LABEL = (keyBindingService2: IKeybindingService): string => { let keybindings = keyBindingService2.lookupKeybindings(ReplaceAllAction.ID); return appendKeyBindingLabel(nls.localize('search.action.replaceAll.enabled.label', "Replace All"), keybindings[0], keyBindingService2); - }; + } public domNode: HTMLElement; public searchInput: FindInput; diff --git a/src/vs/workbench/services/configuration/common/configuration.ts b/src/vs/workbench/services/configuration/common/configuration.ts index 5a5f277bb74..e5e5f4c53de 100644 --- a/src/vs/workbench/services/configuration/common/configuration.ts +++ b/src/vs/workbench/services/configuration/common/configuration.ts @@ -12,7 +12,7 @@ export const WORKSPACE_CONFIG_DEFAULT_PATH = `${WORKSPACE_CONFIG_FOLDER_DEFAULT_ export const IWorkspaceConfigurationService = createDecorator('configurationService'); -export type IWorkspaceConfigurationValues = { [key: string]: IWorkspaceConfigurationValue } +export type IWorkspaceConfigurationValues = { [key: string]: IWorkspaceConfigurationValue }; export interface IWorkspaceConfigurationService extends IConfigurationService { diff --git a/src/vs/workbench/test/common/editor/rangeDecorations.test.ts b/src/vs/workbench/test/common/editor/rangeDecorations.test.ts index d7c86209e15..bde6f79405e 100644 --- a/src/vs/workbench/test/common/editor/rangeDecorations.test.ts +++ b/src/vs/workbench/test/common/editor/rangeDecorations.test.ts @@ -150,7 +150,7 @@ suite('Editor - Range decorations', () => { return model; } - function mockEditorService(editorInput: IEditorInput) + function mockEditorService(editorInput: IEditorInput); function mockEditorService(resource: URI) function mockEditorService(arg: any) { let editorInput: IEditorInput = arg instanceof URI ? instantiationService.createInstance(FileEditorInput, arg, void 0) : arg; -- GitLab