Skip to content

feat: LanguageModelTool API support #752

Open
@NickCrews

Description

@NickCrews

When I'm using GitHub copilot in agent mode in VSCode, as it is writing files, I want these files to be run through ruff. A good start would just be ruff format so that everything is formatted correctly, but more advanced would be for ruff lint to work so that the model could then auto-apply the fixes. Just the formatting would be great though.

VSCode provides a LanguageModelTool API for extensions. If we added that to this extension, then ruff could advertise to the language model "hey, I have this tool that can format and lint code", and the language model would be able to choose to use it, and apply it automatically ("tool use").

What do you think of this idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-infoMore information is needed from the issue author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions