Skip to content
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

Close tag not recognized after here-string header #1221

Closed
ExchangeTips opened this issue Mar 1, 2018 · 4 comments
Closed

Close tag not recognized after here-string header #1221

ExchangeTips opened this issue Mar 1, 2018 · 4 comments

Comments

@ExchangeTips
Copy link

System Details

  • Operating system name and version: Windows 10 Pro 10.0.16299
  • VS Code version: 1.20.1
  • PowerShell extension version: 1.6.0
  • Output from $PSVersionTable:

Name Value


PSVersion 5.1.16299.98
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.16299.98
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Copy / paste the following commands into the PowerShell Integrated Console, and paste the output here:

code -v
$pseditor.EditorServicesVersion
code --list-extensions --show-versions
$PSVersionTable

PS C:\WINDOWS> code -v
1.20.1
f88bbf9137d24d36d968ea6b2911786bfe103002
ia32
PS C:\WINDOWS> $pseditor.EditorServicesVersion
PS C:\WINDOWS> code --list-extensions --show-versions
PS C:\WINDOWS> $PSVersionTable

Name Value


PSVersion 5.1.16299.98
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.16299.98
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Issue Description

The closing doublequote-@ ("@) in the following code is not interpeted as a closing tag:

$DesktopIniContent = @"
[.ShellClassInfo]
CLSID2={0AFACED1-E828-11D1-9187-B532F1E9575D}
Flags=2
ConfirmFileOp=1
"@

Everything after the close tag is interpreted as if it is still within the opening doublequote.

Attached Logs

Follow the instructions in the [README](https://github.com/PowerShell/vscode-powershell#reporting-problems
1519942442-058a7381-2ca3-4027-8bff-b5ddb9c0669b1519942439665.zip
)
about capturing and sending logs.

@moymike
Copy link

moymike commented Mar 1, 2018

Do you have the closing tag -->
"@
typed starting at column 1? If there is a tab or space in front of it, I get that behavior, but otherwise it works. This was true with ISE also.

@ExchangeTips
Copy link
Author

No, I didn't. Thanks. That fixed it.

@ExchangeTips
Copy link
Author

Well, not exactly "fixed", but good enough for now.

@rkeithhill
Copy link
Contributor

I'm going to close this. If you still think there is an issue syntax colorization, please file it at https://github.com/powershell/editorsyntax. WRT to code folding, vote here - microsoft/vscode#3422

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

3 participants