Skip to content

Is comment out in terminal.contribution.ts the right way to forbid terminal? #6138

Answered by code-asher
liweijian asked this question in Q&A
Discussion options

You must be logged in to vote

If you just want to remove the menu item that looks good to me.

There are other ways to spawn a terminal that are not covered by commenting those two lines out though like workbench.action.terminal.toggleTerminal (default keybinding is Ctrl+backquote) or by opening the panel and navigating to the terminal tab or going through the welcome screen so if you want to remove every way to get to the terminal you will have to comment out a bunch more.

Technically an advanced user could load their own client-side JavaScript to get around this; to completely block the terminal you could comment out the terminal channel on the server side: https://github.com/microsoft/vscode/blob/ae11805eecd3958dda5…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by liweijian
Comment options

You must be logged in to vote
1 reply
@code-asher
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants