Add a hover to the server

This commit is contained in:
Dirk Baeumer
2019-02-21 11:15:38 +01:00
parent d546364e1e
commit 508f8463e5

View File

@ -47,7 +47,8 @@ connection.onInitialize((params: InitializeParams) => {
// Tell the client that the server supports code completion
completionProvider: {
resolveProvider: true
}
},
hoverProvider: true
}
};
});
@ -209,6 +210,12 @@ connection.onCompletionResolve(
}
);
connection.onHover(() => {
return {
contents: "Hello World"
};
});
/*
connection.onDidOpenTextDocument((params) => {
// A text document got opened in VSCode.