Replies: 3 comments 1 reply
-
It's not exactly what you're looking for, but @madskristensen has an extension that does something similar, and he uses the localized command name and converts it to "words". So I guess it's not possible to get that information via the APIs. |
Beta Was this translation helpful? Give feedback.
-
Thanks @reduckted . I found via VSShortcutsManager that there is indeed a cache of ctmenus, I tried decompiling VS's various dlls, and I found a "private" service used by the new code/feature search window that I can use: IVsFastFetchCommands. Out of curiosity, I found various IVs interfaces that don't have a corresponding SVs, why is that? I couldn't find a way to instantiate them. Are they used internally in the COM dlls? |
Beta Was this translation helpful? Give feedback.
-
Sometimes a single service exposes many interfaces. In that case, there will be no SV for the interface. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm replicating SublimeText's command palette for Visual Studio, and as such I want to show a list of commands.
However, the easiest way to list commands will only return a command's ID string, eg.
Edit.FormatDocument
. I implemented a manual list of command metadata to display a friendly text & icon per command, but that's quite annoying to build.I'm investigating the nuclear option, which is parsing the VSCT out of every VS packages registered to build the commands list, but I don't really want to do that from within an extension.
Which leads me to think that surely Visual Studio maintains such a list itself, or at least a cache of VSCT(s) somewhere. Would anyone be aware of it?
Beta Was this translation helpful? Give feedback.
All reactions