Various minor fixes in preparation for new release.
This commit is contained in:
@@ -25,18 +25,19 @@ class command:
|
||||
"""Check if this delta was already handled by tab completion to avoid duplicates"""
|
||||
if "tabCompletion" not in self.env["commandBuffer"]:
|
||||
return False
|
||||
|
||||
|
||||
tab_state = self.env["commandBuffer"]["tabCompletion"]
|
||||
|
||||
|
||||
# Check if this exact delta was processed recently by tab completion
|
||||
if (tab_state.get("lastProcessedDelta") == delta_text and
|
||||
if (tab_state.get("lastProcessedDelta") == delta_text and
|
||||
tab_state.get("lastProcessedTime")):
|
||||
|
||||
# Only suppress if processed within the last 100ms to avoid stale suppression
|
||||
|
||||
# Only suppress if processed within the last 50ms to avoid stale suppression
|
||||
# Reduced from 100ms to minimize false positives with rapid multi-line updates
|
||||
time_since_processed = time.time() - tab_state["lastProcessedTime"]
|
||||
if time_since_processed <= 0.1:
|
||||
if time_since_processed <= 0.05:
|
||||
return True
|
||||
|
||||
|
||||
return False
|
||||
|
||||
def run(self):
|
||||
|
||||
Reference in New Issue
Block a user