Fix hygiene

This commit is contained in:
Alex Dima 2022-02-04 15:49:50 +01:00
parent 4f62f9b594
commit 0bf3071972
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9
22 changed files with 179 additions and 174 deletions

View file

@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
.vscode-dark img[src$=\#gh-light-mode-only],
.vscode-light img[src$=\#gh-dark-mode-only] {
display: none;

View file

@ -39,12 +39,12 @@ export class Codicon implements CSSIcon {
public get cssSelector() { return '.codicon.codicon-' + this.id; }
// registry
private static _allCodicons : Codicon[] = [];
private static _allCodicons: Codicon[] = [];
/**
* @returns Returns all default icons covered by the codicon font. Only to be used by the icon registry in platform.
*/
public static getAll() : readonly Codicon[] {
public static getAll(): readonly Codicon[] {
return Codicon._allCodicons;
}

View file

@ -191,7 +191,7 @@ export class ExtensionManagementCLIService implements IExtensionManagementCLISer
private async getGalleryExtensions(extensions: InstallExtensionInfo[]): Promise<Map<string, IGalleryExtension>> {
const galleryExtensions = new Map<string, IGalleryExtension>();
const preRelease = extensions.some(e => e.installOptions.installPreReleaseVersion);
const result = await this.extensionGalleryService.getExtensions(extensions.map(e => ({...e, preRelease})), CancellationToken.None);
const result = await this.extensionGalleryService.getExtensions(extensions.map(e => ({ ...e, preRelease })), CancellationToken.None);
for (const extension of result) {
galleryExtensions.set(extension.identifier.id.toLowerCase(), extension);
}

View file

@ -124,7 +124,7 @@ export class MainThreadNotebookKernels implements MainThreadNotebookKernelsShape
this._disposables.add(toDisposable(() => {
// EH shut down, complete all executions started by this EH
this._executions.forEach(e => {
e.complete({ });
e.complete({});
});
}));

View file

@ -30,8 +30,8 @@ declare namespace self {
let addEventListener: any;
let removeEventListener: any;
let dispatchEvent: any;
let indexedDB: { open: any; [k: string]: any };
let caches: { open: any; [k: string]: any };
let indexedDB: { open: any;[k: string]: any };
let caches: { open: any;[k: string]: any };
let importScripts: any;
let fetch: _Fetch;
let XMLHttpRequest: any;

View file

@ -42,7 +42,7 @@ export class DynamicEditorGroupAutoLockConfiguration extends Disposable implemen
// (atleast 20 times) while the extensions are getting registered.
// As such push out the dynamic editor auto lock configuration
// until after extensions registered.
(async ()=> {
(async () => {
await extensionService.whenInstalledExtensionsRegistered();
this.updateConfiguration();

View file

@ -259,7 +259,7 @@ function convertPaths(msg: DebugProtocol.ProtocolMessage, fixSourcePath: (toDA:
break;
case 'disassemble':
{
const di = <DebugProtocol.DisassembleResponse> response;
const di = <DebugProtocol.DisassembleResponse>response;
if (di.body) {
di.body.instructions.forEach(di => fixSourcePath(false, di.location));
}

View file

@ -320,7 +320,7 @@ export class WorkbenchKeybindingService extends AbstractKeybindingService {
return resolvedKeybinding.getDispatchParts().map(x => x || '[null]').join(' ');
}
private _printResolvedKeybindings(output:string[], input: string, resolvedKeybindings: ResolvedKeybinding[]): void {
private _printResolvedKeybindings(output: string[], input: string, resolvedKeybindings: ResolvedKeybinding[]): void {
const padLength = 35;
const firstRow = `${input.padStart(padLength, ' ')} => `;
if (resolvedKeybindings.length === 0) {