MCPcopy Index your code
hub / github.com/Acode-Foundation/Acode / buildLspMetadata

Function buildLspMetadata

src/lib/editorManager.js:709–722  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

707 }
708
709 function buildLspMetadata(file) {
710 if (!file || file.type !== "editor") return null;
711 const uri = getFileLspUri(file);
712 if (!uri) return null;
713 const languageId = getFileLanguageId(file);
714 return {
715 uri,
716 languageId,
717 languageName: file.currentMode || file.mode || languageId,
718 view: editor,
719 file,
720 rootUri: resolveRootUriForContext({ uri, file }),
721 };
722 }
723
724 async function configureLspForFile(file) {
725 const metadata = buildLspMetadata(file);

Callers 1

configureLspForFileFunction · 0.85

Calls 3

getFileLspUriFunction · 0.85
getFileLanguageIdFunction · 0.85
resolveRootUriForContextFunction · 0.85

Tested by

no test coverage detected