[fix] linter autopanel
This commit is contained in:
parent
18f3f309c7
commit
253eb62c07
3 changed files with 5 additions and 4 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) ||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Create a class for the element
|
||||
// a popover dialog NOT WORKING
|
||||
class PopupInfo extends HTMLElement {
|
||||
constructor() {
|
||||
// Always call super first in constructor
|
||||
|
|
|
@ -73,11 +73,12 @@ function connect() {
|
|||
let up=lsp.debouncedChangeListener({
|
||||
delay: 750,
|
||||
onChange: (content, state) => {
|
||||
console.log('Debounced change detected:'+content);
|
||||
console.log('Debounced change detected:');
|
||||
client.sync();
|
||||
}})
|
||||
|
||||
view.dispatch({ effects: lsp.StateEffect.appendConfig.of([...extLsp,up]) })
|
||||
view.dispatch({ effects: lsp.StateEffect.appendConfig.of(
|
||||
[lsp.linter(null, {autoPanel:true}),...extLsp,up]) })
|
||||
})
|
||||
.catch(r => { connectStatus(false); alert("connection failed: " + server) });
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue