mbolotov / intellij-cypress

IntelliJ-Cypress plugin: https://plugins.jetbrains.com/plugin/13819-intellij-cypress Pro version: https://plugins.jetbrains.com/plugin/13987-cypress-support-pro
MIT License
35 stars 5 forks source link

Cypress plugin seems to override Webstorm run/debug config #73

Open vanch3d opened 2 years ago

vanch3d commented 2 years ago

When I'm right-clicking on a javascript file in the project menu, I can choose to run or debug it, possibly modifying the run configuration:

react-viewranger 06_12_2021 10_47_30 (2)

By default, the file is recognised as a .JS and gives me the node configuration:

react-viewranger – cypress json 06_12_2021 10_34_49

But when the Cypress plugin is activated, every JS files is now offering a Cypress configuration dialog, regardless of whether they are a test file (no .spec. in file name) or even just in the cypress directory

react-viewranger – cypress json 06_12_2021 10_36_04


WebStorm 2021.3
Build #WS-213.5744.224, built on November 27, 2021
Licensed to XXXXXXX
Subscription is active until XXXXXX
Runtime version: 11.0.13+7-b1751.19 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Non-Bundled Plugins:
    net.sjrx.intellij.plugins.systemdunitfiles (0.3.4)
    com.jetbrains.plugins.ini4idea (213.5744.190)
    com.intellij.apacheConfig (213.5744.190)
    mobi.hsz.idea.gitignore (4.3.0)
    com.eny.i18n (2.6.1)
    me.mbolotov.cypress (1.4.2)
    ru.adelf.idea.dotenv (2021.3.0.213)
    DBN (3.2.6411.0)
vanch3d commented 2 years ago

To add to the comment above, Cypress itself runs properly. My alternative is now to edit manually the run config by explicitly choosing the target. I haven't found a workaround, short of disactivating the plugin