Revert "debug: stop supporting enableBreakpointsFor"

This reverts commit 9f2ce53867.
This commit is contained in:
isidor 2020-12-15 15:18:59 +01:00
parent 6c5916cafe
commit d444826441
2 changed files with 6 additions and 0 deletions

View file

@ -54,6 +54,11 @@ export class AdapterManager implements IAdapterManager {
if (!rawAdapter.type || (typeof rawAdapter.type !== 'string')) {
added.collector.error(nls.localize('debugNoType', "Debugger 'type' can not be omitted and must be of type 'string'."));
}
if (rawAdapter.enableBreakpointsFor) { // Support deprecated field since the php-debug extension depends on it
rawAdapter.enableBreakpointsFor.languageIds.forEach(modeId => {
this.breakpointModeIdsSet.add(modeId);
});
}
if (rawAdapter.type !== '*') {
const existing = this.getDebugger(rawAdapter.type);

View file

@ -630,6 +630,7 @@ export interface IDebuggerContribution extends IPlatformSpecificAdapterContribut
// supported languages
languages?: string[];
enableBreakpointsFor?: { languageIds: string[] };
// debug configuration support
configurationAttributes?: any;