Title: sub members (properties/methods) of variables appear different behind an array reference · Issue #127 · PowerShell/EditorSyntax · GitHub
Open Graph Title: sub members (properties/methods) of variables appear different behind an array reference · Issue #127 · PowerShell/EditorSyntax
X Title: sub members (properties/methods) of variables appear different behind an array reference · Issue #127 · PowerShell/EditorSyntax
Description: Environment Editor and Version: VS Code: 1.25.1 Your primary theme: Dark+ (with corrections for punctuation inside subexpressions inside strings) Issue Description Shouldn't both of these appear equivalent? These are all just accessing a...
Open Graph Description: Environment Editor and Version: VS Code: 1.25.1 Your primary theme: Dark+ (with corrections for punctuation inside subexpressions inside strings) Issue Description Shouldn't both of these appear eq...
X Description: Environment Editor and Version: VS Code: 1.25.1 Your primary theme: Dark+ (with corrections for punctuation inside subexpressions inside strings) Issue Description Shouldn't both of these appea...
Opengraph URL: https://github.com/PowerShell/EditorSyntax/issues/127
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sub members (properties/methods) of variables appear different behind an array reference","articleBody":"### Environment\r\n\r\n- Editor and Version: VS Code: 1.25.1\r\n- Your primary theme: Dark+ (with corrections for punctuation inside subexpressions inside strings)\r\n\r\n### Issue Description\r\nShouldn't both of these appear equivalent? These are all just accessing a property of an object.\r\n\r\n```PowerShell\r\n$dir.Extension\r\n\r\n$dir[0].Extension\r\n\r\n($dir).Extension\r\n```\r\n\r\nobviously there could be a complete expression inside the brackets.\r\n\r\n\r\n(image doesn't contain the third example line)\r\n\r\n### Expected Behavior\r\n\r\nI would have expected the properties to both be shown in the same dull yellow, but only the first one is, the others are instead white, the default when no scope match occurs.\r\n\r\nUsing VS Code's Inspect TM Scopes, the first line, results in 'entity.name.function.invocation.powershell' and 'source.powershell', where as the second only has 'source.powershell'.\r\n\r\nFortunately `${dir}.Extension` appears correct, but brings up a different issue.\r\n\r\n\r\n","author":{"url":"https://github.com/msftrncs","@type":"Person","name":"msftrncs"},"datePublished":"2018-08-11T05:12:23Z","url":"https://github.com/PowerShell/EditorSyntax/issues/127"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:44d41934-4fe8-0571-f349-764bc5ff62d8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E766:701CA:26A925:368FFE:6AFE1B4A |
| html-safe-nonce | f63ed840e9a40512d956ba986e7ae4a0831056eaaa6da25377bb1caed51de4b7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzY2OjcwMUNBOjI2QTkyNTozNjhGRkU6NkFGRTFCNEEiLCJ2aXNpdG9yX2lkIjoiMjA3NDE5NTY5Nzk1MDY2MTQ1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7396fc8e555728d6ec54f4cd04a9a9036ca0f43f9efe12a6e1e50e6c04f60cbb |
| hovercard-subject-tag | issue:349706775 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/EditorSyntax/127/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5eb0d171bec786c384cc91595ab37e11a306173d69d2fbe4c9a3163399b54e40/PowerShell/EditorSyntax/issues/127 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5eb0d171bec786c384cc91595ab37e11a306173d69d2fbe4c9a3163399b54e40/PowerShell/EditorSyntax/issues/127 |
| og:image:alt | Environment Editor and Version: VS Code: 1.25.1 Your primary theme: Dark+ (with corrections for punctuation inside subexpressions inside strings) Issue Description Shouldn't both of these appear eq... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | msftrncs |
| hostname | github.com |
| expected-hostname | github.com |
| None | d0525ab1464526bf4532a5551aa348cf100dff75ef808a96fc67a08b1d946aa9 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/EditorSyntax git https://github.com/PowerShell/EditorSyntax.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 59601299 |
| octolytics-dimension-repository_nwo | PowerShell/EditorSyntax |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 59601299 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/EditorSyntax |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fef3993a71fa20f7be8e167132fbf9619bc66e12 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width