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
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

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Invoke-TaskFromVSCode -RequiredVersion 1.0.4

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) Roman Kuzmin

Package Details

Author(s)

  • Roman Kuzmin

Tags

Invoke Task Invoke-Build VSCode

Dependencies

This script has no dependencies.

FileList

Version History

Version Downloads Last updated
1.0.8 67 3/7/2024
1.0.7 344 11/22/2020
1.0.6 309 2/22/2018
1.0.5 287 6/1/2017
1.0.4 (current version) 23 5/26/2017
1.0.3 22 5/21/2017
1.0.2 42 12/18/2016
1.0.1 55 6/20/2016
1.0 31 6/18/2016
Show more