mathworks / mathworks/MATLAB-extension-for-vscode

The `desktop` command does not work as expected on Mac

Open
#129 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
435
Forks
40
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
The desktop command does not work, as expected on Mac.
It is not an intuitive behavior - at least not for a first time user.

To Reproduce
Steps to reproduce the behavior:

  1. Open VC Code and a .m file.
  2. Connect to MATLAB
  3. Type desktop in the MATLAB termnial
  4. MATLAB GUI opens in the "background". That is, I can see the GUI if I show all open windows (ctrl+up arrow on Mac), but I cannot, for example, cmd+tab to the GUI or click on it in the dock.

Expected behavior
A MATLAB GUI should appear in the forefront or in the dock.

Useful Information

  • OS Version: mac os Sonoma 14.4.1
  • VS Code Version: 1.87.2
  • MATLAB Version: R2024a

Additional context
I assume this behavior is caused because the connected MATLAB instance is hidden on Mac as mentioned in #9 .

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the desktop command from a MATLAB terminal launched through the VS Code extension on macOS, then trace the command's handling of the connected MATLAB instance. Done means the MATLAB GUI is brought to the foreground and appears as a normal app in the Dock; verify against the stated macOS, VS Code, and MATLAB versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab, typescript, vscode
Domain
desktop, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.