Skip to content

Commit c11e928

Browse files
authored
Merge pull request #112565 from microsoft/isidorn/enableBreakpointsFor
Revert "debug: stop supporting enableBreakpointsFor"
2 parents 940b5f4 + 2b6973a commit c11e928

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

+5
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 && rawAdapter.enableBreakpointsFor.languageIds) {
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

+1
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)