gwomacks / php-debug

Atom Text Editor package for PHP debugging
MIT License
119 stars 31 forks source link

Use pending tabs instead of persistent tabs (or at least an option for it) #196

Open SimplyLinn opened 7 years ago

SimplyLinn commented 7 years ago

I looked into the documentation and it SHOULD be possible to open tabs in a pending state from an extension.

https://atom.io/docs/api/v1.12.5/Workspace#instance-open

Look at the .pending option

I'm not familiar with the plugin development of atom extensions myself so I don't feel like creating a PR as I have no way of testing any changes I do, since I don't currently have the time to look into setting up an atom development environment.

But from a quick skim trough this repository on github the change should be made on line 249 in file lib/php-debug.coffee (relative to 1da5e87)

I'd greatly appreciate if this can at least become an option. This would limit the amount of new tabs that explode all over my workspace when I use this, in all other aspect, very useful tool!

EDIT: For your convenience; Persistent link to relevant blob. https://github.com/gwomacks/php-debug/blob/1da5e87b78e89b8c23e007d260068bbb97ff6deb/lib/php-debug.coffee