Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/2 Fixes/4868.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ensure the `Python` output panel does not steal focus when there errors in the `Language Server`.
3 changes: 2 additions & 1 deletion src/client/activation/languageServer/analysisOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { inject, injectable, named } from 'inversify';
import * as path from 'path';
import { CancellationToken, CompletionContext, ConfigurationChangeEvent, Disposable, Event, EventEmitter, OutputChannel, Position, TextDocument } from 'vscode';
import { LanguageClientOptions, ProvideCompletionItemsSignature } from 'vscode-languageclient';
import { LanguageClientOptions, ProvideCompletionItemsSignature, RevealOutputChannelOn } from 'vscode-languageclient';
import { IWorkspaceService } from '../../common/application/types';
import { isTestExecution, PYTHON_LANGUAGE, STANDARD_OUTPUT_CHANNEL } from '../../common/constants';
import { traceDecorators, traceError } from '../../common/logger';
Expand Down Expand Up @@ -120,6 +120,7 @@ export class LanguageServerAnalysisOptions implements ILanguageServerAnalysisOpt
configurationSection: PYTHON_LANGUAGE
},
outputChannel: this.output,
revealOutputChannelOn: RevealOutputChannelOn.Never,
initializationOptions: {
interpreter: {
properties
Expand Down