Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow extensions to add floating buttons within a text editor (similar to the "Add Configuration..." button in launch.json editors) #91082

Closed
djnicholson opened this issue Feb 20, 2020 · 1 comment
Assignees
Labels
api feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code
Milestone

Comments

@djnicholson
Copy link

When you open a launch.json file in vscode you see a prominent "Add Configuration..." button in the lower right hand corner of the text editor.

It would be great if extensions could cause similar buttons to appear within text editors (only when editing files in a specific language).

The closest I have managed is to get is by creating a CodeLensProvider that provides a CodeLens at Range(0, 0, 0, 0). This only gets me a small link at the top of the document though and it is easy for the user to miss.

Related (unanswered) StackOverflow question: https://stackoverflow.com/questions/60171826/can-vscode-extensions-add-floating-buttons-within-a-text-editor-similar-to-ad
Related issue where this feature would be used in an extension: neo-project/neo-visual-tracker#49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code
Projects
None yet
Development

No branches or pull requests

3 participants
@isidorn @djnicholson and others