Skip to content

Commit 544d443

Browse files
jens1omjbvz
authored andcommitted
remove double semicolons (microsoft#28110)
1 parent d5890e4 commit 544d443

11 files changed

Lines changed: 13 additions & 13 deletions

File tree

extensions/html/server/src/modes/languageModes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function getLanguageModes(supportedLanguages: { [languageId: string]: boo
6868
}
6969
return {
7070
getModeAtPosition(document: TextDocument, position: Position): LanguageMode {
71-
let languageId = documentRegions.get(document).getLanguageAtPosition(position);;
71+
let languageId = documentRegions.get(document).getLanguageAtPosition(position);
7272
if (languageId) {
7373
return modes[languageId];
7474
}

src/vs/editor/common/config/fontInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class BareFontInfo {
8686
lineHeight = 8;
8787
}
8888

89-
let letterSpacing = safeParseFloat(opts.letterSpacing, 0);;
89+
let letterSpacing = safeParseFloat(opts.letterSpacing, 0);
9090
letterSpacing = clamp(letterSpacing, -20, 20);
9191

9292
let editorZoomLevelMultiplier = 1 + (EditorZoom.getZoomLevel() * 0.1);

src/vs/editor/contrib/find/browser/findWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export class FindWidgetViewZone implements IViewZone {
8181
}
8282

8383
export class FindWidget extends Widget implements IOverlayWidget, IHorizontalSashLayoutProvider {
84-
private static ID = 'editor.contrib.findWidget';;
84+
private static ID = 'editor.contrib.findWidget';
8585
private _codeEditor: ICodeEditor;
8686
private _state: FindReplaceState;
8787
private _controller: IFindController;

src/vs/editor/test/common/model/textModelSearch.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ suite('TextModelSearch', () => {
3131
let match = TextModelSearch.findNextMatch(model, searchParams, startPos, false);
3232
assert.deepEqual(match, expectedMatches[0], `findNextMatch ${startPos}`);
3333
for (let i = 0; i < expectedMatches.length; i++) {
34-
startPos = expectedMatches[i].range.getStartPosition();;
34+
startPos = expectedMatches[i].range.getStartPosition();
3535
match = TextModelSearch.findNextMatch(model, searchParams, startPos, false);
3636
assert.deepEqual(match, expectedMatches[i], `findNextMatch ${startPos}`);
3737
}

src/vs/workbench/api/electron-browser/mainThreadEditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export class MainThreadTextEditor {
254254
break;
255255
case TextEditorRevealType.InCenter:
256256
this._codeEditor.revealRangeInCenter(range);
257-
break;;
257+
break;
258258
case TextEditorRevealType.InCenterIfOutsideViewport:
259259
this._codeEditor.revealRangeInCenterIfOutsideViewport(range);
260260
break;

src/vs/workbench/browser/parts/editor/tabsTitleControl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ export class TabsTitleControl extends TitleControl {
272272
// Container
273273
tabContainer.setAttribute('aria-label', `${name}, tab`);
274274
tabContainer.title = title;
275-
tabContainer.style.borderLeftColor = (index !== 0) ? (this.getColor(TAB_BORDER) || this.getColor(contrastBorder)) : null;;
276-
tabContainer.style.borderRightColor = (index === editorsOfGroup.length - 1) ? (this.getColor(TAB_BORDER) || this.getColor(contrastBorder)) : null;;
275+
tabContainer.style.borderLeftColor = (index !== 0) ? (this.getColor(TAB_BORDER) || this.getColor(contrastBorder)) : null;
276+
tabContainer.style.borderRightColor = (index === editorsOfGroup.length - 1) ? (this.getColor(TAB_BORDER) || this.getColor(contrastBorder)) : null;
277277
tabContainer.style.outlineColor = this.getColor(activeContrastBorder);
278278

279279
const tabOptions = this.editorGroupService.getTabOptions();

src/vs/workbench/parts/debug/electron-browser/debugViewer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ export class BreakpointsActionProvider implements IActionProvider {
10291029
}
10301030

10311031
public hasActions(tree: ITree, element: any): boolean {
1032-
return false;;
1032+
return false;
10331033
}
10341034

10351035
public hasSecondaryActions(tree: ITree, element: any): boolean {
@@ -1175,7 +1175,7 @@ export class BreakpointsRenderer implements IRenderer {
11751175
}
11761176

11771177
private renderExceptionBreakpoint(exceptionBreakpoint: debug.IExceptionBreakpoint, data: IBaseBreakpointTemplateData): void {
1178-
data.name.textContent = exceptionBreakpoint.label || `${exceptionBreakpoint.filter} exceptions`;;
1178+
data.name.textContent = exceptionBreakpoint.label || `${exceptionBreakpoint.filter} exceptions`;
11791179
data.breakpoint.title = data.name.textContent;
11801180
data.checkbox.checked = exceptionBreakpoint.enabled;
11811181
}

src/vs/workbench/parts/debug/electron-browser/rawDebugSession.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export class RawDebugSession extends v8.V8Protocol implements debug.ISession {
278278
return this.send('restartFrame', args).then(response => {
279279
this.fireFakeContinued(threadId);
280280
return response;
281-
});;
281+
});
282282
}
283283

284284
public completions(args: DebugProtocol.CompletionsArguments): TPromise<DebugProtocol.CompletionsResponse> {

src/vs/workbench/parts/preferences/common/keybindingsEditorModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ class KeybindingItemMatches {
288288
}
289289

290290
private filterAndSort(matches: IMatch[]): IMatch[] {
291-
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);;
291+
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);
292292
}
293293

294294
private matchesKeybinding(keybinding: ResolvedKeybinding, searchValue: string, words: string[]): KeybindingMatches {

src/vs/workbench/parts/tasks/common/taskConfiguration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ class ConfigurationParser {
13311331
}
13321332

13331333
if ((!result.tasks || result.tasks.length === 0) && (globals.command && globals.command.name)) {
1334-
let matchers: ProblemMatcher[] = ProblemMatcherConverter.from(fileConfig.problemMatcher, context);;
1334+
let matchers: ProblemMatcher[] = ProblemMatcherConverter.from(fileConfig.problemMatcher, context);
13351335
let isBackground = fileConfig.isBackground ? !!fileConfig.isBackground : fileConfig.isWatching ? !!fileConfig.isWatching : undefined;
13361336
let task: Tasks.Task = {
13371337
_id: context.uuidMap.getUUID(globals.command.name),

0 commit comments

Comments
 (0)