You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Issue Reporter: Support configuring data sent to extensions #46726
Now that users can choose to file on extensions, extension authors should be able to specify additional data to include in the report. This could potentially include
User settings
launch.json information
Metadata about the workspace (is it multiroot)
Console errors
Data specific to the extension
Reacted by Don Jayamanne, Andrew Wang, Pierson Lee, Almenon, Eric Amodio, Keith Hill, Patrick Meinecke, TylerLeonhardt, Rob Holt, Hyang-Ah Hana Kim and 10 more
To add to what Rachel Macfarlane (@RMacfarlane) says, the PowerShell extension would love to supply the PowerShell version info in this issue report. We'd (and I suspect most extension authors) would like to see a list of all loaded extension versions. There is sometimes "interference" between extensions and having this information can help determine if what a user is seeing might be a result of this.
Here is an example of the PowerShell version info and extension info we generate with our extension's bug report command:
PowerShell Information
Name
Value
PSVersion
5.1.17134.137
PSEdition
Desktop
PSCompatibleVersions
1.0 2.0 3.0 4.0 5.0 5.1.17134.137
BuildVersion
10.0.17134.137
CLRVersion
4.0.30319.42000
WSManStackVersion
3.0
PSRemotingProtocolVersion
2.3
SerializationVersion
1.1.0.1
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
Extension
Author
Version
cmake
twxs
0.0.17
code-settings-sync
Shan
2.9.2
cpptools
ms-vscode
0.17.6
csharp
ms-vscode
1.15.2
debugger-for-chrome
msjsdiag
4.7.0
EditorConfig
EditorConfig
0.12.4
githistory
donjayamanne
0.4.1
gitlens
eamodio
8.4.1
html-snippets
abusaidm
0.2.1
PowerShell
ms-vscode
1.7.0
sass-indented
robinbentley
1.4.9
theme-cobalt2
wesbos
2.1.6
tslint
eg2
1.0.33
vscode-eslint
dbaeumer
1.4.12
If we had this and there was a way to invoke the issue reporter programmatically, we would redirect bug report command to pop the issue reporter and probably, over time phase out our bug report command in favor of the built-in one.
Reusing env seems reasonable since the environment could be important for the issue.
Also since MarkdownString has nice utilities for creating MarkdownStrings I think it's reasonable to include that in the result... though really at the end of the day we'll just be sending a string.
Is there any way to make the data like the "Include" options that come baked in? Basically be checkboxes with the "show" link to show what's being included? I'm wondering if that might help make all the data less ominous to users?
And I do appreciate manually sending in the template if you go the GitHub issues direction as we purposefully turn off the ability to open a new issue to direct users through our "Report Issue" command 😁.
Lastly, other than some select settings outside of what our extension provides, we include every setting that is set to a non-default value. We also anonymize any setting that is free-form in case there's PII, but otherwise include any setting the user specified. Not sure if it would make sense to do that automatically since the setting contributions are known to Python and the type details for those settings are also known.
Is there any way to make the data like the "Include" options that come baked in? Basically be checkboxes with the "show" link to show what's being included? I'm wondering if that might help make all the data less ominous to users?
I opted against this with the concern that since we don't own every extension in the marketplace, we can't be sure that their data capturing processes are up to par. So I aired on the side of caution and made the extension issue data front and center. I understand that this might increase the likelihood of an empty issue (the user just deletes the content) but I think that this cohort of "security cautious but not willing to scan data manually" is small compared to others.
Lastly, other than some select settings outside of what our extension provides, we include every setting that is set to a non-default value. We also anonymize any setting that is free-form in case there's PII, but otherwise include any setting the user specified. Not sure if it would make sense to do that automatically since the setting contributions are known to Python and the type details for those settings are also known.
I think this is a good idea but it would make a good addition to this proposal rather than a replacement. I think there is still a need for data only available at runtime.
Excited about the proposal! TylerLeonhardt I have a github issue form for remote-ssh bugs which I would also love to port over to this new issue reporter. From what I can see, everything you have planned fits with the features I have for my issue form. The first comment I have is I am not sure if this is already planned but I have really appreciated having long items in dropdowns (this is done on the python report issue command so I assume that is done everywhere) but just wanted to bring it up as it does help keep issues visually cleaner even when we are gathering extensive logs.
Secondly, will the issue reporter allow assigning tags or assignees? Since remote-ssh has all bug reports go through the remote-release repo I have my bug report form assigning it to me and adding "ssh" as a label for organizational purposes.
I have really appreciated having long items in dropdowns (this is done on the python report issue command so I assume that is done everywhere) but just wanted to bring it up as it does help keep issues visually cleaner even when we are gathering extensive logs.
yeah we would collapse it in a dropdown on the issue for sure.
Secondly, will the issue reporter allow assigning tags or assignees?
Users who aren't in the GH Org can't assign people or add tags so this doesn't seem useful to support. Instead, you could use an Issue Form Template which allows for a hardcoded list of assignees & labels.
Is this already available through the VS Code API? I am not very familiar on how new APIs get merged, but I wanted to use this new capability in our own extension, so I was wondering what should I need to do in order to have access to this new API: if someone has a working example of a customized issue reporter, that would be very useful!
this is available ATM! extensions can contribute a command which will be triggered in the reporter when selecting their extension as long as they follow this menu contribution point:
Activity
Almenon commentedon Apr 7, 2018
By default the extension log should definitley be included within the report. Extension settings would also be very helpful.
rkeithhill commentedon Jul 8, 2018
To add to what Rachel Macfarlane (@RMacfarlane) says, the PowerShell extension would love to supply the
PowerShell version infoin this issue report. We'd (and I suspect most extension authors) would like to see a list of all loaded extension versions. There is sometimes "interference" between extensions and having this information can help determine if what a user is seeing might be a result of this.Here is an example of the PowerShell version info and extension info we generate with our extension's bug report command:
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
If we had this and there was a way to invoke the issue reporter programmatically, we would redirect bug report command to pop the issue reporter and probably, over time phase out our bug report command in favor of the built-in one.
rkeithhill commentedon Jul 8, 2018
Oh and we'd like to show them how to attach log files generated by the extension to the bug report e.g.:
Attached Logs
Follow the instructions in the README about capturing and sending logs.
Of course, if the issue reporter supported attachment of log files (or zip of log files) and uploaded that with the bug report - that'd be sweet!!
rkeithhill commentedon Jul 8, 2018
Yes! But we would only need the non-default settings.
bwateratmsft commentedon Nov 19, 2020
The Docker extension along with several Azure extensions managed by EricJizbaMSFT and Stephen Weatherford (@StephenWeatherford) would really benefit from this as well.
TylerLeonhardt commentedon Mar 7, 2023
I'm thinking the best API for this kind of thing is a typical provider model:
Reusing
envseems reasonable since the environment could be important for the issue.Also since
MarkdownStringhas nice utilities for creating MarkdownStrings I think it's reasonable to include that in the result... though really at the end of the day we'll just be sending a string.9 remaining items
brettcannon commentedon Mar 13, 2023
Is there any way to make the data like the "Include" options that come baked in? Basically be checkboxes with the "show" link to show what's being included? I'm wondering if that might help make all the data less ominous to users?
And I do appreciate manually sending in the template if you go the GitHub issues direction as we purposefully turn off the ability to open a new issue to direct users through our "Report Issue" command 😁.
Lastly, other than some select settings outside of what our extension provides, we include every setting that is set to a non-default value. We also anonymize any setting that is free-form in case there's PII, but otherwise include any setting the user specified. Not sure if it would make sense to do that automatically since the setting contributions are known to Python and the type details for those settings are also known.
TylerLeonhardt commentedon Mar 13, 2023
I opted against this with the concern that since we don't own every extension in the marketplace, we can't be sure that their data capturing processes are up to par. So I aired on the side of caution and made the extension issue data front and center. I understand that this might increase the likelihood of an empty issue (the user just deletes the content) but I think that this cohort of "security cautious but not willing to scan data manually" is small compared to others.
I think this is a good idea but it would make a good addition to this proposal rather than a replacement. I think there is still a need for data only available at runtime.
eleanorjboyd commentedon Mar 13, 2023
Excited about the proposal! TylerLeonhardt I have a github issue form for remote-ssh bugs which I would also love to port over to this new issue reporter. From what I can see, everything you have planned fits with the features I have for my issue form. The first comment I have is I am not sure if this is already planned but I have really appreciated having long items in dropdowns (this is done on the python report issue command so I assume that is done everywhere) but just wanted to bring it up as it does help keep issues visually cleaner even when we are gathering extensive logs.

