@@ -53,8 +53,6 @@ interface DebugInfo {
53
53
let languageClient : LanguageClient | undefined ;
54
54
let languageServerDisposable : vscode . Disposable | undefined ;
55
55
let latestConfig : LanguageServerConfig | undefined ;
56
- let serverOutputChannel : vscode . OutputChannel | undefined ;
57
- let serverTraceChannel : vscode . OutputChannel | undefined ;
58
56
let crashCount = 0 ;
59
57
60
58
export function activate ( context : ExtensionContext ) {
@@ -152,12 +150,6 @@ async function startLanguageServer(context: ExtensionContext, config: LanguageSe
152
150
}
153
151
154
152
async function buildLanguageClient ( config : LanguageServerConfig ) : Promise < LanguageClient > {
155
- if ( ! serverOutputChannel ) {
156
- serverOutputChannel = vscode . window . createOutputChannel ( 'Arduino Language Server' ) ;
157
- }
158
- if ( ! serverTraceChannel ) {
159
- serverTraceChannel = vscode . window . createOutputChannel ( 'Arduino Language Server (trace)' ) ;
160
- }
161
153
const { lsPath : command , clangdPath, cliPath, board, flags, env, log } = config ;
162
154
const args = [ '-clangd' , clangdPath , '-cli' , cliPath , '-fqbn' , board . fqbn ] ;
163
155
if ( board . name ) {
@@ -196,8 +188,6 @@ async function buildLanguageClient(config: LanguageServerConfig): Promise<Langua
196
188
code2Protocol : ( uri : vscode . Uri ) : string => ( uri . scheme ? uri : uri . with ( { scheme : 'file' } ) ) . toString ( ) ,
197
189
protocol2Code : ( uri : string ) => vscode . Uri . parse ( uri )
198
190
} ,
199
- outputChannel : serverOutputChannel ,
200
- traceOutputChannel : serverTraceChannel ,
201
191
revealOutputChannelOn : RevealOutputChannelOn . Never ,
202
192
initializationFailedHandler : ( error : WebRequest . ResponseError < InitializeError > ) : boolean => {
203
193
vscode . window . showErrorMessage ( `The language server is not able to serve any features. Initialization failed: ${ error } .` ) ;
0 commit comments