File tree 2 files changed +6
-0
lines changed
src/vs/workbench/contrib/debug
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,11 @@ export class AdapterManager implements IAdapterManager {
54
54
if ( ! rawAdapter . type || ( typeof rawAdapter . type !== 'string' ) ) {
55
55
added . collector . error ( nls . localize ( 'debugNoType' , "Debugger 'type' can not be omitted and must be of type 'string'." ) ) ;
56
56
}
57
+ if ( rawAdapter . enableBreakpointsFor && rawAdapter . enableBreakpointsFor . languageIds ) {
58
+ rawAdapter . enableBreakpointsFor . languageIds . forEach ( modeId => {
59
+ this . breakpointModeIdsSet . add ( modeId ) ;
60
+ } ) ;
61
+ }
57
62
58
63
if ( rawAdapter . type !== '*' ) {
59
64
const existing = this . getDebugger ( rawAdapter . type ) ;
Original file line number Diff line number Diff line change @@ -629,6 +629,7 @@ export interface IDebuggerContribution extends IPlatformSpecificAdapterContribut
629
629
630
630
// supported languages
631
631
languages ?: string [ ] ;
632
+ enableBreakpointsFor ?: { languageIds ?: string [ ] } ;
632
633
633
634
// debug configuration support
634
635
configurationAttributes ?: any ;
You can’t perform that action at this time.
0 commit comments