mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user