This PR adds a throttle to how often the document validation happens.
I discovered we needed something like this while I was doing some script programming and watching the logs. I was adding comments to variables and custom commands when I noticed that on every single character that I typed, we called out to nushell to revalidate the document.
I found the main throttle function in jakt's extension but adjusted the timeout to 1500. I'm not sure 1500 is correct. The idea is only to update after a certain duration versus every character. We'll have to tune this over time.
This PR adds a throttle to how often the document validation happens.
I discovered we needed something like this while I was doing some script programming and watching the logs. I was adding comments to variables and custom commands when I noticed that on every single character that I typed, we called out to nushell to revalidate the document.
I found the main throttle function in jakt's extension but adjusted the timeout to 1500. I'm not sure 1500 is correct. The idea is only to update after a certain duration versus every character. We'll have to tune this over time.