Invoke-TaskFromVSCode

1.0.3

This script invokes the current task from the build script in VSCode. It is
invoked either in the VSCode session or in an external PowerShell console.
The script requires the VSCode PowerShell extension.

The current task is the task at the caret line or above. If none is found
then the default task is invoked. Currently the script should be saved
manually before invo
This script invokes the current task from the build script in VSCode. It is
invoked either in the VSCode session or in an external PowerShell console.
The script requires the VSCode PowerShell extension.

The current task is the task at the caret line or above. If none is found
then the default task is invoked. Currently the script should be saved
manually before invoking.

In order to register editor commands create or open the VSCode profile:

C:\Users\...\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1

and add two commands:

Register-EditorCommand -Name IB -DisplayName 'Invoke task' -ScriptBlock {
param($Context)
Invoke-TaskFromVSCode.ps1
}

Register-EditorCommand -Name IBConsole -DisplayName 'Invoke task in console' -SuppressOutput -ScriptBlock {
param($Context)
Invoke-TaskFromVSCode.ps1 -Console
}

These commands assume that Invoke-TaskFromVSCode.ps1 is in the path.
If this is not the case then specify the full script path.

In order to invoke commands, press F1 or Ctrl+Shift+P to open the command
palette. Type "addi" until you see the item "PowerShell: Show Additional
Commands", then press Enter.

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

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

Author(s)

Roman Kuzmin

Copyright

(c) Roman Kuzmin

Package Details

Owners

Tags

Invoke Task Invoke-Build VSCode

Dependencies

This script has no dependencies.

FileList

Version History

Version Downloads Last updated
1.0.7 209 11/22/2020
1.0.6 299 2/22/2018
1.0.5 277 6/1/2017
1.0.4 13 5/26/2017
1.0.3 (current version) 12 5/21/2017
1.0.2 32 12/18/2016
1.0.1 45 6/20/2016
1.0 21 6/18/2016
Show more