Skip to content

JSDoc for getter/setter accessors get merged #37716

@Shinigami92

Description

@Shinigami92
  • VSCode Version: 1.43.2
  • OS Version: Win 10 / macOS Catalina

Steps to Reproduce:

class X {
  _test = "";

  /**
   * Test read
   */
  get test() {
    return this._test;
  }

  /**
   * Test write
   */
  set test(value) {
    this._test = value;
  }
}

const x = new X();

x.test = ""; // Hovering over `test` shows "Test read Test write", Expected "Test write"
console.log(x.test); // Hovering over `test` shows "Test read Test write", Expected "Test read"

Does this issue occur when all extensions are disabled?: Yes

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions