()
| 24 | ) {} |
| 25 | |
| 26 | createWorkspace(nativeApiMinVersion: number | undefined): CreateWorkspaceResult { |
| 27 | if ( |
| 28 | nativeApiMinVersion !== undefined && |
| 29 | (!Number.isInteger(nativeApiMinVersion) || nativeApiMinVersion < 0 || nativeApiMinVersion > 2147483647) |
| 30 | ) { |
| 31 | throw new Error('nativeApiMinVersion must be an integer between 0 and 2147483647'); |
| 32 | } |
| 33 | |
| 34 | const uncachedWorkspace = new Workspace( |
| 35 | '/', |
| 36 | this.shouldDebounceOpenFile, |
| 37 | this.logger, |
| 38 | undefined, |
| 39 | nativeApiMinVersion, |
| 40 | ); |
| 41 | let workspace: IWorkspace; |
| 42 | if (this.cacheDir) { |
no test coverage detected