Skip to content

Commit

Permalink
Update extension.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Sijawusz Pur Rahnama <[email protected]>
  • Loading branch information
nobodywasishere and Sija authored Nov 18, 2024
1 parent afaad49 commit d9d4b7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ export function activate(context: ExtensionContext) {
}

function executeAmebaOnWorkspace(ameba: Ameba | null) {
if (!ameba) return;

workspace.textDocuments.forEach(doc => {
if (ameba && checkValidDocument(doc)) {
if (checkValidDocument(doc)) {
outputChannel.appendLine(`[Init] Running ameba on ${getRelativePath(doc)}`);
ameba.execute(doc);
}
Expand Down

0 comments on commit d9d4b7b

Please sign in to comment.