Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check if values are true not just undefined #155348

Merged
merged 4 commits into from Jul 16, 2022
Merged

Conversation

meganrogge
Copy link
Contributor

@meganrogge meganrogge commented Jul 15, 2022

part of #155227
fixes #155336

@meganrogge meganrogge merged commit 7839742 into main Jul 16, 2022
@meganrogge meganrogge deleted the merogge/task-trust branch July 16, 2022 01:15
joaomoreno added a commit that referenced this pull request Jul 18, 2022
@joaomoreno
Copy link
Member

FYI reverted this due to build breakage: #155468

@@ -2173,7 +2174,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
}

private get _jsonTasksSupported(): boolean {
return !!ShellExecutionSupportedContext.getValue(this._contextKeyService) && !!ProcessExecutionSupportedContext.getValue(this._contextKeyService);
return ShellExecutionSupportedContext.getValue(this._contextKeyService) === true && ProcessExecutionSupportedContext.getValue(this._contextKeyService) === true && !Platform.isWeb;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This !Platform.isWeb was the problem:

  5 failing

  1) VSCode Smoke Tests (Web)
       Task
         Task Quick Pick
           Tasks: Run Task
             hide property - false:
     Error: Timeout: get elements '.quick-input-widget .quick-input-list .monaco-list-row .label-name' after 20 seconds.
      at Code.poll (D:\a\_work\1\s\test\automation\src\code.ts:255:11)
      at Code.waitForElements (D:\a\_work\1\s\test\automation\src\code.ts:204:10)
      at QuickInput.waitForQuickInputElements (D:\a\_work\1\s\test\automation\src\quickinput.ts:41:3)
      at Task.assertTasks (D:\a\_work\1\s\test\automation\src\task.ts:42:4)
      at Context.<anonymous> (src\areas\task\task-quick-pick.test.ts:36:5)

  2) VSCode Smoke Tests (Web)
       Task
         Task Quick Pick
           Tasks: Run Task
             hide property - undefined:
     Error: Timeout: get elements '.quick-input-widget .quick-input-list .monaco-list-row .label-name' after 20 seconds.
      at Code.poll (D:\a\_work\1\s\test\automation\src\code.ts:255:11)
      at Code.waitForElements (D:\a\_work\1\s\test\automation\src\code.ts:204:10)
      at QuickInput.waitForQuickInputElements (D:\a\_work\1\s\test\automation\src\quickinput.ts:41:3)
      at Task.assertTasks (D:\a\_work\1\s\test\automation\src\task.ts:42:4)
      at Context.<anonymous> (src\areas\task\task-quick-pick.test.ts:40:5)

  3) VSCode Smoke Tests (Web)
       Task
         Task Quick Pick
           Tasks: Run Task
             icon - icon only:
     Error: Timeout: get elements '.quick-input-widget .quick-input-list .monaco-list-row .label-name' after 20 seconds.
      at Code.poll (D:\a\_work\1\s\test\automation\src\code.ts:255:11)
      at Code.waitForElements (D:\a\_work\1\s\test\automation\src\code.ts:204:10)
      at QuickInput.waitForQuickInputElements (D:\a\_work\1\s\test\automation\src\quickinput.ts:41:3)
      at Task.assertTasks (D:\a\_work\1\s\test\automation\src\task.ts:42:4)
      at Context.<anonymous> (src\areas\task\task-quick-pick.test.ts:45:5)

Tyriar added a commit that referenced this pull request Jul 18, 2022
Another attempt at #155348 which got reverted

Fixes #155336
Part of #155227
@Tyriar
Copy link
Member

Tyriar commented Jul 18, 2022

Second try: #155524

@github-actions github-actions bot locked and limited conversation to collaborators Aug 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Task command not registered on load
5 participants