Skip to content

Formatting a powershell script corrupts the dot sourced file paths #1967

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
MarkKharitonov opened this issue May 17, 2019 · 1 comment
Closed

Comments

@MarkKharitonov
Copy link

MarkKharitonov commented May 17, 2019

I have the following line in my code:

. .\vsts\ServerSide\Get-TestResultsDir.ps1

After pressing Alt+Shift+F (i.e. format) it becomes

. Get-TestResultsDir.ps1

I use version v1.12.1 of the extension.

P.S.
The same behavior happens if & is used instead of .

@rkeithhill
Copy link
Contributor

rkeithhill commented May 17, 2019

This issue is with the PSScriptAnalyzer which this extension uses for fomatting. This issue has been reported there: PowerShell/PSScriptAnalyzer#1206 Vote it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants