[mod]
This commit is contained in:
parent
2d99af9389
commit
e9a2d46272
7 changed files with 43 additions and 22 deletions
|
|
@ -77,7 +77,7 @@ function connect() {
|
|||
|
||||
function incoming(msg) {
|
||||
const rpc=JSON.parse(msg);
|
||||
log(rpc.method);
|
||||
log(rpc);
|
||||
switch (rpc.method) {
|
||||
case "textDocument/publishDiagnostics":
|
||||
diags(rpc.params);
|
||||
|
|
@ -88,10 +88,13 @@ function incoming(msg) {
|
|||
}
|
||||
|
||||
};
|
||||
function log(msg){
|
||||
|
||||
function log(rpc){
|
||||
if(rpc.id) return
|
||||
const text=rpc.method;
|
||||
const li = document.createElement("li");
|
||||
|
||||
li.appendChild(document.createTextNode(msg));
|
||||
li.appendChild(document.createTextNode(text));
|
||||
const ol=document.getElementById("msg");
|
||||
ol.insertBefore(li,ol.firstChild)
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue