Skip to content

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

@mjbvz

Description

@mjbvz

From @kleinfreund on December 24, 2017 9:36

  • VSCode Version: Code 1.19.1 (0759f77bb8d86658bc935a10a64f6182c5a1eeba, 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.

Copied from original issue: microsoft/vscode#40775

Metadata

Metadata

Assignees

No one assigned

    Labels

    Effort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Help WantedYou can do thisSuggestionAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions