You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
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
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.The text was updated successfully, but these errors were encountered: