Skip to content

Variables in a string followed by a ? do not highlight the ? as part of the variable in VS Code #40

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
scrthq opened this issue Mar 12, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@scrthq
Copy link

scrthq commented Mar 12, 2017

Working on some API call wrapper functions for the first time in Visual Studio Code and I noticed that question marks immediately following a variable are not highlighted as part of the variable. In ISE, it's easy to catch because the question mark will highlight orange and needs to be escaped to be not be considered part of the variable. In VSCode, there's no marker.

Example:

"https://www.googleapis.com/drive/v3/teamdrives/$TeamDriveID?fields=capabilities%2Cid%2Ckind%2Cname"

In ISE, the ?fields after $TeamDriveID will be included in the variable, renaming the variable to $TeamDriveID?fields and causing it to fail. In VS Code, there's no indicator via Syntax Highlighting that that extra bit is being included.

@scrthq scrthq changed the title Variables in a string followed by a ? do not highlight the ? as part of the variable Variables in a string followed by a ? do not highlight the ? as part of the variable in VS Code Mar 12, 2017
@gravejester gravejester added the bug label Sep 4, 2017
@gravejester gravejester added this to the v2 milestone Sep 4, 2017
@gravejester gravejester self-assigned this Sep 4, 2017
@omniomi
Copy link
Contributor

omniomi commented May 21, 2018

This is a duplicate of #49.

@omniomi omniomi closed this as completed May 21, 2018
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