Skip to content

Commit f1e2407

Browse files
replace output channel with logoutputchannel
1 parent 8b6d451 commit f1e2407

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

editors/code/src/main.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ export async function activate(_context: ExtensionContext) {
1616
command: 'pglsp_new'
1717
};
1818

19-
// const outputChannel = window.createOutputChannel('postgres_lsp');
20-
2119
const serverOptions: ServerOptions = {
2220
run,
2321
debug: run
2422
};
2523

24+
const outputChannel = window.createOutputChannel('Postgres LSP', { log: true });
25+
2626
// Options to control the language client
2727
const clientOptions: LanguageClientOptions = {
2828
// Register the server for plain text documents
2929
documentSelector: [{ scheme: 'file', language: 'sql' }],
30-
traceOutputChannel: window.createOutputChannel('Postgres LSP Tracing', { log: true })
30+
outputChannel
3131
};
3232

3333
// Create the language client and start the client.
@@ -42,5 +42,6 @@ export function deactivate(): Thenable<void> | undefined {
4242
if (!client) {
4343
return undefined;
4444
}
45+
4546
return client.stop();
4647
}

0 commit comments

Comments
 (0)