Giter VIP home page Giter VIP logo

jetbrains-nestjs's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

jetbrains-nestjs's Issues

[Feature] - Improve navigation between command usage and handler implementation for CQRS projects

@SylvainMarty Thank you for reporting this feature request in KartanHQ/intellij-nestjs/ repo . I'm launching a NestJS plugin. I'm planning to include this functionality into this plugin. Unfortunately, the maintainer of KartanHQ/intellij-nestjs/ repository does not have enough bandwidth to add more features or accept PRs at this time.


Is your feature request related to a problem? Please describe.

We use CQRS (@nestjs/cqrs) extensively in our NestJS monorepo project and many of our developers complains about navigation between CQRS files being not very efficient nor natural.

The main complaint was how slow it was to navigate from the usage of Command/Query to the dedicated Handler which does the work under the hood.

Here is an "example" of the problem:

// 1. The dev see this code somwhere:
const command = new MyCommand();
await this.commandBus.execute(command);

// 2. The dev wants to go to the handler which implement the command logic
// First, it needs to do "Go to implementation" (Ctrl + B) to see the command class definition
// Then it needs to "Go to Declaration and usage" (Ctrl + B) to see all the usages and select the one which relates to the handler
Since our code is mostly CQRS implementations, this mechanic needs to happen a lot of time and is not very efficient.

Aside that, we really like CQRS, we just want to be more efficient using it. :-)

Describe the solution you'd like

I'm not sure what the best solution would be but I was thinking that it would be easier to have a shortcut/option to go to the implementation of a command (aka its handler).
I think it may be possible to get this information since all commands are references by its handler in the @CommandHandler(MyCommand) annotation.

Describe alternatives you've considered

I searched online to see if there were any plugins or shortcut in Intellij based IDE to achieve this but so far, I only found a feature specific to Resharper: Resharper > Navigate To > Consuming APIs.
Sadly this feature is not present on our IDE (PHPStorm).

Additional context

I never developed plugins for Intellij but I have experience in Java/Kotlin and I'm interested in submitting a PR if you think it can be handled by this plugin. 😃

[Bug] - "OK" button persist disabled after empty filename input submit try, even if add filename later

Describe the bug

When creating a service or module with context menu new > nest service, when you press OK with an empty second input the error "filename required" appears and the OK button gets disabled. Even after adding a filename, the error and the disabling of the OK button persist.

Platform

  • IDE Details: WebStorm 2024.1 EAP
    Build #WS-241.8651, built on January 12, 2024
    Licensed to WebStorm EAP user: Роман Knils
    Expiration date: February 11, 2024
    Runtime version: 17.0.9+7-b1087.7 amd64
    VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
    Linux 6.5.0-14-generic
    GC: G1 Young Generation, G1 Old Generation
    Memory: 16384M
    Cores: 4
    Registry:
    ide.experimental.ui=true
    Non-Bundled Plugins:
    com.github.dinbtechit.jetbrainsnestjs (0.0.2)
    Current Desktop: ubuntu:GNOME

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.