提交 4e058f56 编写于 作者: E Erich Gamma

tslint hygene

上级 36250524
......@@ -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:
......
......@@ -31,8 +31,8 @@ export function isSearchViewletFocussed(viewletService: IViewletService): boolea
return activeViewlet && activeViewlet.getId() === Constants.VIEWLET_ID && activeElement && DOM.isAncestor(activeElement, (<SearchViewlet>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;
......
......@@ -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;
......
......@@ -12,7 +12,7 @@ export const WORKSPACE_CONFIG_DEFAULT_PATH = `${WORKSPACE_CONFIG_FOLDER_DEFAULT_
export const IWorkspaceConfigurationService = createDecorator<IWorkspaceConfigurationService>('configurationService');
export type IWorkspaceConfigurationValues = { [key: string]: IWorkspaceConfigurationValue<any> }
export type IWorkspaceConfigurationValues = { [key: string]: IWorkspaceConfigurationValue<any> };
export interface IWorkspaceConfigurationService extends IConfigurationService {
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册