[mod[ pkg updates

This commit is contained in:
Andy Bunce 2025-09-18 14:44:25 +01:00
parent f499e888ae
commit 279b1ee189
3 changed files with 116 additions and 134 deletions

View file

@ -28790,8 +28790,10 @@ ${text}</tr>
option.commitCharacters = item.commitCharacters;
if (item.detail)
option.detail = item.detail;
if (item.insertTextFormat == 2 /* Snippet */)
if (item.insertTextFormat == 2 /* Snippet */) {
option.apply = (view, c, from, to) => snippet(text)(view, c, from, to);
option.label = item.label;
}
if (item.documentation)
option.info = () => renderDocInfo(plugin, item.documentation);
return option;
@ -30108,27 +30110,8 @@ ${text}</tr>
StreamLanguage.define(xQuery)
];
function debouncedChangeListener({ delay = 750, onChange }) {
let timeoutId = null;
let lastContent = '';
return EditorView.updateListener.of(update => {
if (update.docChanged) {
const currentContent = update.state.doc.toString();
if (timeoutId) {
clearTimeout(timeoutId);
}
timeoutId = setTimeout(() => {
if (currentContent !== lastContent) {
lastContent = currentContent;
onChange(currentContent, update.state);
}
}, delay);
}
});
}
// map cmd->{keybings,fn}
function listCommands(view) {
const commands = new Map();
@ -30149,7 +30132,6 @@ ${text}</tr>
exports.LSPPlugin = LSPPlugin;
exports.StateEffect = StateEffect;
exports.baseExts = baseExts;
exports.debouncedChangeListener = debouncedChangeListener;
exports.formatDocument = formatDocument;
exports.formatKeymap = formatKeymap;
exports.keymap = keymap;

File diff suppressed because one or more lines are too long