Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2b6973a

Browse files
committedDec 15, 2020
debug: check for existence of enableBreakpointsFor.languageIds
1 parent 374d05c commit 2b6973a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ 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) {
57+
if (rawAdapter.enableBreakpointsFor && rawAdapter.enableBreakpointsFor.languageIds) {
5858
rawAdapter.enableBreakpointsFor.languageIds.forEach(modeId => {
5959
this.breakpointModeIdsSet.add(modeId);
6060
});

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

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

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

634634
// debug configuration support
635635
configurationAttributes?: any;

0 commit comments

Comments
 (0)
Please sign in to comment.