Secondly, will the issue reporter allow assigning tags or assignees? Since remote-ssh has all bug reports go through the remote-release repo I have my bug report form assigning it to me and adding "ssh" as a label for organizational purposes.
TylerLeonhardt commentedon Mar 13, 2023
Eleanor Boyd (@eleanorjboyd)
yeah we would collapse it in a dropdown on the issue for sure.
Users who aren't in the GH Org can't assign people or add tags so this doesn't seem useful to support. Instead, you could use an Issue Form Template which allows for a hardcoded list of assignees & labels.
AnthonyLeonardoGracio commentedon May 13, 2024
Hello!
Is this already available through the VS Code API? I am not very familiar on how new APIs get merged, but I wanted to use this new capability in our own extension, so I was wondering what should I need to do in order to have access to this new API: if someone has a working example of a customized issue reporter, that would be very useful!
Regards,
justschen commentedon May 13, 2024
this is available ATM! extensions can contribute a command which will be triggered in the reporter when selecting their extension as long as they follow this menu contribution point:
extension.myCommandwill then run anworkbench.action.openIssueReportercommand with any information they want 👍check out https://code.visualstudio.com/updates/v1_87#_contributing-additional-data-in-issue-reporter for additional details.
here is also our internal testing item which has some additional instructions #203094
please let me know what you guys think!