Skip to content

Commit

Permalink
Export ExtensionRuntime for other extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
BurstingF committed Jul 9, 2024
1 parent 0dcecca commit 90e9eb5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ import * as PromiseAny from 'promise.any';
const DafnyVersionTimeoutMs = 5_000;
let extensionRuntime: ExtensionRuntime | undefined;

export async function activate(context: ExtensionContext): Promise<void> {
export async function activate(context: ExtensionContext): Promise<ExtensionRuntime | undefined> {
if(!await checkAndInformAboutInstallation(context)) {
return;
return undefined;
}
const statusOutput = window.createOutputChannel(ExtensionConstants.ChannelName);
context.subscriptions.push(statusOutput);
extensionRuntime = new ExtensionRuntime(context, statusOutput);
await extensionRuntime.initialize();
return extensionRuntime;
}

export async function deactivate(): Promise<void> {
Expand Down

0 comments on commit 90e9eb5

Please sign in to comment.