microsoft / microsoft/typespec

[Optimization] Lack of interruption function during generation process when uising `TypeSpec VS Code Extension`

Open
#5,669 0 comments 0 reactions 0 assignees View on GitHub
ide
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

**Description:**
When using the `TypeSpec VS Code Extension`, there is a lack of interruption functionality during the generation process. If I mistakenly select an unwanted language or other options, I cannot cancel midway and have to wait for the generation process to complete automatically.

![Image](https://github.com/user-attachments/assets/398f91f3-1f9e-4c53-8bde-685fe8220cd0)

**Repro steps:**

1. Install the typespec extension.
2. Install @typespec/compiler: `npm install -g @typespec/compiler`.
3. Typing `>TypeSpec: Generate from TypeSpec` and Click the command.
4. Choose a project.
5. Select Emitter Type.
6. Select a language, mistakenly select an unwanted language.
7. Have to wait for the generation process to complete automatically.

**Environment:**

- `TypeSpec VS Code Extension` version: 0.64.0
- `TypeSpec compiler/CLI` version: 0.64.0
- OS: Windows, Linux

**Expected behavior:**
Users can interrupt the generation process themselves during the generation.

@RodgeFu, @msyyc and @chunyu3 for notification.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.