MCPcopy Create free account
hub / github.com/Exafunction/codeium-chrome / editorLanguage

Function editorLanguage

src/codemirrorLanguages.ts:81–83  ·  view source on GitHub ↗
(doc: CodeMirror.Doc)

Source from the content-addressed store, hash-verified

79
80// Note that this cannot be mapped directly into the Language enum.
81export function editorLanguage(doc: CodeMirror.Doc): string {
82 return getMode(doc).name;
83}
84
85export function language(doc: CodeMirror.Doc, path: string | undefined): Language {
86 if (path !== undefined) {

Callers 1

triggerCompletionMethod · 0.90

Calls 1

getModeFunction · 0.85

Tested by

no test coverage detected