mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-18 14:19:42 +01:00
Add new remote agent method
This commit is contained in:
@@ -56,6 +56,16 @@ export abstract class AbstractRemoteAgentService extends Disposable implements I
|
||||
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
|
||||
disableTelemetry(): Promise<void> {
|
||||
const connection = this.getConnection();
|
||||
if (connection) {
|
||||
const client = new RemoteExtensionEnvironmentChannelClient(connection.getChannel('remoteextensionsenvironment'));
|
||||
return client.disableTelemetry();
|
||||
}
|
||||
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
}
|
||||
|
||||
export class RemoteAgentConnection extends Disposable implements IRemoteAgentConnection {
|
||||
|
||||
@@ -20,6 +20,7 @@ export interface IRemoteAgentService {
|
||||
getConnection(): IRemoteAgentConnection | null;
|
||||
getEnvironment(bail?: boolean): Promise<IRemoteAgentEnvironment | null>;
|
||||
getDiagnosticInfo(options: IDiagnosticInfoOptions): Promise<IDiagnosticInfo | undefined>;
|
||||
disableTelemetry(): Promise<void>;
|
||||
}
|
||||
|
||||
export interface IRemoteAgentConnection {
|
||||
|
||||
Reference in New Issue
Block a user