fix(ida): compare admitted document paths consistently

This commit is contained in:
morluto
2026-10-10 05:13:53 +08:00
parent 53ed942a85
commit 890bb66b35
2 changed files with 23 additions and 2 deletions
+4 -2
View File
@@ -165,8 +165,10 @@ export class IdaSessionClient implements AnalysisClient {
const document = parameters.document;
if (
document !== undefined &&
document !== this.target.path &&
document !== this.target.sourcePath
(typeof document !== "string" ||
(!sameIdaHostPath(document, this.target.path) &&
(this.target.sourcePath === undefined ||
!sameIdaHostPath(document, this.target.sourcePath))))
)
return err(
new AnalysisInputError(operation, undefined, [