Skip to content

Commit 91eec71

Browse files
committed
[show-hint addon] Define a closeHint method
Issue #5682
1 parent a21ea6f commit 91eec71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

addon/hint/show-hint.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
completion.update(true);
4747
});
4848

49+
CodeMirror.defineExtension("closeHint", function() {
50+
if (this.state.completionActive) this.state.completionActive.close()
51+
})
52+
4953
function Completion(cm, options) {
5054
this.cm = cm;
5155
this.options = options;

0 commit comments

Comments
 (0)