You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case you don’t know, the code above registers a new command and adds a menu item to File menu as soon as Brackets is ready. The command logs "hello world" to the console.
The problem is, that the command handler (test()) doesn’t get executed when triggered via the menu item as soon as it contains a call to the console API. Substituting console.log("hello world") with $("#main-toolbar").toggle() works. Calling test() directly works as expected, no matter what is being executed inside of test.
There are no errors logged to the console and Brackets did behave as usual afterwards. I’ve yet to find a way to debug this.
‘Reload without extensions’ is not applicable here, so I’ve temporarily disabled all user extensions.
System Setup:
OS X 10.9.5
Brackets Release 1.2 development build 1.2.0-0 (master da48369fb)
Comment by sbruchmann Sunday Jan 04, 2015 at 06:26 GMT
To make things a tad weirder as before: Adding a key binding to the menu item executes the command handler. Invoking the menu item directly is still not working.
Sunday Jan 04, 2015 at 06:00 GMT
Originally opened as adobe/brackets#10305
This is strange. Take a look at the following code of a sample extension:
In case you don’t know, the code above registers a new command and adds a menu item to
File
menu as soon as Brackets is ready. The command logs"hello world"
to the console.The problem is, that the command handler (
test()
) doesn’t get executed when triggered via the menu item as soon as it contains a call to theconsole
API. Substitutingconsole.log("hello world")
with$("#main-toolbar").toggle()
works. Callingtest()
directly works as expected, no matter what is being executed inside oftest
.There are no errors logged to the console and Brackets did behave as usual afterwards. I’ve yet to find a way to debug this.
‘Reload without extensions’ is not applicable here, so I’ve temporarily disabled all user extensions.
System Setup:
Edit: Fixed copy & paste error as mentioned in this comment.
The text was updated successfully, but these errors were encountered: