@@ -8,7 +8,7 @@ import {ApplicationComponent} from "./views/1_ApplicationComponent";
8
8
import { Environment , processEnvironment } from "./Environment" ;
9
9
import {
10
10
homeDirectory , normalizeDirectory , writeFileCreatingParents ,
11
- currentWorkingDirectoryFilePath , historyFilePath ,
11
+ presentWorkingDirectoryFilePath , historyFilePath ,
12
12
} from "./utils/Common" ;
13
13
import { remote } from "electron" ;
14
14
import { OrderedSet } from "./utils/OrderedSet" ;
@@ -19,7 +19,7 @@ export class Session extends EmitterWithUniqueID {
19
19
readonly environment = new Environment ( processEnvironment ) ;
20
20
readonly aliases = new Aliases ( aliasesFromConfig ) ;
21
21
history = History ;
22
- historicalCurrentDirectoriesStack = new OrderedSet < string > ( ) ;
22
+ historicalPresentDirectoriesStack = new OrderedSet < string > ( ) ;
23
23
24
24
constructor ( private application : ApplicationComponent , private _dimensions : Dimensions ) {
25
25
super ( ) ;
@@ -79,19 +79,19 @@ export class Session extends EmitterWithUniqueID {
79
79
}
80
80
81
81
PluginManager . environmentObservers . forEach ( observer =>
82
- observer . currentWorkingDirectoryWillChange ( this , normalizedDirectory )
82
+ observer . presentWorkingDirectoryWillChange ( this , normalizedDirectory )
83
83
) ;
84
84
85
85
this . environment . pwd = normalizedDirectory ;
86
- this . historicalCurrentDirectoriesStack . prepend ( normalizedDirectory ) ;
86
+ this . historicalPresentDirectoriesStack . prepend ( normalizedDirectory ) ;
87
87
88
88
PluginManager . environmentObservers . forEach ( observer =>
89
- observer . currentWorkingDirectoryDidChange ( this , normalizedDirectory )
89
+ observer . presentWorkingDirectoryDidChange ( this , normalizedDirectory )
90
90
) ;
91
91
}
92
92
93
93
private serialize ( ) {
94
- writeFileCreatingParents ( currentWorkingDirectoryFilePath , JSON . stringify ( this . directory ) ) . then (
94
+ writeFileCreatingParents ( presentWorkingDirectoryFilePath , JSON . stringify ( this . directory ) ) . then (
95
95
( ) => void 0 ,
96
96
( error : any ) => { if ( error ) throw error ; }
97
97
) ;
@@ -103,7 +103,7 @@ export class Session extends EmitterWithUniqueID {
103
103
} ;
104
104
105
105
private deserialize ( ) : void {
106
- this . directory = this . readSerialized ( currentWorkingDirectoryFilePath , homeDirectory ) ;
106
+ this . directory = this . readSerialized ( presentWorkingDirectoryFilePath , homeDirectory ) ;
107
107
History . deserialize ( this . readSerialized ( historyFilePath , [ ] ) ) ;
108
108
}
109
109
0 commit comments