This commit is contained in:
Eugene Pankov 2021-07-24 10:14:07 +02:00
parent 129bc8a9f1
commit 6f972ab4cc
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
2 changed files with 2 additions and 2 deletions

View File

@ -287,7 +287,7 @@ export class Session extends BaseSession {
}
supportsWorkingDirectory (): boolean {
return !!(this.truePID || this.reportedCWD ?? this.guessedCWD)
return !!this.truePID ?? this.reportedCWD ?? this.guessedCWD
}
async getWorkingDirectory (): Promise<string|null> {

View File

@ -9,7 +9,7 @@ import { OSC1337Processor } from './api/osc1337Processing'
*/
export abstract class BaseSession {
open: boolean
truePID: number
truePID?: number
protected output = new Subject<string>()
protected binaryOutput = new Subject<Buffer>()
protected closed = new Subject<void>()