Sets the state of the extension.
The state is used to determine which commands are available.
The state is also used to update the status bar and command context.
Opens a webview panel showing the command history of the extension.
The panel shows all commands executed by the user, along with their parameters, result and any errors.
The panel is retained when hidden to prevent loss of history.
Constructor for the CommandManager class.