iwehrman / brackets-insert-hint-on-tab

2 stars 4 forks source link

Broken (and obsolete?) in Sprint 37 #1

Open peterflynn opened 10 years ago

peterflynn commented 10 years ago

The API used here was removed in adobe/brackets#6984 and replaced with a user-configurable preference (see https://github.com/adobe/brackets/wiki/How-to-Use-Brackets#wiki-preferences).

That could make this extension obsolete, or the extension could be updated to programmatically set the preference instead of what it's doing now.

p4bl1t0 commented 10 years ago

Maybe for Sprint 37 and above this would do the trick:

define(function (require, exports, module) {
    "use strict";

    var PreferencesManager = brackets.getModule("preferences/PreferencesManager"),
        AppInit         = brackets.getModule("utils/AppInit");

    AppInit.appReady(function () {
        var prefs = PreferencesManager.getPreference("insertHintOnTab");
        PreferencesManager.set("insertHintOnTab", true);
        PreferencesManager.save();
    });
});
Peshyy commented 9 years ago

Thank you very much @p4bl1t0 !!! This code works, extension author should update the extension