showDoc on cursor

This commit is contained in:
ckcz123 committed 2020-06-05 09:12:16 +08:00
1 parent d3e27a76c8
commit f9786a7de3
2 files changed
+13 -11

No files matched your search

+4 -1
View File
@@ -34,7 +34,10 @@ editor_multi = function () {
editor_multi.codeEditor = codeEditor;
codeEditor.on("cursorActivity", function (cm) {
ternServer.updateArgHints(cm);
if (codeEditor.getOption("autocomplete")) {
ternServer.updateArgHints(cm);
ternServer.showDocs(cm);
}
});
codeEditor.on("keyup", function (cm, event) {