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