mathworks / mathworks/MATLAB-extension-for-vscode

Execute startup.m / finish.m automatically

Open
#214 7 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

Is your feature request related to a problem? Please describe.
Yes, I believe that the feature to automatically execute startup.m and finish.m scripts, similar to the MATLAB desktop environment, is not yet implemented in this extension. This is crucial for users who rely on these scripts for their workflow.

Describe the solution you'd like
I would like this extension to be enhanced to automatically execute startup.m when a MATLAB session is initiated from VSCode, and finish.m when the MATLAB session is terminated or the VSCode window is closed.

Describe alternatives you've considered
The only alternative I can think of is to manually execute these scripts via the MATLAB command line, which is not as efficient.

Additional context
In my workflow, I use finish.m to track and manage the time I spend using MATLAB.

MATLAB : 24.2.0.2773142 (R2024b) Update 2
VSCode : 1.96.4 (user setup)
OS : Windows_NT x64 10.0.22621

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

The requested scripts are startup.m and finish.m; start by tracing the extension's MATLAB session startup and shutdown handling. Determine how VS Code window closure is observed, then verify that startup.m runs when a session begins and finish.m runs when the session or window ends.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.