Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS IntelliSense only picks up JSDoc @inherits rule in class definition but not on children or instances #41256

Open
manix opened this issue Oct 26, 2020 · 1 comment
Labels
Domain: JSDoc Relates to JSDoc parsing and type generation Needs Investigation This issue needs a team member to investigate its status.
Milestone

Comments

@manix
Copy link

manix commented Oct 26, 2020

TS Template added by @mjbvz

TypeScript Version: 4.1.0-dev.20201026

Search Terms

  • jsdoc

  • VSCode Version: 1.50.1
  • OS Version: 18.04

Steps to Reproduce:

I apologize if this is not the correct place for this issue, I tried hard finding the repository that is responsible for js intellisense.

  1. Create a new js file
  2. Copy below code into the file
function Mixin1 (base) {
  return class extends base {
    foo() {}
  }
}

function Mixin2 (base) {
  return class extends base {
    bar() {}
  }
}

class IntermediateDummyClass extends Mixin1(Object) {}

/**
 * @implements {IntermediateDummyClass}
 */
class Composite extends Mixin2(IntermediateDummyClass) {
  
}

let c = new Composite;

c.
  1. Observe autocomplete suggestions - within Composite class both foo and bar are suggested

image

However when instantiated or extended only bar is picked up.

image

image

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

@manix manix changed the title JS IntelliSense only picks up JSDoc @inherits rule in class definition but not on instances JS IntelliSense only picks up JSDoc @inherits rule in class definition but not on children or instances Oct 26, 2020
@mjbvz mjbvz transferred this issue from microsoft/vscode Oct 26, 2020
@mjbvz mjbvz removed their assignment Oct 26, 2020
@RyanCavanaugh RyanCavanaugh added the Needs Investigation This issue needs a team member to investigate its status. label Nov 4, 2020
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Nov 4, 2020
@RyanCavanaugh RyanCavanaugh added the Domain: JSDoc Relates to JSDoc parsing and type generation label Nov 4, 2020
@manix
Copy link
Author

manix commented Dec 28, 2021

bump?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Domain: JSDoc Relates to JSDoc parsing and type generation Needs Investigation This issue needs a team member to investigate its status.
Projects
None yet
Development

No branches or pull requests

3 participants