Creates an instance of ToggleScopeCommand.
The application context.
The scope to toggle.
OptionaltextViewModel: TextViewModelOptional text view model for text-off warnings.
OptionaldisplayService: DisplayServiceOptional display service for label scope management.
Command to toggle a specific scope in the application context. For label scopes (TRACE_LABEL, FIGURE_LABEL), uses DisplayService to properly manage the focus stack and preserve the previous scope.