Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1f29dca

Browse filesBrowse files
author
Akos Kitta
committed
Removed the output channels for the LS.
Ref: arduino/arduino-pro-ide#421 Signed-off-by: Akos Kitta <kittaakos@typefox.io>
1 parent ce396ea commit 1f29dca
Copy full SHA for 1f29dca

File tree

Expand file treeCollapse file tree

1 file changed

+0
-10
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-10
lines changed

‎src/extension.ts

Copy file name to clipboardExpand all lines: src/extension.ts
-10Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.