Microsoft/vscode

Support `when` clause for `terminal.profiles` contribution point

Open

#183.354 geöffnet am 24. Mai 2023

Auf GitHub ansehen
 (4 Kommentare) (5 Reaktionen) (1 zugewiesene Person)TypeScript (10.221 Forks)batch import
feature-requesthelp wantedterminal-profiles

Repository-Metriken

Stars
 (74.848 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11h 43m) (1.000 gemergte PRs in 30 T)

Beschreibung

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!

Contributor Guide