mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Fix hygiene
This commit is contained in:
parent
4f62f9b594
commit
0bf3071972
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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({});
|
||||
});
|
||||
}));
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue