Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit 8acee96

Browse files
ortaacao
authored andcommitted
Adds logs to the restart command
1 parent 0e2235d commit 8acee96

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/extension.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,9 @@ export function activate(context: ExtensionContext) {
8989
outputChannel: outputChannel,
9090
outputChannelName: "GraphQL Language Server",
9191
revealOutputChannelOn: RevealOutputChannelOn.Never,
92-
initializationFailedHandler:
93-
CustomInitializationFailedHandler(outputChannel),
92+
initializationFailedHandler: CustomInitializationFailedHandler(
93+
outputChannel,
94+
),
9495
}
9596

9697
const client = new LanguageClient(
@@ -177,8 +178,11 @@ export function activate(context: ExtensionContext) {
177178
context.subscriptions.push(commandContentProvider)
178179

179180
commands.registerCommand("vscode-graphql.restart", async () => {
181+
outputChannel.appendLine(`Stopping GraphQL LSP`)
180182
await client.stop()
183+
outputChannel.appendLine(`Restarting GraphQL LSP`)
181184
await client.start()
185+
outputChannel.appendLine(`GraphQL LSP restarted`)
182186
})
183187
}
184188

0 commit comments

Comments
 (0)