mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
remove double semicolons (#28110)
This commit is contained in:
parent
d5890e4a16
commit
544d44350b
|
@ -68,7 +68,7 @@ export function getLanguageModes(supportedLanguages: { [languageId: string]: boo
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
getModeAtPosition(document: TextDocument, position: Position): LanguageMode {
|
getModeAtPosition(document: TextDocument, position: Position): LanguageMode {
|
||||||
let languageId = documentRegions.get(document).getLanguageAtPosition(position);;
|
let languageId = documentRegions.get(document).getLanguageAtPosition(position);
|
||||||
if (languageId) {
|
if (languageId) {
|
||||||
return modes[languageId];
|
return modes[languageId];
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,7 +86,7 @@ export class BareFontInfo {
|
||||||
lineHeight = 8;
|
lineHeight = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
let letterSpacing = safeParseFloat(opts.letterSpacing, 0);;
|
let letterSpacing = safeParseFloat(opts.letterSpacing, 0);
|
||||||
letterSpacing = clamp(letterSpacing, -20, 20);
|
letterSpacing = clamp(letterSpacing, -20, 20);
|
||||||
|
|
||||||
let editorZoomLevelMultiplier = 1 + (EditorZoom.getZoomLevel() * 0.1);
|
let editorZoomLevelMultiplier = 1 + (EditorZoom.getZoomLevel() * 0.1);
|
||||||
|
|
|
@ -81,7 +81,7 @@ export class FindWidgetViewZone implements IViewZone {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class FindWidget extends Widget implements IOverlayWidget, IHorizontalSashLayoutProvider {
|
export class FindWidget extends Widget implements IOverlayWidget, IHorizontalSashLayoutProvider {
|
||||||
private static ID = 'editor.contrib.findWidget';;
|
private static ID = 'editor.contrib.findWidget';
|
||||||
private _codeEditor: ICodeEditor;
|
private _codeEditor: ICodeEditor;
|
||||||
private _state: FindReplaceState;
|
private _state: FindReplaceState;
|
||||||
private _controller: IFindController;
|
private _controller: IFindController;
|
||||||
|
|
|
@ -31,7 +31,7 @@ suite('TextModelSearch', () => {
|
||||||
let match = TextModelSearch.findNextMatch(model, searchParams, startPos, false);
|
let match = TextModelSearch.findNextMatch(model, searchParams, startPos, false);
|
||||||
assert.deepEqual(match, expectedMatches[0], `findNextMatch ${startPos}`);
|
assert.deepEqual(match, expectedMatches[0], `findNextMatch ${startPos}`);
|
||||||
for (let i = 0; i < expectedMatches.length; i++) {
|
for (let i = 0; i < expectedMatches.length; i++) {
|
||||||
startPos = expectedMatches[i].range.getStartPosition();;
|
startPos = expectedMatches[i].range.getStartPosition();
|
||||||
match = TextModelSearch.findNextMatch(model, searchParams, startPos, false);
|
match = TextModelSearch.findNextMatch(model, searchParams, startPos, false);
|
||||||
assert.deepEqual(match, expectedMatches[i], `findNextMatch ${startPos}`);
|
assert.deepEqual(match, expectedMatches[i], `findNextMatch ${startPos}`);
|
||||||
}
|
}
|
||||||
|
|
|
@ -254,7 +254,7 @@ export class MainThreadTextEditor {
|
||||||
break;
|
break;
|
||||||
case TextEditorRevealType.InCenter:
|
case TextEditorRevealType.InCenter:
|
||||||
this._codeEditor.revealRangeInCenter(range);
|
this._codeEditor.revealRangeInCenter(range);
|
||||||
break;;
|
break;
|
||||||
case TextEditorRevealType.InCenterIfOutsideViewport:
|
case TextEditorRevealType.InCenterIfOutsideViewport:
|
||||||
this._codeEditor.revealRangeInCenterIfOutsideViewport(range);
|
this._codeEditor.revealRangeInCenterIfOutsideViewport(range);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -272,8 +272,8 @@ export class TabsTitleControl extends TitleControl {
|
||||||
// Container
|
// Container
|
||||||
tabContainer.setAttribute('aria-label', `${name}, tab`);
|
tabContainer.setAttribute('aria-label', `${name}, tab`);
|
||||||
tabContainer.title = title;
|
tabContainer.title = title;
|
||||||
tabContainer.style.borderLeftColor = (index !== 0) ? (this.getColor(TAB_BORDER) || this.getColor(contrastBorder)) : null;;
|
tabContainer.style.borderLeftColor = (index !== 0) ? (this.getColor(TAB_BORDER) || this.getColor(contrastBorder)) : null;
|
||||||
tabContainer.style.borderRightColor = (index === editorsOfGroup.length - 1) ? (this.getColor(TAB_BORDER) || this.getColor(contrastBorder)) : null;;
|
tabContainer.style.borderRightColor = (index === editorsOfGroup.length - 1) ? (this.getColor(TAB_BORDER) || this.getColor(contrastBorder)) : null;
|
||||||
tabContainer.style.outlineColor = this.getColor(activeContrastBorder);
|
tabContainer.style.outlineColor = this.getColor(activeContrastBorder);
|
||||||
|
|
||||||
const tabOptions = this.editorGroupService.getTabOptions();
|
const tabOptions = this.editorGroupService.getTabOptions();
|
||||||
|
|
|
@ -1029,7 +1029,7 @@ export class BreakpointsActionProvider implements IActionProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
public hasActions(tree: ITree, element: any): boolean {
|
public hasActions(tree: ITree, element: any): boolean {
|
||||||
return false;;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public hasSecondaryActions(tree: ITree, element: any): boolean {
|
public hasSecondaryActions(tree: ITree, element: any): boolean {
|
||||||
|
@ -1175,7 +1175,7 @@ export class BreakpointsRenderer implements IRenderer {
|
||||||
}
|
}
|
||||||
|
|
||||||
private renderExceptionBreakpoint(exceptionBreakpoint: debug.IExceptionBreakpoint, data: IBaseBreakpointTemplateData): void {
|
private renderExceptionBreakpoint(exceptionBreakpoint: debug.IExceptionBreakpoint, data: IBaseBreakpointTemplateData): void {
|
||||||
data.name.textContent = exceptionBreakpoint.label || `${exceptionBreakpoint.filter} exceptions`;;
|
data.name.textContent = exceptionBreakpoint.label || `${exceptionBreakpoint.filter} exceptions`;
|
||||||
data.breakpoint.title = data.name.textContent;
|
data.breakpoint.title = data.name.textContent;
|
||||||
data.checkbox.checked = exceptionBreakpoint.enabled;
|
data.checkbox.checked = exceptionBreakpoint.enabled;
|
||||||
}
|
}
|
||||||
|
|
|
@ -278,7 +278,7 @@ export class RawDebugSession extends v8.V8Protocol implements debug.ISession {
|
||||||
return this.send('restartFrame', args).then(response => {
|
return this.send('restartFrame', args).then(response => {
|
||||||
this.fireFakeContinued(threadId);
|
this.fireFakeContinued(threadId);
|
||||||
return response;
|
return response;
|
||||||
});;
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public completions(args: DebugProtocol.CompletionsArguments): TPromise<DebugProtocol.CompletionsResponse> {
|
public completions(args: DebugProtocol.CompletionsArguments): TPromise<DebugProtocol.CompletionsResponse> {
|
||||||
|
|
|
@ -288,7 +288,7 @@ class KeybindingItemMatches {
|
||||||
}
|
}
|
||||||
|
|
||||||
private filterAndSort(matches: IMatch[]): IMatch[] {
|
private filterAndSort(matches: IMatch[]): IMatch[] {
|
||||||
return distinct(matches, (a => a.start + '.' + a.end)).filter(match => !matches.some(m => !(m.start === match.start && m.end === match.end) && (m.start <= match.start && m.end >= match.end))).sort((a, b) => a.start - b.start);;
|
return distinct(matches, (a => a.start + '.' + a.end)).filter(match => !matches.some(m => !(m.start === match.start && m.end === match.end) && (m.start <= match.start && m.end >= match.end))).sort((a, b) => a.start - b.start);
|
||||||
}
|
}
|
||||||
|
|
||||||
private matchesKeybinding(keybinding: ResolvedKeybinding, searchValue: string, words: string[]): KeybindingMatches {
|
private matchesKeybinding(keybinding: ResolvedKeybinding, searchValue: string, words: string[]): KeybindingMatches {
|
||||||
|
|
|
@ -1331,7 +1331,7 @@ class ConfigurationParser {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((!result.tasks || result.tasks.length === 0) && (globals.command && globals.command.name)) {
|
if ((!result.tasks || result.tasks.length === 0) && (globals.command && globals.command.name)) {
|
||||||
let matchers: ProblemMatcher[] = ProblemMatcherConverter.from(fileConfig.problemMatcher, context);;
|
let matchers: ProblemMatcher[] = ProblemMatcherConverter.from(fileConfig.problemMatcher, context);
|
||||||
let isBackground = fileConfig.isBackground ? !!fileConfig.isBackground : fileConfig.isWatching ? !!fileConfig.isWatching : undefined;
|
let isBackground = fileConfig.isBackground ? !!fileConfig.isBackground : fileConfig.isWatching ? !!fileConfig.isWatching : undefined;
|
||||||
let task: Tasks.Task = {
|
let task: Tasks.Task = {
|
||||||
_id: context.uuidMap.getUUID(globals.command.name),
|
_id: context.uuidMap.getUUID(globals.command.name),
|
||||||
|
|
|
@ -47,7 +47,7 @@ export function testConfigViews() {
|
||||||
await configView.enterBinding(['Control', 'u', 'NULL']);
|
await configView.enterBinding(['Control', 'u', 'NULL']);
|
||||||
await common.enter();
|
await common.enter();
|
||||||
let html = await configView.getActivityBar(ActivityBarPosition.RIGHT);
|
let html = await configView.getActivityBar(ActivityBarPosition.RIGHT);
|
||||||
assert.equal(html, undefined);;
|
assert.equal(html, undefined);
|
||||||
await app.wait();
|
await app.wait();
|
||||||
await configView.toggleActivityBarPosition();
|
await configView.toggleActivityBarPosition();
|
||||||
html = await configView.getActivityBar(ActivityBarPosition.RIGHT);
|
html = await configView.getActivityBar(ActivityBarPosition.RIGHT);
|
||||||
|
|
Loading…
Reference in a new issue