-
Notifications
You must be signed in to change notification settings - Fork 511
Ignore problems on commented out line #1253
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
Comments
From @ixixit on March 5, 2018 15:54 Sorry about the font sizes. Not sure why that particular IF line went crazy. |
No worries, I'm glad we can try to fix it!
…On Sat, Mar 31, 2018, 2:43 PM Rob Lourens ***@***.***> wrote:
*From @ixixit <https://github.com/ixixit> on March 5, 2018 15:54*
Sorry about the font sizes. Not sure why that particular IF line went
crazy.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1253 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUVcwcBowwYnPswKVRf6YrSoT_b16bJIks5tj-pngaJpZM4TCmx6>
.
|
Hi @ixixit, thanks for the report and thanks to @roblourens for bringing it over here! Can you supply us with the logs when you see this issue? The info on how to do that is here: It's super important to set the logs to Verbose. If you can set the logs to Diagnostic, that'd be even better if it's ok on your performance! |
I can't seem to repro this but it looks related to #1232 I'm going to close this as a dupe of that. If you see otherwise, feel free to attach the logs here and I can reopen! (or attach logs in the other issue) |
From @ixixit on March 2, 2018 23:5
Issue Type
Bug
Description
Hello! In this powershell script, I've created an if block which is commented out, and has no statement block following it. It is correctly detected as a comment line in the syntax, but the problem section reports it as an active problem, though it is not active in the script due to the # comment block.
Problems: [Powershell] Missing statement block after if (condition).
Secondly, if I create a second if line afterwards, and reverse the comment block, problems says there are no problems!
Problems: No problems have been detected in the workspace so far.
If I revert to the original condition, and remove the active if line, problems reports an unexpected else, which is correct, but not illustrated in this example..
VS Code Info
VS Code version: Code 1.20.1 (f88bbf9137d24d36d968ea6b2911786bfe103002, 2018-02-13T15:34:36.336Z)
OS version: Windows_NT x64 10.0.16299
System Info
Extensions (1)
Copied from original issue: microsoft/vscode#44954
The text was updated successfully, but these errors were encountered: