MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getView

Method getView

src/cm/lsp/workspace.ts:31–36  ·  view source on GitHub ↗
(preferred?: EditorView)

Source from the content-addressed store, hash-verified

29 }
30
31 getView(preferred?: EditorView): EditorView | null {
32 if (preferred && this.views.has(preferred)) return preferred;
33 const iterator = this.views.values();
34 const next = iterator.next();
35 return next.done ? null : next.value;
36 }
37}
38
39export default class AcodeWorkspace extends Workspace {

Callers 8

syncFilesMethod · 0.80
updateFileMethod · 0.80
applyChangesToFileFunction · 0.80
applyChangesToFileFunction · 0.80
pluginInitializeMethod · 0.80
sendLogToJavaScriptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected