Microsoft/vscode
在 GitHub 查看Support `when` clause for `terminal.profiles` contribution point
Open
#183,354 建立於 2023年5月24日
feature-requesthelp wantedterminal-profiles
倉庫指標
- Star
- (74,848 star)
- PR 合併指標
- (平均合併 11小時 43分鐘) (30 天內合併 1,000 個 PR)
描述
I am in the process of implementing a virtual terminal using ExtensionTerminalOptions for my extension. The terminal can only be created if some conditions are met. I would like to hide the terminal profile from the menu if the conditions aren't true. Can you add support for a when clause in the terminal.profiles contribution point so this becomes possible? Thanks!