Skip to content

Test: terminal quick fix widget #166761

Closed
Closed

Description

Refs #162067

Complexity: 3

Authors: Megan Rogge (@meganrogge) Daniel Imms (@Tyriar) Matt Bierner (@mjbvz)

Create Issue


We now have an ActionWidgetService used by both the code actions in the editor and the quick fixes in the terminal. Make sure that the widget works as expected in the terminal and feels consistent with the experience in an editor.

The quick fixes we support currently include:

  • git similar : git sttatus
  • git push : checkout a branch that has no upstream and git push
  • git create PR : git push --set-upstream origin <branch-name>
  • git two dashes: git add . -all
  • free port : launch a server or task that uses a specific <port> then launch that again so you see an error related to address already in use - example

Activity

  1. sandy081 commented on Nov 29, 2022

    @sandy081
    Member

    Megan Rogge (@meganrogge) Do you mean this widget in the terminal?

    image

    Also, I tried to add quick fixes using following contribution and I do not know why I do not see it

    "terminal": {
    			"quickFixes": [
    				{
    					"id": "terminal-sample fix",
    					"commandLineMatcher": "echo [^\\s]+",
    					"outputMatcher": {
    						"lineMatcher": "(?<input>[^\\s]+) (?<inputtwo>[^\\s]+)",
    						"anchor": "bottom",
    						"length": 1,
    						"offset": 0
    					},
    					"linkToOpen": "https://google.com/${group:input}${group:inputtwo}",
    				}
    			]
    		}
    

    Got this sample from here

    PS: It would be great, if the description of the test plan item has more context about what is being tested and some samples/references that can be helpful for testing.

  2. Tyriar commented on Nov 29, 2022

    @Tyriar
    Contributor

    Sandeep Somavarapu (@sandy081) run git stt for example, you should see a lightbulb that opens a widget like this:

    image

    See release notes and docs for more examples: https://code.visualstudio.com/updates/v1_72#_terminal-quick-fixes, https://code.visualstudio.com/docs/terminal/shell-integration#_quick-fixes

  3. meganrogge commented on Nov 29, 2022

    @meganrogge
    CollaboratorAuthor

    Sandeep Somavarapu (@sandy081) sorry for the confusion/ lack of directions. we just care about testing the functionality of the quick fix widget in this issue - no need to test the contribution point. I've updated the instructions above.

    For example:
    Screenshot 2022-11-29 at 2 00 45 PM

  4. sandy081 commented on Nov 29, 2022

    @sandy081
    Member

    Thanks for the updated description.

  5. lszomoru commented on Nov 30, 2022

    @lszomoru
    Member

    I am not seeing any decorations in the terminal. Am I missing a setting?
    image

  6. Tyriar commented on Nov 30, 2022

    @Tyriar
    Contributor

    Ladislau Szomoru (@lszomoru) are you in screen reader mode, do you have the conpty setting overridden and what version of powershell are you on?

  7. lszomoru commented on Nov 30, 2022

    @lszomoru
    Member

    It was the conpty setting. Thank you!

  8. locked and limited conversation to collaborators on Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions