-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
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 more properties and a method:
let obj = { x: 10, y: [1], fun: function () {}
- Now, inside the method, addressing to the properties using
this
keyword is recognised by the IntelliSense/autocomplete.
this.
- results in
- Change the value of a property inside the method, for instance
let obj = { x: 10, y: [1], fun: function () {
this.x = 5;
}}
- Now, only addressing to the property
x
is recognised by the IntelliSense/autocomplete:
Even thoughy
property is an array, IntelliSense won't show its methods and properties:
System info
CPUs | Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz (4 x 3312) |
GPU Status | 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 |
Load (avg) | |
Memory (System) | 15.89GB (4.73GB free) |
Process Argv | ...\vscode issue --crash-reporter-id 85c4d140-e4d5-49f1-8a5a-495612b0049f |
Screen Reader | no |
VM | 0% |
A/B experiment info
vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvspyl392:30443607 pythontb:30283811 pythonvspyt551:30345470 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscorecescf:30445987 pythondataviewer:30285071 vscod805cf:30301675 pythonvspyt200:30340761 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 vsc1dst:30438360 pythonvs932:30410667 wslgetstarted:30449410 pythonvsnew555:30457759 vscscmwlcmt:30465135 cppdebugcf:30475217
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue