Home > Mobile >  I can't get the description part in NestJs [SOLVED]
I can't get the description part in NestJs [SOLVED]

Time:11-27

click here to see the screenshot

Hello everyone. In the trainings I watch, this explanation comes out of everyone, but it does not come out to me. I tried all the plugins but couldn't make it. How can I handle this. Thanks in advance.

Hello everyone. In the trainings I watch, this explanation comes out of everyone, but it does not come out to me. I tried all the plugins but couldn't make it. How can I handle this. Thanks in advance.

PS

I use vscode. I've tried all the plugins related to NestJs. In all tutorials, this comes out when they move the mouse cursor between the e.g. Controller ( | ).

CodePudding user response:

This is JSDocs and is coming from the node_modules/@nestjs/common/decorators/core/controller.decorator.d.ts

If you Ctrl Click on @Controller (Go to Definition) you should get:

/**
 * Decorator that marks a class as a Nest controller that can receive inbound
 * requests and produce responses.
 *
 * An HTTP Controller responds to inbound HTTP Requests and produces HTTP Responses.
 * It defines a class that provides the context for one or more related route
 * handlers that correspond to HTTP request methods and associated routes
 * for example `GET /api/profile`, `POST /users/resume`.
 *
 * A Microservice Controller responds to requests as well as events, running over
 * a variety of transports [(read more here)](https://docs.nestjs.com/microservices/basics).
 * It defines a class that provides a context for one or more message or event
 * handlers.
 *
 * @see [Controllers](https://docs.nestjs.com/controllers)
 * @see [Microservices](https://docs.nestjs.com/microservices/basics#request-response)
 *
 * @publicApi
 */
export declare function Controller(): ClassDecorator;

This means that you have @nestjs/common package installed in your local repository.

Ensure you have no conflicting VS Code Extensions/Snippets/Plugins installed.

  • Related