mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
don't show welcome view when web extension terminal is created (#136327)
This commit is contained in:
@@ -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}"`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user