How to use the abap-adt-api.session_types.stateless function in abap-adt-api

To help you get started, we’ve selected a few abap-adt-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github marcellourbani / vscode_abap_remote_fs / client / src / adt / AdtServer.ts View on Github external
public async relogin() {
    this.currentCancel.cancel()
    this.currentCancel = new CancellationTokenSource()
    this.currentCall = Promise.resolve()
    if (this.mainClient.stateful === session_types.stateful) {
      try {
        this.mainClient.stateful = session_types.stateless
        // juts in case I have pending locks...
        await this.mainClient.logout()
      } catch (error) {
        // ignore
      }
      await this.mainClient.login()
    }
  }