Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Can I write a plug-in that calls the download of a certain file? How to do this? #7486

Unanswered
YFAnt asked this question in Q&A
Discussion options

I can write a plug-in, and then the plug-in calls the file right-click download function to realize the download, how do I do it? Thanks :)

You must be logged in to vote

Replies: 1 comment

Comment options

I am not sure there is a way for an extension to trigger the context menu or a way to trigger a download. At least, I am not immediately seeing anything available for that here: https://code.visualstudio.com/api/references/vscode-api

There might be a way to do it, but you might have better luck asking on Stack Overflow or the VS Code repo.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /