Skip to content

"Learn more about scanning the task output" should link directly to Problem Matchers #112591

Closed

Description

Problem

When running a task for the first time, you are given the following options:

  • Continue without scanning the task output
  • Never scan the task output for this task
  • Never scan the task output for shell tasks
  • Learn more about scanning the task output

image

The last option links to:
https://go.microsoft.com/fwlink/?LinkId=733558

Which redirects to:
https://code.visualstudio.com/docs/editor/tasks#vscode

But it would be slightly better to link directly to the section on "Problem Matchers":
https://code.visualstudio.com/docs/editor/tasks#_defining-a-problem-matcher

... because it's not entirely clear that's what's meant by "scanning task output"

Proposed Solution

There are other usages of the referral link at the top of a task definition template, so probably can't just update the redirect address. Here are all the usages of ?LinkId=733558 in the repo

The option is created in the abstractTaskService.ts line here:

https://github.com/microsoft/vscode/blob/1.52.0/src/vs/workbench/contrib/tasks/browser/abstractTaskService.ts#L1035

{ label: nls.localize('TaskService.attachProblemMatcher.learnMoreAbout', 'Learn more about scanning the task output'), matcher: undefined, learnMore: true }

Which sets learnMore: true which, when clicked, calls the openDocumentation method here:

https://github.com/microsoft/vscode/blob/1.52.0/src/vs/workbench/contrib/tasks/browser/abstractTaskService.ts#L856-L858

private openDocumentation(): void {
    this.openerService.open(URI.parse('https://go.microsoft.com/fwlink/?LinkId=733558'));
}

Action Items

If it's not a requirement that all links go through fwlink - I can put in a PR to link to the subsection of the docs, but wanted to check here first

Activity

  1. alexr00 commented on Dec 16, 2020

    @alexr00
    Member

    Looks like we have plenty of references directly to https://code.visualstudio.com. Please feel free to make a PR!

  2. added
    bug
    tasks
    on Dec 16, 2020
  3. added a commit that references this issue on Dec 22, 2020
    1478078
  4. added
    unreleased
    on Dec 22, 2020
  5. added
    insiders-released
    and removed
    unreleased
    on Jan 5, 2021
  6. locked and limited conversation to collaborators on Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buginsiders-releasedtasksverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions