Skip to content

Path to script inserted into console on F5 #4047

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

Closed
6 tasks done
PrzemyslawKlys opened this issue Jun 26, 2022 · 3 comments
Closed
6 tasks done

Path to script inserted into console on F5 #4047

PrzemyslawKlys opened this issue Jun 26, 2022 · 3 comments
Labels
Area-Debugging Issue-Bug A bug to squash. Resolution-Fixed Will close automatically.

Comments

@PrzemyslawKlys
Copy link
Contributor

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • If this is a security issue, I have read the security issue reporting guidance.

Summary

Whenever I run PowerShell script I get the path to the script in the console

image

You can see this in GIF

RandomStuff

It's a bit of random.

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.22000.653
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22000.653
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Visual Studio Code Version

1.68.1
30d9c6cd9483b2cc586687151bcbcd635f373630
x64

Extension Version

ms-vscode.powershell@2022.6.1                                                                                     
ms-vscode.powershell-preview@2022.6.2                                                                             
tobysmith568.run-in-powershell@1.1.1                                                                              
TylerLeonhardt.vscode-inline-values-powershell@0.0.6

Steps to Reproduce

Run script with F5

Visuals

No response

Logs

No response

@PrzemyslawKlys PrzemyslawKlys added the Issue-Bug A bug to squash. label Jun 26, 2022
@ghost ghost added the Needs: Triage Maintainer attention needed! label Jun 26, 2022
@fflaten
Copy link
Contributor

fflaten commented Jun 27, 2022

Also occurs using Pester code lense.
It mostly/only occurs after you've executed something in the terminal. Ex. F5, ctrl+c to remove the invoked command, then f5 -> nothing. "dir" + enter, then F5 -> command is left in console.

@andyleejordan
Copy link
Member

The first entry is as-designed. F5 means "run script" and so runs exactly the command as printed. The extra one you're seeing afterwards was just fixed in PowerShell/PowerShellEditorServices#1841, and was another way #4041 showed up.

@andyleejordan andyleejordan added Area-Debugging Resolution-Fixed Will close automatically. and removed Needs: Triage Maintainer attention needed! labels Jun 27, 2022
@ghost ghost closed this as completed Jun 27, 2022
@ghost
Copy link

ghost commented Jun 27, 2022

This issue has been marked as fixed. It has been automatically closed for housekeeping purposes.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Debugging Issue-Bug A bug to squash. Resolution-Fixed Will close automatically.
Projects
None yet
Development

No branches or pull requests

3 participants