-
Notifications
You must be signed in to change notification settings - Fork 510
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
autoCorrectAliases replaces "process {" with "Get-Process {" #3261
Labels
Comments
Duplicate of PowerShell/PSScriptAnalyzer#1402 |
Hi @DEberhardt, the latest release of the extension comes with PSScriptAnalyzer v1.20.0, which should no longer erroneously highlight a |
#please-close |
Shaka. When the walls fell. 👍 |
More like, "Shaka. When the bug is squashed" 😸 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Issue Type: Bug
Hello,
first, I don't know whether this setting is due to the Extension or VsCode itself. Please advise if this needs to be raised in the VsCode repo.
This issue does not occur with the default setting for Auto-Correcting Aliases:
I have
autoCorrectAliases
set toTRUE
and I love this feature :)This happens under very specific circumstances, i.E. when code-Errors are present.
I have an advanced script with BEGIN/PROCESS/END block and during changing the description of a Parameter for example, the syntax is incomplete resulting in the code being read differently (usually this is an open comment with ' or " (when replacing them with the other or adding emphasis within the comment).
my
process
block function name gets replaced withGet-Process
resulting the whole Script to be unusable.Process.exe is an executable, but no substitute for Get-Process...
Can this replacement please be excluded?
Extension version: 2021.2.1
VS Code version: Code 1.54.3 (2b9aebd5354a3629c3aba0a5f5df49f43d6689f8, 2021-03-15T10:55:45.459Z)
OS version: Windows_NT x64 10.0.19042
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: