If you want all scopes, then the grammar file for that language will contain them. That may be bundled with VS Code or supplied by an extension, depending on your setup.
Most of the time, people tweaking settings just want to know the scope stack at the current cursor position, which you can obtain with:
Command Palette > Developer: Inspect Editor Tokens and Scopes






















