Let IRPCProtocol#getProxy return Proxied<T> which enforces functions returning promises

fyi @sandy081 had to remove the overload of `MainThreadOutputServiceShape#$update` because I couldn't get this to work with mapped types

fyi @Tyriar this fixed an actual issue with terminals
This commit is contained in:
Johannes Rieken
2022-01-17 18:10:06 +01:00
parent 4aed6e1fd1
commit 393443eb40
8 changed files with 23 additions and 19 deletions

View File

@@ -632,8 +632,8 @@ export abstract class BaseExtHostTerminalService extends Disposable implements I
this._terminalProcesses.get(id)?.getCwd().then(cwd => this._proxy.$sendProcessProperty(id, { type: ProcessPropertyType.Cwd, value: cwd }));
}
public $acceptProcessRequestLatency(id: number): number {
return id;
public $acceptProcessRequestLatency(id: number): Promise<number> {
return Promise.resolve(id);
}
public registerLinkProvider(provider: vscode.TerminalLinkProvider): vscode.Disposable {