aws / aws/aws-toolkit-vscode

Cannot cancel an inline code generation

Open
#7,485 0 comments 0 reactions 0 assignees View on GitHub
feature-request
Dominant language
TypeScript
Stars
2k
Forks
807
Avg merge
10h 12m
Merged PRs (30d)
7

Description

On VSCode

## Problem

The main issue is that when generating inline code in a file (through Cmd+I), we can't stop it until it is done.

What makes it worse is the underlaying model liking to rewrite the entire file instead of just inserting the few lines requested.

Final result is having to wait a full minute for the LLM to rewrite the whole file in a function just to add a single line of new code.

## Expected behavior

Next to the "Generating" inline text, have a "Cancel" button enabling us to stop and remove the generated code. And even a "Stop" button to just pick the line we need and cancel right after.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the VSCode inline code-generation flow invoked through Cmd+I, focusing on how the “Generating” state and generated edits are managed. Determine how cancellation should remove partial output and clarify whether the proposed Stop behavior is in scope; done means generation can be cancelled without leaving unwanted generated code.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
ai, devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.