MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / createModel

Function createModel

frontend/app/monaco/monaco-react.tsx:10–13  ·  view source on GitHub ↗
(value: string, path: string, language?: string)

Source from the content-addressed store, hash-verified

8import { debounce } from "throttle-debounce";
9
10function createModel(value: string, path: string, language?: string) {
11 const uri = monaco.Uri.parse(`wave://editor/${encodeURIComponent(path)}`);
12 return monaco.editor.createModel(value, language, uri);
13}
14
15type CodeEditorProps = {
16 text: string;

Callers 1

MonacoCodeEditorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected