Skip to content

Update build and task configurations #3518

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

Merged
merged 3 commits into from
Aug 23, 2021
Merged

Conversation

andyleejordan
Copy link
Member

Small mostly developer oriented fixes.

These existed to invoke tasks in the associated PowerShellEditorServices
folder; however, the `Build` task was previously fixed to automatically
build and copy that dependency when needed. Furthermore, the existing VS
Code tasks meant that for developers' ease-of-use we could already
clean, build, and test that dependency. Finally, CI did not depend on
the `All` section of these for testing, as we have separate CI/CD
pipelines for each project, so these were redundant and confusing.
@andyleejordan andyleejordan requested a review from rjmholt August 23, 2021 18:12
@@ -459,7 +459,7 @@
"type": "PowerShell",
"request": "launch",
"script": "^\"\\${file}\"",
"cwd": "^\"\\${file}\""
"cwd": "^\"\\${workspaceFolder}\""
Copy link
Member Author

Choose a reason for hiding this comment

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

@rkeithhill Do you know why this was file before? It seemed quite wrong to me, as the thing is asking for a directory, and our other task (below) was given workspaceFolder too.

Copy link
Member Author

Choose a reason for hiding this comment

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

I found my answer at long last...

if ((currentDocument !== undefined) && (config.cwd === "${file}")) {
config.cwd = currentDocument.fileName;
}

@@ -106,7 +100,7 @@ task UpdateReadme -If { $script:IsPreviewExtension } {
}
}

task Package UpdateReadme, {
task Package UpdateReadme, Build, {
Copy link
Member Author

Choose a reason for hiding this comment

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

Annoying dependency bug if you've cleaned and then want to package, it should just build.

}
},
{
"name": "PowerShell Launch Current File",
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm using this a lot when testing, high time to put it in the project's config.

@andyleejordan andyleejordan merged commit 0478d4b into master Aug 23, 2021
@andyleejordan andyleejordan deleted the andschwa/debug-config branch August 23, 2021 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants