[mod] add format
This commit is contained in:
parent
253eb62c07
commit
df114e8005
4 changed files with 10 additions and 5 deletions
|
|
@ -16975,7 +16975,7 @@ var lsp = (function (exports) {
|
|||
this.view.dispatch(setDiagnostics(this.view.state, annotations.reduce((a, b) => a.concat(b))));
|
||||
}, error => { logException(this.view.state, error); });
|
||||
}
|
||||
}
|
||||
}
|
||||
update(update) {
|
||||
let config = update.state.facet(lintConfig);
|
||||
if (update.docChanged || config != update.startState.facet(lintConfig) ||
|
||||
|
|
@ -30108,13 +30108,13 @@ ${text}</tr>
|
|||
exports.StateEffect = StateEffect;
|
||||
exports.baseExts = baseExts;
|
||||
exports.debouncedChangeListener = debouncedChangeListener;
|
||||
exports.formatDocument = formatDocument;
|
||||
exports.languageServerExtensions = languageServerExtensions;
|
||||
exports.languageServerSupport = languageServerSupport;
|
||||
exports.linter = linter;
|
||||
exports.listCommands = listCommands;
|
||||
exports.openLintPanel = openLintPanel;
|
||||
exports.openSearchPanel = openSearchPanel;
|
||||
exports.setDiagnostics = setDiagnostics;
|
||||
exports.simpleWebSocketTransport = simpleWebSocketTransport;
|
||||
|
||||
return exports;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -38,6 +38,11 @@ $("lint").onclick = async e => {
|
|||
|
||||
$("sync").onclick = e => { client.sync(); console.log("XXXsync");};
|
||||
|
||||
$("format").onclick = e => {
|
||||
client.sync();
|
||||
console.log("FMT",lsp.formatDocument());
|
||||
};
|
||||
|
||||
$("load").onchange = e => {
|
||||
const url = e.target.value;
|
||||
if (url.length == 0) return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue