Skip to content

Commit 8a483f1

Browse files
committed
debug: always respect passed type when guessing adapter
fixes microsoft#19606
1 parent ced55cc commit 8a483f1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/vs/workbench/parts/debug/electron-browser/debugConfigurationManager.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,7 @@ export class ConfigurationManager implements debug.IConfigurationManager {
389389
private guessAdapter(type?: string): TPromise<Adapter> {
390390
if (type) {
391391
const adapter = this.getAdapter(type);
392-
if (adapter) {
393-
return TPromise.as(adapter);
394-
}
392+
return TPromise.as(adapter);
395393
}
396394

397395
const editor = this.editorService.getActiveEditor();

0 commit comments

Comments
 (0)