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

Function getFileLspUri

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

Source from the content-addressed store, hash-verified

790 }
791
792 function getFileLspUri(file) {
793 if (!file) return null;
794 if (file.uri) return file.uri;
795 return `${UNTITLED_URI_PREFIX}${file.id}`;
796 }
797
798 function getFileLanguageId(file) {
799 if (!file) return "plaintext";

Callers 2

buildLspMetadataFunction · 0.85
detachLspForFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected