bluelovers / idea-run-typescript

IntelliJ IDEA (and WebStorm...) plugin to support 'TypeScript' as a run configuration
https://plugins.jetbrains.com/plugin/10841-run-configuration-for-typescript
76 stars 14 forks source link

Moving over to proper debuggable configs #14

Closed Garethp closed 4 years ago

Garethp commented 4 years ago

Test Before Merging

This is a big change, try it before you merge

What it does

Using gradle is a big change. It will let you launch Webstorm with your plugin automatically. It also lets you put debug points in your plugin, so you don't have to use the log for info any more. Changing this line will let you specify what IDE to open it with

If you have questions, please ask

bluelovers commented 4 years ago

image

how to use?

Garethp commented 4 years ago

Updated. See below:

build: build

output: output

Run: Change this line to the directory of your webstorm

Then click run

bluelovers commented 4 years ago

image

with 2 by this pr, it start twice and debug point is not work

image

with 1 (old way)

image

Garethp commented 4 years ago

Only starts once for me. This is my build. Try it? idea-run-typescript-2020.08.20.0.zip

first second

bluelovers commented 4 years ago

hmm use ur build, i still get twice

image


and somehow, my build and ur build all failed on ansistyle in my webstorm 2020.2

image

image

but work on idea 2019.3.5, 2020.2.1 rc

image

image


hmm but also work on sandbox of webstorm

image

bluelovers commented 4 years ago

i think code is merge into current master now, if see any miss , tell me xd

bluelovers commented 4 years ago

also add hidden feature

when add nodejs.console.use.terminal into env var will overwrite ide registry

https://github.com/bluelovers/idea-run-typescript/blob/975b4b14c90539f63e9867e39d3e75d8c63779dd/src/io/plugin/tsnode/lib/cmd/NodeJSCommandLine.kt#L29

bluelovers commented 4 years ago

@Garethp twice bug is from esm-ts-node