You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If TypeScript class has Angular dedocators like: @input(), @output() and @ViewChild() u-ctags won't index its methods. If in below example those three decorators are removed, u-tags produces correct result which is in expected results. List of Angular decorators.
The text was updated successfully, but these errors were encountered:
nkahe
changed the title
Angular decorators in class causes u-ctags not to index it's methods
Angular decorators in class causes u-ctags not to index its methods
Oct 5, 2023
nkahe
changed the title
Angular decorators in class causes u-ctags not to index its methods
Angular decorators in Typescript class causes u-ctags not to index its methods
Oct 5, 2023
masatake
changed the title
Angular decorators in Typescript class causes u-ctags not to index its methods
Typescript: Angular decorators in class causes u-ctags not to index its methods
Dec 18, 2023
eventEmitter example.ts /^ @Output() eventEmitter = new EventEmitter<string>();$/;" p class:exampleClass exampleClass example.ts /^export class exampleClass implements OnInit, AfterViewInit {$/;" c id example.ts /^ @Input() public id: string = '';$/;" p class:exampleClass
This means that all class members after the first inline intialized member (in this case eventEmitter) are not taged.
If you omit the trailing () in the two inline intializations, i.e.
@Output() eventEmitter = new EventEmitter<string>; @ViewChild('sortArchived', { static: false }) sortArchived = new MatSort;
all tags will be generated.
Perhaps the title of this issue should be changed to somewhat like in the stackoverflow question mentioned above, i.e. "ctags ignores typescript class members after class member inline initialization with function call"
If TypeScript class has Angular dedocators like: @input(), @output() and @ViewChild() u-ctags won't index its methods. If in below example those three decorators are removed, u-tags produces correct result which is in expected results.
List of Angular decorators.
The command line you used to run ctags:
The content of input file:
The tags output you are not satisfied with:
The tags output you expect:
The version of ctags:
How do you get ctags binary:
The text was updated successfully, but these errors were encountered: