Skip to content

Commit

Permalink
Method not found: toJSON (fix #186623) (#188651)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero authored Jul 24, 2023
1 parent 642ff50 commit e2693cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/vs/base/parts/ipc/common/ipc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { CancelablePromise, createCancelablePromise, timeout } from 'vs/base/com
import { VSBuffer } from 'vs/base/common/buffer';
import { CancellationToken, CancellationTokenSource } from 'vs/base/common/cancellation';
import { memoize } from 'vs/base/common/decorators';
import { CancellationError } from 'vs/base/common/errors';
import { CancellationError, ErrorNoTelemetry } from 'vs/base/common/errors';
import { Emitter, Event, EventMultiplexer, Relay } from 'vs/base/common/event';
import { combinedDisposable, DisposableStore, dispose, IDisposable, toDisposable } from 'vs/base/common/lifecycle';
import { revive } from 'vs/base/common/marshalling';
Expand Down Expand Up @@ -1102,7 +1102,7 @@ export namespace ProxyChannel {
}
}

throw new Error(`Event not found: ${event}`);
throw new ErrorNoTelemetry(`Event not found: ${event}`);
}

call(_: unknown, command: string, args?: any[]): Promise<any> {
Expand All @@ -1119,7 +1119,7 @@ export namespace ProxyChannel {
return target.apply(handler, args);
}

throw new Error(`Method not found: ${command}`);
throw new ErrorNoTelemetry(`Method not found: ${command}`);
}
};
}
Expand Down Expand Up @@ -1185,7 +1185,7 @@ export namespace ProxyChannel {
};
}

throw new Error(`Property not found: ${String(propKey)}`);
throw new ErrorNoTelemetry(`Property not found: ${String(propKey)}`);
}
}) as T;
}
Expand Down

0 comments on commit e2693cf

Please sign in to comment.