提交 337cf181 编写于 作者: I isidor

debug: give priority to the later registered debug extension.

fixes #838
上级 cf28e900
......@@ -176,6 +176,8 @@ export class ConfigurationManager {
if (attribute === 'enableBreakpointsFor') {
Object.keys(adapter.enableBreakpointsFor).forEach(languageId => duplicate.enableBreakpointsFor[languageId] = true);
} else if (duplicate[attribute] && attribute !== 'type') {
// Give priority to the later registered extension.
duplicate[attribute] = adapter[attribute];
extension.collector.warn(nls.localize('duplicateDebuggerType', "Debug type '{0}' is already registered and has attribute '{1}', ignoring attribute '{1}'.", adapter.type, attribute));
} else {
duplicate[attribute] = adapter[attribute];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册