Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit c864a25

Browse files
committed
Removes the setInsertHintOnTab method
1 parent 908868a commit c864a25

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

src/editor/CodeHintManager.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
* or if instead a tab character should be inserted into the editor. If omitted,
226226
* the fallback behavior is determined by the CodeHintManager. The default
227227
* behavior is to insert a tab character, but this can be changed with the
228-
* CodeHintManager.setInsertHintOnTab() method.
228+
* insertHintOnTab Preference.
229229
*/
230230

231231

@@ -256,20 +256,6 @@ define(function (require, exports, module) {
256256
PreferencesManager.definePreference("insertHintOnTab", "boolean", false);
257257

258258

259-
/**
260-
* Determines the default behavior of the CodeHintManager on tab key events.
261-
* setInsertHintOnTab(true) indicates that the currently selected code hint
262-
* should be inserted on tab key events. setInsertHintOnTab(false) indicates
263-
* that a tab character should be inserted into the editor on tab key events.
264-
* The default behavior can be overridden by individual providers.
265-
*
266-
* @param {boolean} Indicates whether providers should insert the currently
267-
* selected hint on tab key events.
268-
*/
269-
function setInsertHintOnTab(insertHintOnTab) {
270-
PreferencesManager.set("insertHintOnTab", insertHintOnTab);
271-
}
272-
273259
/**
274260
* Comparator to sort providers from high to low priority
275261
*/
@@ -657,5 +643,4 @@ define(function (require, exports, module) {
657643
exports.isOpen = isOpen;
658644
exports.registerHintProvider = registerHintProvider;
659645
exports.hasValidExclusion = hasValidExclusion;
660-
exports.setInsertHintOnTab = setInsertHintOnTab;
661646
});

0 commit comments

Comments
 (0)