alexmunteanu / VS-Code-Adobe-Development-Utils

Provides several utilities for Adobe scripts development.
MIT License
16 stars 1 forks source link

Issue with menus being displayed in languages other than JavaScript and JavaScript JSX #7

Open YukiWorks432 opened 6 months ago

YukiWorks432 commented 6 months ago

Menus are displayed in languages other than JavaScript and JavaScript JSX. The problem can be solved by setting "when" correctly as follows.

// now
{"command":"adobe_dev_utils.js_to_string","key":"alt+d","mac":"alt+d","when":"editorTextFocus"}
// fixed
{"command":"adobe_dev_utils.js_to_string","key":"alt+d","mac":"alt+d","when": "editorTextFocus && (editorLangId == javascript || editorLangId == javascriptreact || editorLangId == js || editorLangId == jsx)"}

The specific proposed fixes have been submitted in a pull request.

Thank you.