Open Fr4nk1inCs opened 2 hours ago
Thank you for opening this issue!
🔔 @thomaspaulmann @iainsimmons @macbookandrew @cy-98 @immint023 @pernielsentikaer @vimtor @tonka3000 @aka-rabbi-inv @oilbeater @QIanGua @hakob8956 @erics118 @tmwrnr @tleo19 @aeither @yug2005 you might want to have a look.
Currently the Open New Window
command is done by executing some AppleScript:
https://github.com/raycast/extensions/blob/7a8c6d2e5f45991a456af97841e5b40c80376703/extensions/visual-studio-code-recent-projects/src/open-new-window.ts#L7-L19
The same script can't find application "com.microsoft.VSCode"
on my machine, although osascript
did find application "Code"
:
$ osascript -e 'id of application "Code"'
com.microsoft.VSCode
Another issue with this script is that if there's a language pack (Simplified Chinese for example) installed in VSCode, the menubar item is not displayed in English, making this script failed to click
the New Window
button.
A possible way to open a new window is to use the command line argument -n
or --new-window
provided by VSCode (and VSCodium/Cursor):
$ code --new-window
But this would encounter the same problem (to find to executable code
) which the Install Extension
command has met. Maybe add a configuration item to let user set the executable path if VSCode is not installed by a "standard" procedure?
Extension
https://www.raycast.com/thomas/visual-studio-code
Raycast Version
1.82.5
macOS Version
15.0.1
Description
Following commands on my machine failed to function:
I'm glad to provide extra info if needed.
Steps To Reproduce
/Applications/Nix Apps/Visual Studio Code.app
which is a symlink (in a symlinked directory)Commands
enabled.Current Behaviour
As described in description.
Expected Behaviour
All commands function perfectly.