[mod] reorg bundles

This commit is contained in:
Andy Bunce 2025-08-25 16:23:51 +01:00
parent c875f70fb4
commit 5ffd6c7630
14 changed files with 611 additions and 199 deletions

View file

@ -102,6 +102,19 @@ function debouncedChangeListener({ delay = 750, onChange }) {
}, delay);
}
});
}
export { createEditorState, createEditorView, openSearchPanel, openLintPanel, languageServerSupport, baseExts, simpleWebSocketTransport, linter, LSPPlugin, setDiagnostics, xqLinter, LSPClient,debouncedChangeListener };
};
function listCommands(view) {
const commands = new Map();
const keymaps = view.state.facet(keymap);
for (let km of keymaps) {
for (let binding of km) {
if (binding.run && binding.run.name ) {
commands.set(binding.run.name ,{key:binding.key,fn:binding.run});
}
}
}
return commands;
};
export { createEditorState, createEditorView, openSearchPanel, openLintPanel, languageServerSupport, baseExts, simpleWebSocketTransport, linter, LSPPlugin, setDiagnostics, xqLinter, LSPClient,debouncedChangeListener,listCommands };