Skip to content

Issue Reporter: Support configuring data sent to extensions #46726

Closed

Description

Continuation of #45673

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

Activity

  1. Almenon commented on Apr 7, 2018

    @Almenon

    By default the extension log should definitley be included within the report. Extension settings would also be very helpful.

  2. rkeithhill commented on Jul 8, 2018

    @rkeithhill

    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.

  3. rkeithhill commented on Jul 8, 2018

    @rkeithhill

    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!!

  4. rkeithhill commented on Jul 8, 2018

    @rkeithhill

    Extension settings would also be very helpful.

    Yes! But we would only need the non-default settings.

  5. added
    feature-request
    on Sep 18, 2018
  6. bwateratmsft commented on Nov 19, 2020

    @bwateratmsft
    Contributor

    The Docker extension along with several Azure extensions managed by EricJizbaMSFT and Stephen Weatherford (@StephenWeatherford) would really benefit from this as well.

  7. TylerLeonhardt commented on Mar 7, 2023

    @TylerLeonhardt
    Member

    I'm thinking the best API for this kind of thing is a typical provider model:

    interface IssueDataProvider {
        provideIssueData(): ProviderResult<string | MarkdownString>;
    }
    
    namespace env {
        export function registerIssueDataProvider(provider: IssueDataProvider): Disposable;
    }

    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.

  8. 9 remaining items

  9. brettcannon commented on Mar 13, 2023

    @brettcannon
    Member

    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.

  10. TylerLeonhardt commented on Mar 13, 2023

    @TylerLeonhardt
    Member

    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.

  11. eleanorjboyd commented on Mar 13, 2023

    @eleanorjboyd
    Contributor

    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.
    Screenshot 2023-03-13 at 1 24 25 PM

    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.

  12. TylerLeonhardt commented on Mar 13, 2023

    @TylerLeonhardt
    Member

    Eleanor Boyd (@eleanorjboyd)

    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.

  13. AnthonyLeonardoGracio commented on May 13, 2024

    @AnthonyLeonardoGracio

    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,

  14. removed their assignment
    on May 13, 2024
  15. justschen commented on May 13, 2024

    @justschen
    Collaborator

    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:

    "commands": [
        {
            "command": "extension.myCommand",
            "title": "Report Issue"
        }
    ],
        "menus": {
            "issue/reporter": [
                {
                    "command": "extension.myCommand"
                }
            ]
        }

    extension.myCommand will then run an workbench.action.openIssueReporter command 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!

  16. locked and limited conversation to collaborators on Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api-proposalfeature-requestissue-reporteron-testplan

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions