Skip to content

Commit ca83b47

Browse files
authored
fix: reset work dir parser each time (#1269)
Signed-off-by: Wei Wu <wei.wu@sas.com>
1 parent cbef436 commit ca83b47

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

client/src/connection/itc/LineParser.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,9 @@ export class LineParser {
3737
public isCapturingLine(): boolean {
3838
return this.capturingLine;
3939
}
40+
41+
public reset() {
42+
this.capturingLine = false;
43+
this.processedLines = [];
44+
}
4045
}

client/src/connection/itc/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ export class ITCSession extends Session {
141141
`$runner.Setup($profileHost,$username,$password,$port,$protocol,$serverName,$displayLang)\n`,
142142
this.onWriteComplete,
143143
);
144+
this._workDirectoryParser.reset();
144145
this._shellProcess.stdin.write(
145146
"$runner.ResolveSystemVars()\n",
146147
this.onWriteComplete,

0 commit comments

Comments
 (0)