Skip to content

Commit 10f1138

Browse files
committed
fix: Ignore console.info warning
1 parent 4a63c7d commit 10f1138

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/LanguageClient.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ function LanguageClient ({
5151

5252
useEffect(() => {
5353
if (willShutdown && restartAllowed) {
54+
// eslint-disable-next-line no-console
5455
console.info('Restarting language client because the current instance will be shutdown')
5556
setCounter(v => v + 1)
5657
setWillShutdown(false)
@@ -67,6 +68,7 @@ function LanguageClient ({
6768
return
6869
}
6970

71+
// eslint-disable-next-line no-console
7072
console.info(`Starting language server for language ${id}`)
7173
const languageClient = createLanguageClientManager(id, infrastructure, clientOptions, clientManagerOptions)
7274
languageClientRef.current = languageClient
@@ -82,9 +84,11 @@ function LanguageClient ({
8284
return () => {
8385
errorDisposable.dispose()
8486
statusChangeDisposable.dispose()
87+
// eslint-disable-next-line no-console
8588
console.info('Shutting down language server')
8689
clearTimeout(startTimeout)
8790
languageClient.dispose().then(() => {
91+
// eslint-disable-next-line no-console
8892
console.info('Language server shut down')
8993
}, err => {
9094
console.error('Unable to dispose language client', err)

0 commit comments

Comments
 (0)