Merge branch 'microsoft:main' into main

This commit is contained in:
Simon McEnlly
2021-11-04 12:18:12 +10:00
committed by GitHub
227 changed files with 1227 additions and 888 deletions

View File

@@ -34,6 +34,6 @@ export class Cache<T> {
if (!Cache.enableDebugLogging) {
return;
}
console.log(`${this.id} cache size ${this._data.size}`);
console.log(`${this.id} cache size - ${this._data.size}`);
}
}

View File

@@ -672,10 +672,14 @@ export abstract class BaseExtHostTerminalService extends Disposable implements I
public async $createContributedProfileTerminal(id: string, options: ICreateContributedTerminalProfileOptions): Promise<void> {
const token = new CancellationTokenSource().token;
const profile = await this._profileProviders.get(id)?.provideTerminalProfile(token);
let profile = await this._profileProviders.get(id)?.provideTerminalProfile(token);
if (token.isCancellationRequested) {
return;
}
if (profile && !('options' in profile)) {
profile = { options: profile };
}
if (!profile || !('options' in profile)) {
throw new Error(`No terminal profile options provided for id "${id}"`);
}

View File

@@ -17,7 +17,7 @@ import * as extHostProtocol from './extHost.protocol';
import * as extHostTypes from './extHostTypes';
type IconPath = URI | { light: URI, dark: URI };
type IconPath = URI | { readonly light: URI, readonly dark: URI };
class ExtHostWebviewPanel extends Disposable implements vscode.WebviewPanel {