Skip to content

Commit 4bca68c

Browse files
committed
fix: Allow larger requests from LSP client
1 parent 8bab8aa commit 4bca68c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

torth_ls.torth

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,11 +571,13 @@ function parse_file_to_state file_uri:str state:State :
571571
functions state State->functions
572572
end
573573

574+
const MAX_REQUEST_LENGTH 10000 end
575+
574576
function main :
575577
State.init take state in
576578

577579
while True do
578-
state 4096 input handle_request
580+
state MAX_REQUEST_LENGTH input handle_request
579581

580582
// Cache the current state
581583
// TODO: Only parse when there are changes

0 commit comments

Comments
 (0)