Skip to content

Commit 6992d02

Browse files
committed
refactor: Rename variable for clarity
1 parent 1579277 commit 6992d02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/LanguageClient.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function LanguageClient ({
5353
const [counter, setCounter] = useState(1)
5454

5555
const isUserInactive = useIsUserActive(userInactivityDelay)
56-
const shouldShutdownLanguageClient = useShouldShutdownLanguageClient(isUserInactive, userInactivityShutdownDelay)
56+
const shouldShutdownLanguageClientForInactivity = useShouldShutdownLanguageClient(isUserInactive, userInactivityShutdownDelay)
5757
const restartAllowed = !isUserInactive
5858

5959
useEffect(() => {
@@ -67,7 +67,7 @@ function LanguageClient ({
6767
useEffect(() => {
6868
setWillShutdown(false)
6969

70-
if (shouldShutdownLanguageClient) {
70+
if (shouldShutdownLanguageClientForInactivity) {
7171
onDidChangeStatus({
7272
status: 'inactivityShutdown'
7373
})
@@ -97,7 +97,7 @@ function LanguageClient ({
9797
console.error('Unable to dispose language client', err)
9898
})
9999
}
100-
}, [getSecurityToken, id, languageServerUrl, libraryUrls, sessionId, counter, useMutualizedProxy, shouldShutdownLanguageClient, onError, onDidChangeStatus, onWillShutdown])
100+
}, [getSecurityToken, id, languageServerUrl, libraryUrls, sessionId, counter, useMutualizedProxy, shouldShutdownLanguageClientForInactivity, onError, onDidChangeStatus, onWillShutdown])
101101

102102
return null
103103
}

0 commit comments

Comments
 (0)