mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
ensure backward compatibility for Tracker
This commit is contained in:
@@ -662,7 +662,7 @@ export class ExtHostDebugService implements ExtHostDebugServiceShape {
|
||||
const type = config.type;
|
||||
const promises = this._configProviders
|
||||
.filter(pair => pair.provider.provideDebugAdapterTracker && (pair.type === type || pair.type === '*'))
|
||||
.map(pair => asThenable(() => pair.provider.provideDebugAdapterTracker(session, CancellationToken.None)).then(p => p).catch(err => null));
|
||||
.map(pair => asThenable(() => (pair.provider as any).provideDebugAdapterTracker(session, session.workspaceFolder, session.configuration, CancellationToken.None)).then(p => p).catch(err => null));
|
||||
|
||||
return Promise.race([
|
||||
Promise.all(promises).then(trackers => {
|
||||
|
||||
Reference in New Issue
Block a user