@@ -43,9 +43,6 @@ export function traceRpc(_target: any, key: string, descriptor: any) {
43
43
if ( fn ! . length !== 0 ) {
44
44
console . warn ( 'Memoize should only be used in functions with zero parameters' ) ;
45
45
}
46
- } else if ( typeof descriptor . get === 'function' ) {
47
- fnKey = 'get' ;
48
- fn = descriptor . get ;
49
46
}
50
47
51
48
if ( ! fn ) {
@@ -59,7 +56,7 @@ export function traceRpc(_target: any, key: string, descriptor: any) {
59
56
if ( this . traceRpcArgs . simulatedLatency ) {
60
57
await timeout ( this . traceRpcArgs . simulatedLatency ) ;
61
58
}
62
- const result = await fn . apply ( this , args ) ;
59
+ const result = await fn ! . apply ( this , args ) ;
63
60
if ( this . traceRpcArgs . logService . getLevel ( ) === LogLevel . Trace ) {
64
61
this . traceRpcArgs . logService . trace ( `[RPC Response] PtyService#${ fnKey } ` , result ) ;
65
62
}
@@ -576,22 +573,6 @@ export class PtyService extends Disposable implements IPtyService {
576
573
}
577
574
return pty ;
578
575
}
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
- // }
595
576
}
596
577
597
578
const enum InteractionState {
0 commit comments