From 29d939525e9dff094083254c4a0c26a00018d5bb Mon Sep 17 00:00:00 2001 From: Damjan Cvetko Date: Fri, 21 Mar 2025 10:00:21 +0100 Subject: [PATCH] fix: do not show popup on LSP errors --- CHANGELOG.md | 4 ++++ src/extension.ts | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60ea803..342f056 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## [unreleased] + +- Do not popup warning dialog on LSP errors + ## [1.6.0] - 2024-12-05 - Bundle phpactor 2024.11.28.1 diff --git a/src/extension.ts b/src/extension.ts index 33bd472..3adc4f3 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -1,4 +1,10 @@ -import { LanguageClient, ServerOptions, LanguageClientOptions, StreamInfo } from 'vscode-languageclient' +import { + LanguageClient, + ServerOptions, + LanguageClientOptions, + StreamInfo, + RevealOutputChannelOn, +} from 'vscode-languageclient' import { EvaluatableExpressionRequest } from './protocol' import * as vscode from 'vscode' @@ -143,6 +149,7 @@ function createClient(config: PhpactorConfig): LanguageClient { { language: LanguageID, scheme: 'untitled' }, ], initializationOptions: config.config, + revealOutputChannelOn: RevealOutputChannelOn.Never, } languageClient = new LanguageClient('phpactor', 'Phpactor Language Server', serverOptions, clientOptions)