Title: IntelliSense/autocomplete doesn't work properly inside object literals · Issue #48915 · microsoft/TypeScript · GitHub
Open Graph Title: IntelliSense/autocomplete doesn't work properly inside object literals · Issue #48915 · microsoft/TypeScript
X Title: IntelliSense/autocomplete doesn't work properly inside object literals · Issue #48915 · microsoft/TypeScript
Description: Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.66.2 (system setup) OS Version: Microsoft Windows Version 21H1 (OS Build 19043.1526) Steps to Reproduce: Create a new object using object literal with two or...
Open Graph Description: Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.66.2 (system setup) OS Version: Microsoft Windows Version 21H1 (OS Build 19043.1526) Steps to Reproduce: Create a new...
X Description: Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.66.2 (system setup) OS Version: Microsoft Windows Version 21H1 (OS Build 19043.1526) Steps to Reproduce: Create a new...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/48915
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IntelliSense/autocomplete doesn't work properly inside object literals","articleBody":"\u003c!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->\r\n\u003c!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->\r\n\u003c!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->\r\n\u003c!-- 🔎 Search existing issues to avoid creating duplicates. -->\r\n\u003c!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->\r\n\u003c!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->\r\n\u003c!-- 🔧 Launch with `code --disable-extensions` to check. -->\r\nDoes this issue occur when all extensions are disabled?: Yes\r\n\r\n\u003c!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->\r\n\u003c!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->\r\n- VS Code Version: 1.66.2 (system setup)\r\n- OS Version: Microsoft Windows Version 21H1 (OS Build 19043.1526)\r\n\r\nSteps to Reproduce:\r\n\r\n1. Create a new object using object literal with two or more properties and a method:\r\n`let obj = { x: 10, y: [1], fun: function () {}`\r\n2. Now, inside the method, addressing to the properties using `this` keyword is recognised by the IntelliSense/autocomplete.\r\n`this.` - results in\r\n\r\n3. Change the value of a property inside the method, for instance\r\n`let obj = { x: 10, y: [1], fun: function () {`**`this.x = 5;`**`}}`\r\n4. Now, only addressing to the property `x` is recognised by the IntelliSense/autocomplete:\r\n\r\n Even though `y` property is an array, IntelliSense won't show its methods and properties:\r\n\r\n\r\n\u003cdetails>\u003csummary>System info\u003c/summary>\r\n\u003ctable>\r\n \u003ctr>\r\n \u003ctd>CPUs\u003c/td>\r\n \u003ctd>Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz (4 x 3312)\u003c/td>\r\n \u003c/tr>\r\n \u003ctr>\r\n \u003ctd>GPU Status\u003c/td>\r\n \u003ctd>2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_renderer: enabled_on video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled\u003c/td>\r\n \u003c/tr>\r\n \u003ctr>\r\n \u003ctd>Load (avg)\u003c/td>\r\n \u003ctd>\u003c/td>\r\n \u003c/tr>\r\n \u003ctr>\r\n \u003ctd>Memory (System)\u003c/td>\r\n \u003ctd>15.89GB (4.73GB free)\u003c/td>\r\n \u003c/tr>\r\n \u003ctr>\r\n \u003ctd>Process Argv\u003c/td>\r\n \u003ctd>...\\vscode issue --crash-reporter-id 85c4d140-e4d5-49f1-8a5a-495612b0049f\u003c/td>\r\n \u003c/tr>\r\n \u003ctr>\r\n \u003ctd>Screen Reader\u003c/td>\r\n \u003ctd>no\u003c/td>\r\n \u003c/tr>\r\n \u003ctr>\r\n \u003ctd>VM\u003c/td>\r\n \u003ctd>0%\u003c/td>\r\n \u003c/tr>\r\n\u003c/table>\r\n\u003c/details>\r\nExtensions: none\r\n\u003cbr>\u003c/br>\r\n\u003cdetails>\u003csummary>A/B experiment info\u003c/summary>\r\n\u003cpre>\r\nvsliv368cf:30146710\r\nvsreu685:30147344\r\npython383:30185418\r\nvspor879:30202332\r\nvspor708:30202333\r\nvspor363:30204092\r\npythonvspyl392:30443607\r\npythontb:30283811\r\npythonvspyt551:30345470\r\npythonptprofiler:30281270\r\nvshan820:30294714\r\nvstes263:30335439\r\nvscorecescf:30445987\r\npythondataviewer:30285071\r\nvscod805cf:30301675\r\npythonvspyt200:30340761\r\nbinariesv615:30325510\r\nbridge0708:30335490\r\nbridge0723:30353136\r\nvsaa593:30376534\r\nvsc1dst:30438360\r\npythonvs932:30410667\r\nwslgetstarted:30449410\r\npythonvsnew555:30457759\r\nvscscmwlcmt:30465135\r\ncppdebugcf:30475217\r\n\u003c/pre>\r\n\u003c/details>","author":{"url":"https://github.com/ArturAbdullin","@type":"Person","name":"ArturAbdullin"},"datePublished":"2022-05-02T11:25:13Z","url":"https://github.com/microsoft/TypeScript/issues/48915"}
| 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:bbcb9eb8-0979-6909-0124-ca14988b34d1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D800:237673:D54F0A:11E1BB4:6B01027E |
| html-safe-nonce | 6f43c627ac3cc15aca1943aae4e31016e2c20df62602d6da36063d0a69432716 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODAwOjIzNzY3MzpENTRGMEE6MTFFMUJCNDo2QjAxMDI3RSIsInZpc2l0b3JfaWQiOiI0MjQ4NDM5MzQxNTUyMDQyNjIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 721c0e3e05204f56f69c83b89e71a2f2cc668556e7cf337ab4da1c01d82a121e |
| hovercard-subject-tag | issue:1223018154 |
| 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/microsoft/TypeScript/48915/issue_layout |
| twitter:image | https://opengraph.githubassets.com/db16d5309edf8ff44a2110dcd2f6d13c1b7ae2d4f1ec2b14a4f3b10c27717f47/microsoft/TypeScript/issues/48915 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/db16d5309edf8ff44a2110dcd2f6d13c1b7ae2d4f1ec2b14a4f3b10c27717f47/microsoft/TypeScript/issues/48915 |
| og:image:alt | Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.66.2 (system setup) OS Version: Microsoft Windows Version 21H1 (OS Build 19043.1526) Steps to Reproduce: Create a new... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ArturAbdullin |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width