import * as vscode from "vscode"; const ACTIVE_PROJECT_KEY = "codesys.activeProjectPath"; export class ExtensionState { constructor(private readonly context: vscode.ExtensionContext) {} public get activeProjectPath(): string { return this.context.globalState.get(ACTIVE_PROJECT_KEY, ""); } public async setActiveProjectPath(path: string): Promise { await this.context.globalState.update(ACTIVE_PROJECT_KEY, path); } }