MCPcopy Create free account
hub / github.com/EmNudge/watlings / createParseCache

Function createParseCache

web-build/src/editor.ts:371–379  ·  view source on GitHub ↗
(lsp: WatLSP)

Source from the content-addressed store, hash-verified

369}
370
371function createParseCache(lsp: WatLSP) {
372 let lastText = "";
373 return (text: string) => {
374 if (text !== lastText) {
375 lsp.parse(text);
376 lastText = text;
377 }
378 };
379}
380
381function createLspExtensions(lsp: WatLSP) {
382 const parseIfNeeded = createParseCache(lsp);

Callers 1

createLspExtensionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected