stackblitz / stackblitz/sdk

Allow a VM method to open a terminal with a script

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

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
50
Forks
32
PR merge metrics
No merged PRs in 30d

Description

Currently, it's possible to instantiate an IDE with some commands (upto 3) opened via startScript. In a specific usecase I'm working on, an action needs to be performed later by a user, and not on instantiation.

(the use-case is "Run tests" .. where a specific command is run only after some changes are made by the user).

I could not find a function on vm to allow this to be done. Would request such an option so that an external user action (pressing a menu button or such), allows a terminal to be run.

If you can suggest other alternatives towards this, pls do so.

Regards

Contributor guide

No contributing guide indexed for this repository

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 reading the VM API and the existing startScript entry point, since the issue names no files or tests. Determine the public shape for invoking a terminal after instantiation, then verify that an external action can trigger the script without rerunning IDE setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.