Invoke-TaskFromVSCode
1.0.4
This script invokes the current task from the build script in VSCode.
It is invoked in the session or in an external PowerShell console.
The script requires the VSCode PowerShell extension.
The current task is the task at the caret or above. If none is found then
the default task is invoked. Currently the script should be saved manually.
Invoke the script directly f
It is invoked in the session or in an external PowerShell console.
The script requires the VSCode PowerShell extension.
The current task is the task at the caret or above. If none is found then
the default task is invoked. Currently the script should be saved manually.
Invoke the script directly f
This script invokes the current task from the build script in VSCode.
It is invoked in the session or in an external PowerShell console.
The script requires the VSCode PowerShell extension.
The current task is the task at the caret or above. If none is found then
the default task is invoked. Currently the script should be saved manually.
Invoke the script directly from the integrated console or register it for
PowerShell.ShowAdditionalCommands. Create or open the VSCode profile:
C:\Users\...\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1
and add commands:
Register-EditorCommand -Name IB1 -DisplayName 'Invoke task' -ScriptBlock {
Invoke-TaskFromVSCode.ps1
}
Register-EditorCommand -Name IB2 -DisplayName 'Invoke task in console' -SuppressOutput -ScriptBlock {
Invoke-TaskFromVSCode.ps1 -Console
}
Specify the full path if Invoke-TaskFromVSCode.ps1 is not in the path.
You can add a keyboard shortcut for PowerShell.ShowAdditionalCommands.
Show more
It is invoked in the session or in an external PowerShell console.
The script requires the VSCode PowerShell extension.
The current task is the task at the caret or above. If none is found then
the default task is invoked. Currently the script should be saved manually.
Invoke the script directly from the integrated console or register it for
PowerShell.ShowAdditionalCommands. Create or open the VSCode profile:
C:\Users\...\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1
and add commands:
Register-EditorCommand -Name IB1 -DisplayName 'Invoke task' -ScriptBlock {
Invoke-TaskFromVSCode.ps1
}
Register-EditorCommand -Name IB2 -DisplayName 'Invoke task in console' -SuppressOutput -ScriptBlock {
Invoke-TaskFromVSCode.ps1 -Console
}
Specify the full path if Invoke-TaskFromVSCode.ps1 is not in the path.
You can add a keyboard shortcut for PowerShell.ShowAdditionalCommands.
Installation Options
Owners
Copyright
(c) Roman Kuzmin
Package Details
Author(s)
- Roman Kuzmin
Tags
Invoke Task Invoke-Build VSCode
Dependencies
This script has no dependencies.
FileList
- Invoke-TaskFromVSCode.nuspec
- Invoke-TaskFromVSCode.ps1