-
Notifications
You must be signed in to change notification settings - Fork 498
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
### snippet to auto generate DOCs for a cmdlet fails. #1488
### snippet to auto generate DOCs for a cmdlet fails. #1488
Comments
Hi @Mark-Foresta, would you be able to attach any relevant logs? The instructions are in the README link at the bottom of your issue description |
I think I have attached them |
It repros for me so that should help in tracking it down. |
Problem seems to occur here: vscode-powershell/src/features/HelpCompletion.ts Lines 159 to 189 in 6630390
First off it looks like we can't rely on VSCode for indentation as we used to? |
Nothing has touched that code in several months though |
It looks like we are passing the variable names through correctly, but VSCode is now doing something weird with them??? |
Ok, I've opened a PR with the fix. None of that explains VSCode's mysterious behaviour btw, the bug was elsewhere. |
System Details
Operating system name and version:
Windows 10
VS Code version:
Version: 1.25.1
Commit: 1dfc5e557209371715f655691b1235b6b26a06be
Date: 2018-07-11T15:43:11.471Z
Electron: 1.7.12
Chrome: 58.0.3029.110
Node.js: 7.9.0
V8: 5.8.283.38
Architecture: ia32
PowerShell extension version: 1.8.3
Output from
$PSVersionTable
:PS C:\Users\Administrator> $PSVersionTable
Name Value
PSVersion 5.0.10586.117
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.10586.117
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Issue Description
I am experiencing a problem with the
###
snippet. This usually places a commented section for my CMDLet with Synopsis description and such. I believe in 1.8.3 there is a new error causing this to Fail. My output now is an odd left aligned version of all my code. I have recreated the problem with a simple Hello World function. The bottom half is what I wrote everything above it is the output of the snippet generator.Attached Logs
Follow the instructions in the README
about capturing and sending logs.
The text was updated successfully, but these errors were encountered: