Skip to content

Commit

Permalink
Merge pull request #18 from SMJSGaming/conditional-load
Browse files Browse the repository at this point in the history
Conditional load
  • Loading branch information
dankmeme01 authored Oct 6, 2024
2 parents 779ff1f + 5d45813 commit 8f831bf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ import {
window,
ExtensionContext,
commands,
SnippetString,
languages,
workspace,
} from "vscode";
import { getOutputChannel, loadData, saveData, setupConfig } from "./config";
import * as geode from "./geode/geode";
import { browser } from "./browser/browser";
import { DevToolsPanel } from "./devtools/DevToolsPanel";
import { execSync } from "child_process";
import { getActiveProject, getOpenedProjects } from "./project/project";
import { env } from "vscode";
Expand All @@ -18,6 +17,10 @@ import { SpriteHoverPreview } from "./project/hover";
import { registerLinters } from "./project/lint";

export async function activate(context: ExtensionContext) {
if ((await workspace.findFiles("mod.json")).length == 0) {
return;
}

const channel = window.createOutputChannel("Geode");

// store globals
Expand Down

0 comments on commit 8f831bf

Please sign in to comment.