async writeCanRun(cb) {
		if (!cb || typeof cb !== "function") return;
		const res = cb();
		if (res instanceof Promise) {
			this.#canRun = res;
			return;
		}

		this.#canRun = Promise.resolve(res);
	}
Set weather to show run button or not
@param {()=>(boolean|Promise<boolean>)} cb callback function that return true if file can run