scripts

Get-VSCCurrentFile.ps1

SYNOPSIS

Returns the path of the current file open in VSCode, when run in the PowerShell Extension Terminal in VSCode.

SYNTAX

Get-VSCCurrentFile.ps1 [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

EXAMPLES

EXAMPLE 1

Get-VSCCurrentFile.ps1

C:\GitHub\scripts\Get-VSCCurrentFile.ps1

PARAMETERS

-ProgressAction

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.String, System.Double, System.Int32, System.Boolean depending on VS Code JSON value type.

NOTES

https://github.com/PowerShell/PowerShellEditorServices

https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell