intorust / intorust.vscode

A VSCode extension for learning Rust
Other
9 stars 2 forks source link

Allow language model to propose and apply changes #8

Open nikomatsakis opened 4 weeks ago

nikomatsakis commented 4 weeks ago

Ideally the user would be able to talk with the model and get to the point where it can offer a fix and then we could apply that fix automatically. I'm not 100% sure what this looks like but that's the kind of thing I want.

doc-jones commented 3 weeks ago

Ideally the user would be able to talk with the model and get to the point where it can offer a fix and then we could apply that fix automatically. I'm not 100% sure what this looks like but that's the kind of thing I want.

This appears to be in the features for the vscode.chat API. Adding "extensionDependencies" including "github.copilot-chat" and even rust analyzer in addition to the user query (request.prompt), etc. Registering as "chat participants" provides the capabilities to capture a query, capture a response and enable ui elements like buttons inside the chat window.

Copilot is limited to OpenAI's GPT models, but it is possible to register a different model through the vscode.lm API.