Skip to content

Commit 16db578

Browse files
authored
Merge pull request #9 from arduino/remove-ls-output-channels
Removed the output channels for the LS.
2 parents ce396ea + 1f29dca commit 16db578

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/extension.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ interface DebugInfo {
5353
let languageClient: LanguageClient | undefined;
5454
let languageServerDisposable: vscode.Disposable | undefined;
5555
let latestConfig: LanguageServerConfig | undefined;
56-
let serverOutputChannel: vscode.OutputChannel | undefined;
57-
let serverTraceChannel: vscode.OutputChannel | undefined;
5856
let crashCount = 0;
5957

6058
export function activate(context: ExtensionContext) {
@@ -152,12 +150,6 @@ async function startLanguageServer(context: ExtensionContext, config: LanguageSe
152150
}
153151

154152
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-
}
161153
const { lsPath: command, clangdPath, cliPath, board, flags, env, log } = config;
162154
const args = ['-clangd', clangdPath, '-cli', cliPath, '-fqbn', board.fqbn];
163155
if (board.name) {
@@ -196,8 +188,6 @@ async function buildLanguageClient(config: LanguageServerConfig): Promise<Langua
196188
code2Protocol: (uri: vscode.Uri): string => (uri.scheme ? uri : uri.with({ scheme: 'file' })).toString(),
197189
protocol2Code: (uri: string) => vscode.Uri.parse(uri)
198190
},
199-
outputChannel: serverOutputChannel,
200-
traceOutputChannel: serverTraceChannel,
201191
revealOutputChannelOn: RevealOutputChannelOn.Never,
202192
initializationFailedHandler: (error: WebRequest.ResponseError<InitializeError>): boolean => {
203193
vscode.window.showErrorMessage(`The language server is not able to serve any features. Initialization failed: ${error}.`);

0 commit comments

Comments
 (0)