fix(hopper): cancel analysis and close documents reliably

This commit is contained in:
morluto
2026-07-14 04:18:26 +08:00
parent fb0da031cf
commit 179870e825
5 changed files with 70 additions and 5 deletions
+1
View File
@@ -72,6 +72,7 @@ export class HopperApplicationLauncher implements BridgeLauncher {
`REA_SOCKET = ${JSON.stringify(session.socketPath)}`,
`REA_TOKEN = ${JSON.stringify(session.token)}`,
`REA_RUN_ID = ${JSON.stringify(session.runId)}`,
`REA_TARGET_PATH = ${JSON.stringify(this.options.targetPath)}`,
`exec(compile(open(${JSON.stringify(this.options.bridgeScriptPath)}, 'rb').read(), ${JSON.stringify(this.options.bridgeScriptPath)}, 'exec'))`,
"",
].join("\n");