@@ -43,9 +43,6 @@ export function traceRpc(_target: any, key: string, descriptor: any) {
4343 if ( fn ! . length !== 0 ) {
4444 console . warn ( 'Memoize should only be used in functions with zero parameters' ) ;
4545 }
46- } else if ( typeof descriptor . get === 'function' ) {
47- fnKey = 'get' ;
48- fn = descriptor . get ;
4946 }
5047
5148 if ( ! fn ) {
@@ -59,7 +56,7 @@ export function traceRpc(_target: any, key: string, descriptor: any) {
5956 if ( this . traceRpcArgs . simulatedLatency ) {
6057 await timeout ( this . traceRpcArgs . simulatedLatency ) ;
6158 }
62- const result = await fn . apply ( this , args ) ;
59+ const result = await fn ! . apply ( this , args ) ;
6360 if ( this . traceRpcArgs . logService . getLevel ( ) === LogLevel . Trace ) {
6461 this . traceRpcArgs . logService . trace ( `[RPC Response] PtyService#${ fnKey } ` , result ) ;
6562 }
@@ -576,22 +573,6 @@ export class PtyService extends Disposable implements IPtyService {
576573 }
577574 return pty ;
578575 }
579-
580- // private async _traceRpc<T>(impl: () => T, ...args: unknown[]): Promise<T> {
581- // let method: string | undefined;
582- // if (this._logService.getLevel() === LogLevel.Trace) {
583- // method = this._getCallingMethod(new Error().stack);
584- // this._logService.trace(`[RPC Request] PtyService#${method}(${args.map(e => JSON.stringify(e)).join(', ')})`);
585- // }
586- // if (this._simulatedLatency) {
587- // await timeout(this._simulatedLatency);
588- // }
589- // const result = impl();
590- // if (this._logService.getLevel() === LogLevel.Trace) {
591- // this._logService.trace(`[RPC Response] PtyService#${method}`, result);
592- // }
593- // return result;
594- // }
595576}
596577
597578const enum InteractionState {
0 commit comments