nguyenngoclongdev / vs-terminal-keeper

Easily save and recall previous terminal sessions, create new sessions, and edit or delete existing ones.
https://marketplace.visualstudio.com/items?itemName=nguyenngoclong.terminal-keeper
MIT License
13 stars 0 forks source link

Allow to specify terminal profiles #13

Closed pauloendoh closed 1 week ago

pauloendoh commented 4 weeks ago

Please describe feature/problem details and solution you'd like. My default profile is "powershell", but I always have a "JavaScript Debug Terminal" split open. I would like to open my VS Code and always have both of these terminal ready to go. If I have not missed anything, I didn't see anything related to opening other terminal profiles. It always opens the default terminal, in my case, "powershell".

Describe alternatives you've considered I tried searching for other terminal extensions for this feature, but none has it. Maybe it's not possible with the current VS Code API?

mocadev1 commented 1 week ago

I have searched for the same possibility with this extension but have found nothing, I think it would be an excellent feature. I support the idea!. 👍🏼

mocadev1 commented 1 week ago

I have searched for the same possibility with this extension but have found nothing, I think it would be an excellent feature. I support the idea!. 👍🏼

After a few searches, here's how to do it: There is no need to include it as a feature (though it'd be nice, I guess), you just need to follow the Auto Attach article in official VSCode site.

I've set it up with smart option for a NestJS project and works like a charm. 🔥

image

This anser was given following some stack overflow answers, I'll leave theme here:

pauloendoh commented 1 week ago

Oh wow @mocadev1 , I didn't know about this. This is pretty useful. The sad thing is.. I don't want to run debugger every time 😅 sometimes I want to use the regular powershell because it's faster. It's a bummer that "--inspect" flag does not work for me for some reason 🥲 But thank you for sharing anyway!

nguyenngoclongdev commented 1 week ago

@pauloendoh Sorry for the late reply. Regarding the issue with VS Code's API, you're right that currently there is no way to specify terminal profiles programmatically. This appears to be a limitation of the current API. Your best option is to wait for a future update from the VS Code team that may introduce this functionality. Let me know if you have any other questions!

@mocadev1 Thanks for your help.