Skip to content

Commit 0716056

Browse files
committed
One more
1 parent 9ee8a53 commit 0716056

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/commands/compile.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,7 @@ export async function compileOnly(askFlags = false, document?: vscode.TextDocume
382382
export async function namespaceCompile(askFlags = false): Promise<any> {
383383
const api = new AtelierAPI();
384384
const fileTypes = ["*.CLS", "*.MAC", "*.INC", "*.BAS"];
385-
if (!config("conn").active) {
386-
throw new Error(`No Active Connection`);
387-
}
385+
if (!api.active) return;
388386
const confirm = await vscode.window.showWarningMessage(
389387
`Compiling all files in namespace ${api.ns} might be expensive. Are you sure you want to proceed?`,
390388
"Cancel",

0 commit comments

Comments
 (0)