@codingame/monaco-languageclient-react
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -72,7 +72,11 @@ import { useEffect, useRef, useState } from 'react'; | ||
clearTimeout(startTimeout); | ||
languageClient.dispose().then(() => { | ||
// eslint-disable-next-line no-console | ||
console.info('Language server shut down'); | ||
}, err => { | ||
console.error('Unable to dispose language client', err); | ||
setTimeout(() => { | ||
// Close in a timeout so the languageclient is not disposed at the exact same time as a model | ||
// Or a error is displayed because it fails to send the didClose notification | ||
languageClient.dispose().then(() => { | ||
// eslint-disable-next-line no-console | ||
console.info('Language server shut down'); | ||
}, err => { | ||
console.error('Unable to dispose language client', err); | ||
}); | ||
}); | ||
@@ -79,0 +83,0 @@ }; |
{ | ||
"name": "@codingame/monaco-languageclient-react", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "Monaco Editor React component", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
17737
169