MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / getOrCreateWorkspaceFolderNode

Method getOrCreateWorkspaceFolderNode

src/shared/test/test_model.ts:341–351  ·  view source on GitHub ↗
(wf: { name: string, path: string, uri: URI })

Source from the content-addressed store, hash-verified

339 }
340
341 private getOrCreateWorkspaceFolderNode(wf: { name: string, path: string, uri: URI }): WorkspaceFolderNode {
342 let node = this.workspaceFolderNodes.get(wf.path);
343
344 if (!node) {
345 node = new WorkspaceFolderNode(wf.name, wf.path);
346 this.workspaceFolderNodes.set(wf.path, node);
347 this.updateNode({ node });
348 }
349
350 return node;
351 }
352
353 public clearSuiteOrDirectory(suiteOrDirectoryPath: string): void {
354 // We can't tell if it's a file or directory because it's already been deleted, so just

Callers 1

Calls 3

updateNodeMethod · 0.95
setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected