async toggleQodana()

in vscode/qodana/src/core/extension.ts [127:141]


    async toggleQodana() {
        if (this.languageClient) {
            if (this.languageClient.isRunning()) {
                await this.languageClient.stop().catch(() => {
                    // ignore
                });
            } else {
                if (this.languageClient.state === State.Stopped) {
                    await this.languageClient.start().catch(() => {
                        // ignore
                    });
                }
            }
        }
    };