From e2c0e8e5c10933d1d5586ae579e28aabacea1ba4 Mon Sep 17 00:00:00 2001 From: Peter Flynn Date: Mon, 8 Dec 2014 12:32:31 -0800 Subject: [PATCH] Re-enable JS Code Hints extension for in-browser, and add demo JS file to dummy filesystem so it's easy to see it in action. --- src/filesystem/impls/demo/DemoFileSystem.js | 3 ++- src/utils/ExtensionLoader.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/filesystem/impls/demo/DemoFileSystem.js b/src/filesystem/impls/demo/DemoFileSystem.js index 2e851e94cfc..fa28b0b9272 100644 --- a/src/filesystem/impls/demo/DemoFileSystem.js +++ b/src/filesystem/impls/demo/DemoFileSystem.js @@ -46,7 +46,8 @@ define(function (require, exports, module) { // - object = nested folder containing more entries var demoContent = { "index.html": "\n\n Hello, world!\n\n\n Welcome to Brackets!\n\n", - "main.css": ".hello {\n content: 'world!';\n}" + "main.css": ".hello {\n content: 'world!';\n}", + "main.js": "function sayHello() {\n console.log('Hello, world!');\n}" }; diff --git a/src/utils/ExtensionLoader.js b/src/utils/ExtensionLoader.js index c639a4c356d..89522a25131 100644 --- a/src/utils/ExtensionLoader.js +++ b/src/utils/ExtensionLoader.js @@ -404,7 +404,7 @@ define(function (require, exports, module) { "HtmlEntityCodeHints", "InlineColorEditor", "InlineTimingFunctionEditor", - //"JavaScriptCodeHints", + "JavaScriptCodeHints", "JavaScriptQuickEdit", "JSLint", "LESSSupport",