Merge branch 'main' into notebook/dev

This commit is contained in:
Johannes Rieken
2021-03-31 08:14:39 +02:00
210 changed files with 34988 additions and 2846 deletions

View File

@@ -350,11 +350,11 @@ export class MainThreadTerminalService implements MainThreadTerminalServiceShape
if (conn) {
return this._remoteAuthority === conn.remoteAuthority;
}
return true;
return this._extHostKind !== ExtensionHostKind.LocalWebWorker;
}
private async _onRequestAvailableProfiles(req: IAvailableProfilesRequest): Promise<void> {
if (this._isPrimaryExtHost() && this._extHostKind !== ExtensionHostKind.LocalWebWorker) {
if (this._isPrimaryExtHost()) {
req.callback(await this._proxy.$getAvailableProfiles(req.configuredProfilesOnly));
}
}

View File

@@ -771,8 +771,7 @@ export class WorkerExtHostTerminalService extends BaseExtHostTerminalService {
}
public getDefaultShell(useAutomationShell: boolean, configProvider: ExtHostConfigProvider): string {
// Return the empty string to avoid throwing
return '';
throw new NotSupportedError();
}
public getDefaultShellArgs(useAutomationShell: boolean, configProvider: ExtHostConfigProvider): string[] | string {
@@ -788,6 +787,6 @@ export class WorkerExtHostTerminalService extends BaseExtHostTerminalService {
}
public $acceptWorkspacePermissionsChanged(isAllowed: boolean): void {
// No-op for web worker ext host as workspace permissions aren't used
throw new NotSupportedError();
}
}

View File

@@ -44,6 +44,12 @@ export class ExtHostTask extends ExtHostTaskBase {
authority: initData.remote.authority,
platform: process.platform
});
} else {
this.registerTaskSystem(Schemas.file, {
scheme: Schemas.file,
authority: '',
platform: process.platform
});
}
this._proxy.$registerSupportedExecutions(true, true, true);
}