Skip to content

Commit 364d927

Browse files
committed
bug: fix launching debug session
1 parent 33a346b commit 364d927

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/features/linter-provider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ export class FortranLintingProvider {
279279
const textDocument = textEditor.document;
280280
this.linter = this.getLinter(this.settings.compiler);
281281
const command = this.getLinterExecutable();
282-
let argList = [...this.constructArgumentList(textDocument)];
282+
let argList = this.constructArgumentList(textDocument);
283283
// Remove mandatory linter args, used for mock compilation
284284
argList = argList.filter(arg => !this.linter.args.includes(arg));
285285
if (debug) argList.push('-g'); // add debug symbols flag, same for all compilers
@@ -296,7 +296,7 @@ export class FortranLintingProvider {
296296
program: `${textDocument.fileName}.o`,
297297
cwd: folder.uri.fsPath,
298298
};
299-
await vscode.debug.startDebugging(folder, selectedConfig, { noDebug: debug });
299+
await vscode.debug.startDebugging(folder, selectedConfig, { noDebug: !debug });
300300
return;
301301
} catch (err) {
302302
this.logger.error(`[build] Compiling ${textDocument.fileName} failed:`, err);

0 commit comments

Comments
 (0)