Skip to content

Commit 374d05c

Browse files
committed
Revert "debug: stop supporting enableBreakpointsFor"
This reverts commit 9f2ce53. fixes #112564
1 parent 940b5f4 commit 374d05c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/vs/workbench/contrib/debug/browser/debugAdapterManager.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ export class AdapterManager implements IAdapterManager {
5454
if (!rawAdapter.type || (typeof rawAdapter.type !== 'string')) {
5555
added.collector.error(nls.localize('debugNoType', "Debugger 'type' can not be omitted and must be of type 'string'."));
5656
}
57+
if (rawAdapter.enableBreakpointsFor) {
58+
rawAdapter.enableBreakpointsFor.languageIds.forEach(modeId => {
59+
this.breakpointModeIdsSet.add(modeId);
60+
});
61+
}
5762

5863
if (rawAdapter.type !== '*') {
5964
const existing = this.getDebugger(rawAdapter.type);

src/vs/workbench/contrib/debug/common/debug.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,7 @@ export interface IDebuggerContribution extends IPlatformSpecificAdapterContribut
629629

630630
// supported languages
631631
languages?: string[];
632+
enableBreakpointsFor?: { languageIds: string[] };
632633

633634
// debug configuration support
634635
configurationAttributes?: any;

0 commit comments

Comments
 (0)