microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
101.22k stars 12.52k forks source link

context help of angular2-project does not show up by tsserver #12082

Closed nimo23 closed 8 months ago

nimo23 commented 8 years ago

TypeScript Version: 2.0.6 Angular Version: 2.1.1

Code

// content assist of Component only shows the text "import Component"
// instead of API-Documentation of "Component"
import { Component } from '@angular/core';

@Component({
  selector: 'my-app',
  template: '<h1>My First Angular App</h1>'
})
export class AppComponent { }

Expected behavior: Content Assist should provide API-Documentaion for the actual object.

Actual behavior:

TypeScript tsserver cannot retrieve the documentation coming from angular2 (v 2.1.1). (more information: https://github.com/angelozerr/typescript.java/issues/100).

rubiesonthesky commented 8 months ago

This is not a problem anymore in Typescript 4.9.5, VS Code 1.87.1 and Angular 15. I don't think has been a problem in last 4 years at least when using VS Code.