message: register getConnectionStatus before using
  fix
diff: @@ -614,27 +614,6 @@ export default class ConnectionManagerPlugin implements IExtensionPlugin {
  public register(extension: IExtension) {
  if (this.client) return; // do not register twice
  - this.client = extension.client;
  - this.context = extension.context;
  - this.errorHandler = extension.errorHandler;
  - this.explorer = new ConnectionExplorer(extension);
  - this.explorer.onConnectionDidChange(() => {
  - const active = this.explorer.getActive();
  - statusBar.setText(active ? active.name : null);
  - });
  - this.client.onRequest(ConnectionDataUpdatedRequest, this.handler_connectionDataUpdated);
  - this.client.onNotification(ProgressNotificationStart, this.handler_progressStart);
  - this.client.onNotification(ProgressNotificationComplete, this.handler_progressComplete);
  -
  - // extension stuff
  - this.context.subscriptions.push(
  - (this.resultsWebview = new ResultsWebviewManager(this.context, this.client)),
  - (this.settingsWebview = new SettingsWebview(this.context)),
  - statusBar,
  - workspace.onDidCloseTextDocument(this.onDidOpenOrCloseTextDocument),
  - workspace.onDidOpenTextDocument(this.onDidOpenOrCloseTextDocument),
  - window.onDidChangeActiveTextEditor(this.changeTextEditorHandler),
  - );
  // register extension commands
  extension.registerCommand(`addConnection`, this.ext_addConnection)
  @@ -662,6 +641,28 @@ export default class ConnectionManagerPlugin implements IExtensionPlugin {
  .registerCommand(`copyTextFromTreeItem`, this.ext_copyTextFromTreeItem)
  .registerCommand(`getChildrenForTreeItem`, this.ext_getChildrenForTreeItem);
  + this.client = extension.client;
  + this.context = extension.context;
  + this.errorHandler = extension.errorHandler;
  + this.explorer = new ConnectionExplorer(extension);
  + this.explorer.onConnectionDidChange(() => {
  + const active = this.explorer.getActive();
  + statusBar.setText(active ? active.name : null);
  + });
  + this.client.onRequest(ConnectionDataUpdatedRequest, this.handler_connectionDataUpdated);
  + this.client.onNotification(ProgressNotificationStart, this.handler_progressStart);
  + this.client.onNotification(ProgressNotificationComplete, this.handler_progressComplete);
  +
  + // extension stuff
  + this.context.subscriptions.push(
  + (this.resultsWebview = new ResultsWebviewManager(this.context, this.client)),
  + (this.settingsWebview = new SettingsWebview(this.context)),
  + statusBar,
  + workspace.onDidCloseTextDocument(this.onDidOpenOrCloseTextDocument),
  + workspace.onDidOpenTextDocument(this.onDidOpenOrCloseTextDocument),
  + window.onDidChangeActiveTextEditor(this.changeTextEditorHandler),
  + );
  +
  if (window.activeTextEditor) {
  setTimeout(() => {
  this.changeTextEditorHandler(window.activeTextEditor);
  