We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10f1138 commit 2bfc9f3Copy full SHA for 2bfc9f3
src/LanguageClient.tsx
@@ -45,9 +45,9 @@ function LanguageClient ({
45
const [willShutdown, setWillShutdown] = useState(false)
46
const [counter, setCounter] = useState(1)
47
48
- const isUserInactive = useIsUserActive(userInactivityDelay)
49
- const shouldShutdownLanguageClientForInactivity = useShouldShutdownLanguageClient(isUserInactive, userInactivityShutdownDelay)
50
- const restartAllowed = !isUserInactive
+ const isUserActive = useIsUserActive(userInactivityDelay)
+ const shouldShutdownLanguageClientForInactivity = useShouldShutdownLanguageClient(isUserActive, userInactivityShutdownDelay)
+ const restartAllowed = !isUserActive
51
52
useEffect(() => {
53
if (willShutdown && restartAllowed) {
0 commit comments