Skip to content

How to implement my QuickAccess Service? #476

Answered by CGNonofr
erickRochaIP asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure just hiding the command from the command palette would be enough to ensure that the user can install remote extensions.

Maybe you can put the extension directory as readonly on the server side?

If you still want to just hide some command, there is no built-in way, but you can probably hack it with something like that:

import { CommandsQuickAccessProvider } from '@codingame/monaco-vscode-quickaccess-service-override/vscode/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess'

const original = CommandsQuickAccessProvider.prototype['getCommandPicks']
CommandsQuickAccessProvider.prototype['getCommandPicks'] = async function (this: CommandsQuickAccessProvider, token: Canc…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@erickRochaIP
Comment options

@CGNonofr
Comment options

@erickRochaIP
Comment options

@CGNonofr
Comment options

Answer selected by erickRochaIP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants