提交 8d497960 编写于 作者: E Eric Amodio

Deals with #89553 for now

上级 60ec6509
......@@ -107,8 +107,16 @@ export class TimelineService implements ITimelineService {
const source = provider.source;
const existing = this._providers.get(source);
if (existing && !existing.replaceable) {
throw new Error(`Timeline Provider ${source} already exists.`);
// For now to deal with https://github.com/microsoft/vscode/issues/89553 allow any overwritting here (still will be blocked in the Extension Host)
// TODO[ECA]: Ultimately will need to figure out a way to unregister providers when the Extension Host restarts/crashes
// if (existing && !existing.replaceable) {
// throw new Error(`Timeline Provider ${source} already exists.`);
// }
if (existing) {
try {
existing?.dispose();
}
catch { }
}
this._providers.set(source, provider);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册