Chakroun-Anas / turbo-console-log

597 stars 141 forks source link

Extension ~ feature ~ file path and line number in log message #140

Closed shwao closed 1 year ago

shwao commented 3 years ago

Adds the option includeFilePathAndLineNum that includes the current file path relative to the workspace directory with the line number joined with a colon so that it can be opened in the editor.

Eg. if your current opened project is /Users/user-name/Developer/turbo-console-log and the file path is /Users/user-name/Developer/turbo-console-log/src/test.ts and you are on line 5 it will log src/test.ts:5. This way it can be opened in the editor and go directly to the logged line.

https://user-images.githubusercontent.com/63549997/126907632-9969a7a6-12bb-4163-9da7-64043285d350.mov

I could not run the tests because an ESlint config is missing? I don't really understand the test setup sorry. 😬

Chakroun-Anas commented 1 year ago

Done, thank you so much @shwao