mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
auto reveal only in dev mode (#21880)
This commit is contained in:
@@ -4,9 +4,10 @@
|
|||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import { IConfig, Events, LogLevel } from '@microsoft/ads-service-downloader';
|
import { IConfig, Events, LogLevel } from '@microsoft/ads-service-downloader';
|
||||||
import { ServerOptions, TransportKind } from 'vscode-languageclient';
|
import { RevealOutputChannelOn, ServerOptions, TransportKind } from 'vscode-languageclient';
|
||||||
import * as Constants from './constants';
|
import * as Constants from './constants';
|
||||||
import * as vscode from 'vscode';
|
import * as vscode from 'vscode';
|
||||||
|
import * as azdata from 'azdata';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import { getCommonLaunchArgsAndCleanupOldLogFiles, getConfigTracingLevel, getOrDownloadServer, getParallelMessageProcessingConfig, TracingLevel } from './utils';
|
import { getCommonLaunchArgsAndCleanupOldLogFiles, getConfigTracingLevel, getOrDownloadServer, getParallelMessageProcessingConfig, TracingLevel } from './utils';
|
||||||
import { TelemetryReporter, LanguageClientErrorHandler } from './telemetry';
|
import { TelemetryReporter, LanguageClientErrorHandler } from './telemetry';
|
||||||
@@ -198,6 +199,8 @@ function getClientOptions(context: AppContext): ClientOptions {
|
|||||||
ErrorDiagnosticsProvider.asFeature(context),
|
ErrorDiagnosticsProvider.asFeature(context),
|
||||||
TdeMigrationService.asFeature(context)
|
TdeMigrationService.asFeature(context)
|
||||||
],
|
],
|
||||||
outputChannel: outputChannel
|
outputChannel: outputChannel,
|
||||||
|
// Automatically reveal the output channel only in dev mode, so that the users are not impacted and issues can still be caught during development.
|
||||||
|
revealOutputChannelOn: azdata.env.quality === azdata.env.AppQuality.dev ? RevealOutputChannelOn.Error : RevealOutputChannelOn.Never
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user