-
Notifications
You must be signed in to change notification settings - Fork 511
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
Conversation
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.
@@ -459,7 +459,7 @@ | |||
"type": "PowerShell", | |||
"request": "launch", | |||
"script": "^\"\\${file}\"", | |||
"cwd": "^\"\\${file}\"" | |||
"cwd": "^\"\\${workspaceFolder}\"" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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...
vscode-powershell/src/features/DebugSession.ts
Lines 304 to 306 in 3dc11c1
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, { |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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.
Small mostly developer oriented fixes.