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

Javascript types within classes are not correctly detected #60969

Open
jasonpolites opened this issue Jan 5, 2025 · 1 comment
Open

Javascript types within classes are not correctly detected #60969

jasonpolites opened this issue Jan 5, 2025 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@jasonpolites
Copy link

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

  • VS Code Version: 1.96.2
  • OS Version: Windows_NT x64 10.0.190045

Steps to Reproduce:

  1. Open a new VSCode instance without any extensions
  2. Paste the basic code below into a new file
  3. Mouse over the class property bar to reveal its type as any
  4. Mouse over the baz property outside the class to reveal its (correct) type as String

Example Code

class Foo {
  constructor() {
    this.bar = new String();
  }
}
const baz = new String();

Image
Image

@mjbvz mjbvz transferred this issue from microsoft/vscode Jan 13, 2025
@mjbvz mjbvz removed their assignment Jan 13, 2025
@RyanCavanaugh
Copy link
Member

Duplicate #54414

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants