|string} loadDevExtensionPath If specified, will load the extension from the path. IF
* and empty array is specified, it will unload all dev extensions on reload.
*/
- function handleReload(loadWithoutExtensions=false, loadDevExtensionPath=[]) {
- var href = window.location.href,
- params = new UrlParams();
+ function handleReload(loadWithoutExtensions = false, loadDevExtensionPath = []) {
+ var href = window.location.href,
+ params = new UrlParams();
// Make sure the Reload Without User Extensions parameter is removed
params.parse();
@@ -2091,7 +2117,7 @@ define(function (require, exports, module) {
if (params.get("reloadWithoutUserExts")) {
params.remove("reloadWithoutUserExts");
}
- if(loadDevExtensionPath && loadDevExtensionPath.length){
+ if (loadDevExtensionPath && loadDevExtensionPath.length) {
params.put("loadDevExtensionPath", loadDevExtensionPath);
// since we are loading a development extension, we have to enable detailed logs too on reload
params.put(logger.loggingOptions.LOCAL_STORAGE_KEYS.LOG_TO_CONSOLE_KEY, "true");
@@ -2125,17 +2151,17 @@ define(function (require, exports, module) {
**/
function attachBrowserUnloadHandler() {
- window.onbeforeunload = function(e) {
+ window.onbeforeunload = function (e) {
PreferencesManager.setViewState("windowClosingTime", new Date().getTime());
- _handleWindowGoingAway(null, closeSuccess=>{
+ _handleWindowGoingAway(null, closeSuccess => {
console.log('close success: ', closeSuccess);
- }, closeFail=>{
+ }, closeFail => {
console.log('close fail: ', closeFail);
});
var openDocs = DocumentManager.getAllOpenDocuments();
// Detect any unsaved changes
- openDocs = openDocs.filter(function(doc) {
+ openDocs = openDocs.filter(function (doc) {
return doc && doc.isDirty;
});
@@ -2151,7 +2177,7 @@ define(function (require, exports, module) {
async function _safeFlushDB() {
// close should not be interrupted.
- try{
+ try {
await window.PhStore.flushDB();
} catch (e) {
console.error(e);
@@ -2162,23 +2188,23 @@ define(function (require, exports, module) {
async function _safeNodeTerminate() {
// close should not be interrupted.
nodeTerminateDueToShutdown = true;
- try{
+ try {
await NodeConnector.terminateNode();
} catch (e) {
console.error(e);
}
}
- if(window.nodeTerminationPromise) {
+ if (window.nodeTerminationPromise) {
window.nodeTerminationPromise
- .then(()=>{
- if(nodeTerminateDueToShutdown){
+ .then(() => {
+ if (nodeTerminateDueToShutdown) {
return; // normal shutdown
}
Metrics.countEvent(Metrics.EVENT_TYPE.NODEJS, 'crash', Phoenix.platform);
window.fs.forceUseNodeWSEndpoint(false);
Dialogs
.showErrorDialog(Strings.ERROR_NODE_JS_CRASH_TITLE, Strings.ERROR_NODE_JS_CRASH_MESSAGE)
- .done(()=>{
+ .done(() => {
handleReload();
});
});
@@ -2187,47 +2213,47 @@ define(function (require, exports, module) {
let closeInProgress;
let closeClickCounter = 0;
const CLOSE_TIMER_RESET_INTERVAL = 4000;
- let closeTimer = setTimeout(()=>{
+ let closeTimer = setTimeout(() => {
closeClickCounter = 0;
closeTimer = null;
}, CLOSE_TIMER_RESET_INTERVAL);
function _forceQuitIfNeeded() {
closeClickCounter++;
- if(closeTimer){
+ if (closeTimer) {
clearTimeout(closeTimer);
}
- closeTimer = setInterval(()=>{
+ closeTimer = setInterval(() => {
closeClickCounter = 0;
closeTimer = null;
}, CLOSE_TIMER_RESET_INTERVAL);
- if(closeClickCounter >= 2) {
+ if (closeClickCounter >= 2) {
// the user clicked the close button 2 times in the last 4 secs, he's desperate, close the window now!.
Phoenix.app.closeWindow(true);
}
}
function attachTauriUnloadHandler() {
- window.__TAURI__.window.appWindow.onCloseRequested((event)=>{
+ window.__TAURI__.window.appWindow.onCloseRequested((event) => {
_forceQuitIfNeeded();
- if(closeInProgress){
+ if (closeInProgress) {
event.preventDefault();
return;
}
closeInProgress = true;
PreferencesManager.setViewState("windowClosingTime", new Date().getTime());
event.preventDefault();
- _handleWindowGoingAway(null, closeSuccess=>{
+ _handleWindowGoingAway(null, closeSuccess => {
console.log('close success: ', closeSuccess);
exitWaitPromises.push(_safeFlushDB());
raceAgainstTime(Promise.all(exitWaitPromises))
- .finally(()=>{
+ .finally(() => {
raceAgainstTime(_safeNodeTerminate())
- .finally(()=>{
+ .finally(() => {
closeInProgress = false;
Phoenix.app.closeWindow();
});
});
- }, closeFail=>{
+ }, closeFail => {
console.log('close fail: ', closeFail);
closeInProgress = false;
});
@@ -2236,7 +2262,7 @@ define(function (require, exports, module) {
let isTestWindow = (new window.URLSearchParams(window.location.search || "")).get("testEnvironment");
if (!isTestWindow) {
- if(Phoenix.isNativeApp) {
+ if (Phoenix.isNativeApp) {
attachTauriUnloadHandler();
} else {
attachBrowserUnloadHandler();
@@ -2246,15 +2272,15 @@ define(function (require, exports, module) {
/** Do some initialization when the DOM is ready **/
AppInit.htmlReady(function () {
// If in Reload Without User Extensions mode, update UI and log console message
- var params = new UrlParams(),
- $icon = $("#toolbar-extension-manager"),
- $indicator = $("" + Strings.STATUSBAR_USER_EXTENSIONS_DISABLED + "
");
+ var params = new UrlParams(),
+ $icon = $("#toolbar-extension-manager"),
+ $indicator = $("" + Strings.STATUSBAR_USER_EXTENSIONS_DISABLED + "
");
params.parse();
if (params.get("reloadWithoutUserExts") === "true") {
CommandManager.get(Commands.FILE_EXTENSION_MANAGER).setEnabled(false);
- $icon.css({display: "none"});
+ $icon.css({ display: "none" });
StatusBar.addIndicator("status-user-exts", $indicator, true);
console.log("Brackets reloaded with extensions disabled");
}
@@ -2266,7 +2292,7 @@ define(function (require, exports, module) {
_$dirtydot = $(".dirty-dot", _$titleWrapper);
});
- if(Phoenix.isSpecRunnerWindow){
+ if (Phoenix.isSpecRunnerWindow) {
_$titleContainerToolbar = $("#titlebar");
_$titleWrapper = $(".title-wrapper");
_$title = $(".title");
@@ -2274,16 +2300,16 @@ define(function (require, exports, module) {
}
let firstProjectOpenHandled = false;
- ProjectManager.on(ProjectManager.EVENT_AFTER_PROJECT_OPEN, ()=>{
+ ProjectManager.on(ProjectManager.EVENT_AFTER_PROJECT_OPEN, () => {
closedFilesHistory = new Map();
_enableOrDisableReopenClosedCmd();
- if(firstProjectOpenHandled){
+ if (firstProjectOpenHandled) {
return;
}
firstProjectOpenHandled = true;
Phoenix.app.setSingleInstanceCLIArgsHandler(_singleInstanceHandler);
_openFilesPassedInFromCLI()
- .finally(()=>{
+ .finally(() => {
// in mac, this is not exactly correct. This event will get triggered on startup, but mac will only
// raise events in the background and there is no way for us to know when the mac open with events
// come. Use this event carefully in mac.
@@ -2295,15 +2321,15 @@ define(function (require, exports, module) {
exports._parseDecoratedPath = _parseDecoratedPath;
// Set some command strings
- let quitString = Strings.CMD_QUIT,
- showInOS = Strings.CMD_SHOW_IN_FILE_MANAGER,
- defaultTerminal = Strings.CMD_OPEN_IN_TERMINAL_DO_NOT_TRANSLATE;
+ let quitString = Strings.CMD_QUIT,
+ showInOS = Strings.CMD_SHOW_IN_FILE_MANAGER,
+ defaultTerminal = Strings.CMD_OPEN_IN_TERMINAL_DO_NOT_TRANSLATE;
if (brackets.platform === "win") {
- quitString = Strings.CMD_EXIT;
- showInOS = Strings.CMD_SHOW_IN_EXPLORER;
- defaultTerminal = Strings.CMD_OPEN_IN_CMD;
+ quitString = Strings.CMD_EXIT;
+ showInOS = Strings.CMD_SHOW_IN_EXPLORER;
+ defaultTerminal = Strings.CMD_OPEN_IN_CMD;
} else if (brackets.platform === "mac") {
- showInOS = Strings.CMD_SHOW_IN_FINDER;
+ showInOS = Strings.CMD_SHOW_IN_FINDER;
}
// private api
@@ -2318,56 +2344,56 @@ define(function (require, exports, module) {
// Deprecated commands
- CommandManager.register(Strings.CMD_ADD_TO_WORKING_SET, Commands.FILE_ADD_TO_WORKING_SET, handleFileAddToWorkingSet);
- CommandManager.register(Strings.CMD_FILE_OPEN, Commands.FILE_OPEN, handleDocumentOpen);
+ CommandManager.register(Strings.CMD_ADD_TO_WORKING_SET, Commands.FILE_ADD_TO_WORKING_SET, handleFileAddToWorkingSet);
+ CommandManager.register(Strings.CMD_FILE_OPEN, Commands.FILE_OPEN, handleDocumentOpen);
// New commands
- CommandManager.register(Strings.CMD_ADD_TO_WORKING_SET, Commands.CMD_ADD_TO_WORKINGSET_AND_OPEN, handleFileAddToWorkingSetAndOpen);
- CommandManager.register(Strings.CMD_FILE_OPEN, Commands.CMD_OPEN, handleFileOpen);
+ CommandManager.register(Strings.CMD_ADD_TO_WORKING_SET, Commands.CMD_ADD_TO_WORKINGSET_AND_OPEN, handleFileAddToWorkingSetAndOpen);
+ CommandManager.register(Strings.CMD_FILE_OPEN, Commands.CMD_OPEN, handleFileOpen);
// File Commands
- CommandManager.register(Strings.CMD_FILE_NEW_UNTITLED, Commands.FILE_NEW_UNTITLED, handleFileNew);
- CommandManager.register(Strings.CMD_FILE_NEW, Commands.FILE_NEW, handleFileNewInProject);
- CommandManager.register(Strings.CMD_FILE_NEW_FOLDER, Commands.FILE_NEW_FOLDER, handleNewFolderInProject);
- CommandManager.register(Strings.CMD_FILE_SAVE, Commands.FILE_SAVE, handleFileSave);
- CommandManager.register(Strings.CMD_FILE_SAVE_ALL, Commands.FILE_SAVE_ALL, handleFileSaveAll);
- CommandManager.register(Strings.CMD_FILE_SAVE_AS, Commands.FILE_SAVE_AS, handleFileSaveAs);
- CommandManager.register(Strings.CMD_FILE_RENAME, Commands.FILE_RENAME, handleFileRename);
- CommandManager.register(Strings.CMD_FILE_DELETE, Commands.FILE_DELETE, handleFileDelete);
+ CommandManager.register(Strings.CMD_FILE_NEW_UNTITLED, Commands.FILE_NEW_UNTITLED, handleFileNew);
+ CommandManager.register(Strings.CMD_FILE_NEW, Commands.FILE_NEW, handleFileNewInProject);
+ CommandManager.register(Strings.CMD_FILE_NEW_FOLDER, Commands.FILE_NEW_FOLDER, handleNewFolderInProject);
+ CommandManager.register(Strings.CMD_FILE_SAVE, Commands.FILE_SAVE, handleFileSave);
+ CommandManager.register(Strings.CMD_FILE_SAVE_ALL, Commands.FILE_SAVE_ALL, handleFileSaveAll);
+ CommandManager.register(Strings.CMD_FILE_SAVE_AS, Commands.FILE_SAVE_AS, handleFileSaveAs);
+ CommandManager.register(Strings.CMD_FILE_RENAME, Commands.FILE_RENAME, handleFileRename);
+ CommandManager.register(Strings.CMD_FILE_DELETE, Commands.FILE_DELETE, handleFileDelete);
// Close Commands
- CommandManager.register(Strings.CMD_FILE_CLOSE, Commands.FILE_CLOSE, handleFileClose);
- CommandManager.register(Strings.CMD_FILE_CLOSE_ALL, Commands.FILE_CLOSE_ALL, handleFileCloseAll);
- CommandManager.register(Strings.CMD_FILE_CLOSE_LIST, Commands.FILE_CLOSE_LIST, handleFileCloseList);
- CommandManager.register(Strings.CMD_REOPEN_CLOSED, Commands.FILE_REOPEN_CLOSED, handleReopenClosed);
+ CommandManager.register(Strings.CMD_FILE_CLOSE, Commands.FILE_CLOSE, handleFileClose);
+ CommandManager.register(Strings.CMD_FILE_CLOSE_ALL, Commands.FILE_CLOSE_ALL, handleFileCloseAll);
+ CommandManager.register(Strings.CMD_FILE_CLOSE_LIST, Commands.FILE_CLOSE_LIST, handleFileCloseList);
+ CommandManager.register(Strings.CMD_REOPEN_CLOSED, Commands.FILE_REOPEN_CLOSED, handleReopenClosed);
// Traversal
- CommandManager.register(Strings.CMD_NEXT_DOC, Commands.NAVIGATE_NEXT_DOC, handleGoNextDoc);
- CommandManager.register(Strings.CMD_PREV_DOC, Commands.NAVIGATE_PREV_DOC, handleGoPrevDoc);
+ CommandManager.register(Strings.CMD_NEXT_DOC, Commands.NAVIGATE_NEXT_DOC, handleGoNextDoc);
+ CommandManager.register(Strings.CMD_PREV_DOC, Commands.NAVIGATE_PREV_DOC, handleGoPrevDoc);
- CommandManager.register(Strings.CMD_NEXT_DOC_LIST_ORDER, Commands.NAVIGATE_NEXT_DOC_LIST_ORDER, handleGoNextDocListOrder);
- CommandManager.register(Strings.CMD_PREV_DOC_LIST_ORDER, Commands.NAVIGATE_PREV_DOC_LIST_ORDER, handleGoPrevDocListOrder);
+ CommandManager.register(Strings.CMD_NEXT_DOC_LIST_ORDER, Commands.NAVIGATE_NEXT_DOC_LIST_ORDER, handleGoNextDocListOrder);
+ CommandManager.register(Strings.CMD_PREV_DOC_LIST_ORDER, Commands.NAVIGATE_PREV_DOC_LIST_ORDER, handleGoPrevDocListOrder);
// Special Commands
- CommandManager.register(showInOS, Commands.NAVIGATE_SHOW_IN_OS, handleShowInOS);
- CommandManager.register(defaultTerminal, Commands.NAVIGATE_OPEN_IN_TERMINAL, openDefaultTerminal);
+ CommandManager.register(showInOS, Commands.NAVIGATE_SHOW_IN_OS, handleShowInOS);
+ CommandManager.register(defaultTerminal, Commands.NAVIGATE_OPEN_IN_TERMINAL, openDefaultTerminal);
if (brackets.platform === "win") {
- CommandManager.register(Strings.CMD_OPEN_IN_POWER_SHELL, Commands.NAVIGATE_OPEN_IN_POWERSHELL, openPowerShell);
+ CommandManager.register(Strings.CMD_OPEN_IN_POWER_SHELL, Commands.NAVIGATE_OPEN_IN_POWERSHELL, openPowerShell);
}
- CommandManager.register(Strings.CMD_OPEN_IN_DEFAULT_APP, Commands.NAVIGATE_OPEN_IN_DEFAULT_APP, openDefaultApp);
- CommandManager.register(Strings.CMD_NEW_BRACKETS_WINDOW, Commands.FILE_NEW_WINDOW, handleFileNewWindow);
- CommandManager.register(quitString, Commands.FILE_QUIT, handleFileCloseWindow);
- CommandManager.register(Strings.CMD_SHOW_IN_TREE, Commands.NAVIGATE_SHOW_IN_FILE_TREE, handleShowInTree);
+ CommandManager.register(Strings.CMD_OPEN_IN_DEFAULT_APP, Commands.NAVIGATE_OPEN_IN_DEFAULT_APP, openDefaultApp);
+ CommandManager.register(Strings.CMD_NEW_BRACKETS_WINDOW, Commands.FILE_NEW_WINDOW, handleFileNewWindow);
+ CommandManager.register(quitString, Commands.FILE_QUIT, handleFileCloseWindow);
+ CommandManager.register(Strings.CMD_SHOW_IN_TREE, Commands.NAVIGATE_SHOW_IN_FILE_TREE, handleShowInTree);
// These commands have no UI representation and are only used internally
- CommandManager.registerInternal(Commands.APP_ABORT_QUIT, handleAbortQuit);
- CommandManager.registerInternal(Commands.APP_BEFORE_MENUPOPUP, handleBeforeMenuPopup);
- CommandManager.registerInternal(Commands.FILE_CLOSE_WINDOW, handleFileCloseWindow);
- CommandManager.registerInternal(Commands.APP_RELOAD, handleReload);
- CommandManager.registerInternal(Commands.APP_RELOAD_WITHOUT_EXTS, handleReloadWithoutExts);
+ CommandManager.registerInternal(Commands.APP_ABORT_QUIT, handleAbortQuit);
+ CommandManager.registerInternal(Commands.APP_BEFORE_MENUPOPUP, handleBeforeMenuPopup);
+ CommandManager.registerInternal(Commands.FILE_CLOSE_WINDOW, handleFileCloseWindow);
+ CommandManager.registerInternal(Commands.APP_RELOAD, handleReload);
+ CommandManager.registerInternal(Commands.APP_RELOAD_WITHOUT_EXTS, handleReloadWithoutExts);
// Listen for changes that require updating the editor titlebar
- ProjectManager.on("projectOpen", ()=>{
+ ProjectManager.on("projectOpen", () => {
alwaysOverwriteTillProjectSwitch = false;
_updateTitle();
});
diff --git a/src/extensions/default/CSSCodeHints/main.js b/src/extensions/default/CSSCodeHints/main.js
index 0b17d87a7f..a27280d621 100644
--- a/src/extensions/default/CSSCodeHints/main.js
+++ b/src/extensions/default/CSSCodeHints/main.js
@@ -35,7 +35,6 @@ define(function (require, exports, module) {
KeyEvent = brackets.getModule("utils/KeyEvent"),
LiveDevelopment = brackets.getModule("LiveDevelopment/main"),
Metrics = brackets.getModule("utils/Metrics"),
- AllPreferences = brackets.getModule("preferences/AllPreferences"),
CSSProperties = require("text!CSSProperties.json"),
properties = JSON.parse(CSSProperties);
@@ -73,7 +72,7 @@ define(function (require, exports, module) {
// the Emmet icon serves as a clickable link that redirects to the MDN page for the property (if available).
// This object follows the structure:
// { PROPERTY_NAME: MDN_URL }
- const MDN_PROPERTIES_URLS = {};
+ const mdnPropertiesUrls = {};
PreferencesManager.definePreference("codehint.CssPropHints", "boolean", true, {
description: Strings.DESCRIPTION_CSS_PROP_HINTS
@@ -389,7 +388,7 @@ define(function (require, exports, module) {
const propertyKey = computedPropertyKeys[resultItem.sourceIndex];
if(properties[propertyKey] && properties[propertyKey].MDN_URL){
resultItem.MDN_URL = properties[propertyKey].MDN_URL;
- MDN_PROPERTIES_URLS[propertyKey] = resultItem.MDN_URL;
+ mdnPropertiesUrls[propertyKey] = resultItem.MDN_URL;
}
}
@@ -429,8 +428,8 @@ define(function (require, exports, module) {
let $icon = $(`Emmet`);
// if MDN_URL is available for the property, add the href attribute to redirect to mdn
- if(MDN_PROPERTIES_URLS[expandedAbbr]) {
- $icon.attr("href", MDN_PROPERTIES_URLS[expandedAbbr]);
+ if(mdnPropertiesUrls[expandedAbbr]) {
+ $icon.attr("href", mdnPropertiesUrls[expandedAbbr]);
$icon.attr("title", Strings.DOCS_MORE_LINK_MDN_TITLE);
}
@@ -724,7 +723,7 @@ define(function (require, exports, module) {
* Checks for preference changes, to enable/disable Emmet
*/
function preferenceChanged() {
- enabled = PreferencesManager.get(AllPreferences.EMMET);
+ enabled = PreferencesManager.get("emmet");
}
@@ -732,7 +731,7 @@ define(function (require, exports, module) {
var cssPropHints = new CssPropHints();
CodeHintManager.registerHintProvider(cssPropHints, ["css", "scss", "less"], 1);
- PreferencesManager.on("change", AllPreferences.EMMET, preferenceChanged);
+ PreferencesManager.on("change", "emmet", preferenceChanged);
preferenceChanged();
// For unit testing
diff --git a/src/extensions/default/HTMLCodeHints/main.js b/src/extensions/default/HTMLCodeHints/main.js
index 2e5815a6f8..464d3bcb15 100644
--- a/src/extensions/default/HTMLCodeHints/main.js
+++ b/src/extensions/default/HTMLCodeHints/main.js
@@ -33,7 +33,6 @@ define(function (require, exports, module) {
CSSUtils = brackets.getModule("language/CSSUtils"),
StringMatch = brackets.getModule("utils/StringMatch"),
LiveDevelopment = brackets.getModule("LiveDevelopment/main"),
- AllPreferences = brackets.getModule("preferences/AllPreferences"),
KeyEvent = brackets.getModule("utils/KeyEvent"),
Metrics = brackets.getModule("utils/Metrics"),
HTMLTags = require("text!HtmlTags.json"),
@@ -468,7 +467,7 @@ define(function (require, exports, module) {
return null;
}
- // to show emmet hint when either a single or three exclamation mark(s) is present
+ // not to show emmet hint when either a single or three exclamation mark(s) is present
if (line.includes('!!') && !line.includes('!!!')) {
return null;
}
@@ -1205,7 +1204,7 @@ define(function (require, exports, module) {
* Checks for preference changes, to enable/disable Emmet
*/
function preferenceChanged() {
- enabled = PreferencesManager.get(AllPreferences.EMMET);
+ enabled = PreferencesManager.get("emmet");
}
@@ -1222,11 +1221,11 @@ define(function (require, exports, module) {
CodeHintManager.registerHintProvider(attrHints, ["html"], 0);
NewFileContentManager.registerContentProvider(newDocContentProvider, ["html"], 0);
- PreferencesManager.on("change", AllPreferences.EMMET, preferenceChanged);
+ PreferencesManager.on("change", "emmet", preferenceChanged);
preferenceChanged();
var emmetMarkupHints = new EmmetMarkupHints();
- CodeHintManager.registerHintProvider(emmetMarkupHints, ["html", "php", "jsp"], 0);
+ CodeHintManager.registerHintProvider(emmetMarkupHints, ["html", "php"], 0);
// For unit testing
exports.emmetHintProvider = emmetMarkupHints;
diff --git a/src/nls/root/strings.js b/src/nls/root/strings.js
index 92a1672dec..8db12e1a1a 100644
--- a/src/nls/root/strings.js
+++ b/src/nls/root/strings.js
@@ -524,6 +524,7 @@ define({
"CMD_BEAUTIFY_CODE": "Beautify Code",
"CMD_BEAUTIFY_CODE_ON_SAVE": "Beautify Code After Save",
"CMD_AUTO_RENAME_TAGS": "Auto Rename HTML Tags",
+ "CMD_TOGGLE_EMMET": "Emmet",
// Search menu commands
"FIND_MENU": "Find",
diff --git a/src/preferences/AllPreferences.js b/src/preferences/AllPreferences.js
deleted file mode 100644
index 4664246d0c..0000000000
--- a/src/preferences/AllPreferences.js
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * GNU AGPL-3.0 License
- *
- * Copyright (c) 2021 - present core.ai . All rights reserved.
- * Original work Copyright (c) 2012 - 2021 Adobe Systems Incorporated. All rights reserved.
- *
- * This program is free software: you can redistribute it and/or modify it
- * under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
- * for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see https://opensource.org/licenses/AGPL-3.0.
- *
- */
-
-/*
- * This file houses all the preferences used across Phoenix.
- *
- * To use:
- * ```
- * const AllPreferences = brackets.getModule("preferences/AllPreferences");
- * function preferenceChanged() {
- enabled = PreferencesManager.get(AllPreferences.EMMET);
- }
- * PreferencesManager.on("change", AllPreferences.EMMET, preferenceChanged);
- preferenceChanged();
- * ```
- */
-
- define(function (require, exports, module) {
- const PreferencesManager = require("preferences/PreferencesManager");
- const Strings = require("strings");
-
- // list of all the preferences
- const PREFERENCES_LIST = {
- EMMET: "emmet"
- };
-
- PreferencesManager.definePreference(PREFERENCES_LIST.EMMET, "boolean", true, {
- description: Strings.DESCRIPTION_EMMET
- });
-
- module.exports = PREFERENCES_LIST;
-});
\ No newline at end of file