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

Method constructor

src/cm/lsp/workspace.ts:16–29  ·  view source on GitHub ↗
(
		uri: string,
		languageId: string,
		version: number,
		doc: Text,
		view?: EditorView,
	)

Source from the content-addressed store, hash-verified

14 views: Set<EditorView>;
15
16 constructor(
17 uri: string,
18 languageId: string,
19 version: number,
20 doc: Text,
21 view?: EditorView,
22 ) {
23 this.uri = uri;
24 this.languageId = languageId;
25 this.version = version;
26 this.doc = doc;
27 this.views = new Set();
28 if (view) this.views.add(view);
29 }
30
31 getView(preferred?: EditorView): EditorView | null {
32 if (preferred && this.views.has(preferred)) return preferred;

Callers

nothing calls this directly

Calls 1

addMethod · 0.80

Tested by

no test coverage detected