public async startClient()

in src/clientHandler.ts [37:55]


  public async startClient(): Promise<vscode.Disposable> {
    console.log('Starting client');

    this.tfClient = await this.createTerraformClient();
    const disposable = this.tfClient.client.start();

    await this.tfClient.client.onReady();

    this.reporter.sendRawTelemetryEvent('startClient', {
      usePathToBinary: `${this.lsPath.hasCustomBinPath()}`,
    });

    const initializeResult = this.tfClient.client.initializeResult;
    if (initializeResult !== undefined) {
      this.commands = initializeResult.capabilities.executeCommandProvider?.commands ?? [];
    }

    return disposable;
  }