File tree Expand file tree Collapse file tree
src/vs/workbench/services/remote/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,6 +56,16 @@ export abstract class AbstractRemoteAgentService extends Disposable implements I
5656
5757 return Promise . resolve ( undefined ) ;
5858 }
59+
60+ disableTelemetry ( ) : Promise < void > {
61+ const connection = this . getConnection ( ) ;
62+ if ( connection ) {
63+ const client = new RemoteExtensionEnvironmentChannelClient ( connection . getChannel ( 'remoteextensionsenvironment' ) ) ;
64+ return client . disableTelemetry ( ) ;
65+ }
66+
67+ return Promise . resolve ( undefined ) ;
68+ }
5969}
6070
6171export class RemoteAgentConnection extends Disposable implements IRemoteAgentConnection {
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export interface IRemoteAgentService {
2020 getConnection ( ) : IRemoteAgentConnection | null ;
2121 getEnvironment ( bail ?: boolean ) : Promise < IRemoteAgentEnvironment | null > ;
2222 getDiagnosticInfo ( options : IDiagnosticInfoOptions ) : Promise < IDiagnosticInfo | undefined > ;
23+ disableTelemetry ( ) : Promise < void > ;
2324}
2425
2526export interface IRemoteAgentConnection {
You can’t perform that action at this time.
0 commit comments