[mod] re-org

This commit is contained in:
Andy Bunce 2025-08-06 14:57:52 +01:00
parent 198bd66c09
commit 784010fbdc
32 changed files with 114 additions and 14 deletions

View file

@ -29699,7 +29699,7 @@ ${text}</tr>
this on every mapping you create, except when you use
[`withMapping`](https://codemirror.net/6/docs/ref/#lsp-client.LSPClient.withMapping), which will
automatically schedule a disconnect when the given promise
resolves.
resolves or aborts.
*/
destroy() {
this.client.activeMappings = this.client.activeMappings.filter(m => m != this);
@ -30025,7 +30025,7 @@ ${text}</tr>
}
if (!prefixes.length)
return /^\w*$/;
return new RegExp("^(?:" + prefixes.map(RegExp.escape || (s => s.replace(/[^\w\s]/g, "\\$&"))).join("|") + ")?\w*$");
return new RegExp("^(?:" + prefixes.map(RegExp.escape || (s => s.replace(/[^\w\s]/g, "\\$&"))).join("|") + ")?\\w*$");
}
/**
A completion source that requests completions from a language
@ -30172,8 +30172,9 @@ ${text}</tr>
return plugin.docToHTML(value);
}
function renderCode(plugin, code) {
if (typeof code == "string") return plugin.docToHTML(code, "markdown")
let {language, value} = code;
if (typeof code == "string")
return plugin.docToHTML(code, "markdown");
let { language: language$1, value } = code;
let lang = plugin.client.config.highlightLanguage && plugin.client.config.highlightLanguage(language$1 || "");
if (!lang) {
let viewLang = plugin.view.state.facet(language);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -41,6 +41,7 @@ document.getElementById("load").onchange = e => {
}
})
});
document.getElementById("load").value="";
};
function connect() {
const server = document.getElementById("iServer").value;