MCPcopy Create free account
hub / github.com/Snapchat/Valdi / createWorkspace

Method createWorkspace

compiler/companion/src/WorkspaceStore.ts:26–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 1

addBaseEndpointsMethod · 0.80

Calls 2

createCachingWorkspaceFunction · 0.90
setMethod · 0.65

Tested by

no test coverage detected