Skip to content

Here-string is incorrectly completed #181

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
pcgeek86 opened this issue May 14, 2016 · 3 comments
Closed

Here-string is incorrectly completed #181

pcgeek86 opened this issue May 14, 2016 · 3 comments
Labels

Comments

@pcgeek86
Copy link
Contributor

pcgeek86 commented May 14, 2016

Issue

When you type @', a single quote is tacked on at the end, but doesn't include the closing @, so you're left with @'', which isn't a useful PowerShell construct.

Expected Result

In my opinion, one of two things should happen, when you type @':

  1. Nothing
  2. ``nn'@is appended (two new lines, followed by`'@`), and then the caret should be moved to the middle line (see screenshot)

image

Cheers,
Trevor Sullivan
Microsoft MVP: Cloud & Data Center Management
https://trevorsullivan.net
https://twitter.com/pcgeek86

@daviwil daviwil added the Issue-Bug A bug to squash. label May 14, 2016
@daviwil daviwil added this to the Backlog milestone May 14, 2016
@daviwil
Copy link
Contributor

daviwil commented May 14, 2016

This is probably caused by how VS Code does its quote completions, they might not account for weird syntax like ours. I'll see if there's anything I can do on our side.

@ghost
Copy link

ghost commented May 31, 2017

Seeing the same issue, #1 would be better than the current behavior.

Thanks!

@TylerLeonhardt
Copy link
Member

I'm duping this to a newer one #1517. I think we might be able to modify the auto closing pairs here:
https://github.com/Microsoft/vscode/blob/master/extensions/powershell/language-configuration.json#L11

But I've not tried it

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

No branches or pull requests

3 participants