File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,8 @@ function getOrCreateProject(filePath) {
105
105
return project ;
106
106
}
107
107
catch ( ex ) {
108
- if ( ex . message === tsconfig . errors . GET_PROJECT_INVALID_PROJECT_FILE ) {
108
+ var err = ex ;
109
+ if ( err . message === tsconfig . errors . GET_PROJECT_INVALID_PROJECT_FILE ) {
109
110
throw ex ;
110
111
}
111
112
else {
Original file line number Diff line number Diff line change @@ -135,14 +135,16 @@ function getOrCreateProject(filePath): tsconfig.TypeScriptProjectFileDetails {
135
135
var project = tsconfig . getProjectSync ( filePath ) ;
136
136
return project ;
137
137
} catch ( ex ) {
138
- if ( ex . message === tsconfig . errors . GET_PROJECT_INVALID_PROJECT_FILE ) {
138
+ var err : Error = ex ;
139
+ if ( err . message === tsconfig . errors . GET_PROJECT_INVALID_PROJECT_FILE ) {
139
140
throw ex ;
140
141
}
141
142
else {
142
143
return tsconfig . createProjectRootSync ( filePath ) ;
143
144
}
144
145
}
145
146
}
147
+ }
146
148
147
149
export function getOrCreateProgram ( filePath ) {
148
150
filePath = tsconfig . consistentPath ( filePath ) ;
You can’t perform that action at this time.
0 commit comments