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

Scope task config lookup to workspace folder #3798

Merged
merged 1 commit into from
Jan 19, 2023
Merged

Conversation

bwateratmsft
Copy link
Collaborator

@bwateratmsft bwateratmsft commented Jan 11, 2023

Fixes #3641, fixes #2327

Tests:

  • In a workspace
    • .NET
      • Run
      • Attach
    • Node
      • Run
      • Attach
    • Python
      • Run
      • Attach
  • In a workspace folder
    • .NET
      • Run
      • Attach
    • Node
      • Run
      • Attach
    • Python
      • Run
      • Attach

@bwateratmsft bwateratmsft requested a review from a team as a code owner January 11, 2023 16:19
@@ -103,14 +103,14 @@ export function registerTaskProviders(ctx: ExtensionContext): void {
}

export function hasTask(taskLabel: string, folder: WorkspaceFolder): boolean {
const workspaceTasks = workspace.getConfiguration('tasks', folder.uri);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Now we can just pass the folder instead of folder.uri. Same as line 113 below.

@bwateratmsft bwateratmsft changed the title Scope config lookup to workspace folder Scope task config lookup to workspace folder Jan 11, 2023
@bwateratmsft bwateratmsft merged commit 1ee1c50 into main Jan 19, 2023
@bwateratmsft bwateratmsft deleted the bmw/taskScope branch January 19, 2023 17:39
@microsoft microsoft locked and limited conversation to collaborators Mar 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants