Skip to content

get (or set) function shows description from *both* get and set function on hover #40775

@kleinfreund

Description

@kleinfreund
  • VSCode Version: Code 1.19.1 (0759f77, 2017-12-19T09:41:01.414Z)
  • OS Version: Linux x64 4.13.0-21-generic
  • Extensions: Extensions are disabled

Steps to Reproduce:

  1. View the following code with language mode set to JavaScript

    class Test {
      constructor() {
        this.value;
      }
    
      /** Getter text */
      get value() {
        return this.value;
      }
    
      /** Setter text */
      set value(value) {
        this.value = value;
      }
    }
  2. Hover over the value getter (or setter) function

Expected behavior:

Getter text (or Setter text) appears in the box as the function description.

Actual behavior:

Getter text Setter text appears in the box as the function description.

Metadata

Metadata

Assignees

Labels

javascriptJavaScript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions