Skip to content

Commit

Permalink
fix: reset work dir parser each time (#1269)
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Wu <[email protected]>
  • Loading branch information
scnwwu authored Nov 11, 2024
1 parent cbef436 commit ca83b47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/src/connection/itc/LineParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,9 @@ export class LineParser {
public isCapturingLine(): boolean {
return this.capturingLine;
}

public reset() {
this.capturingLine = false;
this.processedLines = [];
}
}
1 change: 1 addition & 0 deletions client/src/connection/itc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export class ITCSession extends Session {
`$runner.Setup($profileHost,$username,$password,$port,$protocol,$serverName,$displayLang)\n`,
this.onWriteComplete,
);
this._workDirectoryParser.reset();
this._shellProcess.stdin.write(
"$runner.ResolveSystemVars()\n",
this.onWriteComplete,
Expand Down

0 comments on commit ca83b47

Please sign in to comment.