@@ -27,9 +27,10 @@ class ConstantsAutocompleteResponse(AbstractApiClass):
27
27
diagnosticsThreshold (int): The max number of diagnostics to show.
28
28
diagnosticEachThreshold (int): The max number of characters to show for each diagnostic type.
29
29
numVsCodeSuggestions (int): The number of VS Code suggestions to show.
30
+ minReindexingInterval (int): The minimum interval between reindexes in ms.
30
31
"""
31
32
32
- def __init__ (self , client , maxPendingRequests = None , acceptanceDelay = None , debounceDelay = None , recordUserAction = None , validateSuggestion = None , validationLinesThreshold = None , maxTrackedRecentChanges = None , diffThreshold = None , derivativeThreshold = None , defaultSurroundingLines = None , maxTrackedVisitChanges = None , selectionCooldownMs = None , viewingCooldownMs = None , maxLines = None , editCooldownMs = None , scrollDebounceMs = None , lspDeadline = None , diagnosticsThreshold = None , diagnosticEachThreshold = None , numVsCodeSuggestions = None ):
33
+ def __init__ (self , client , maxPendingRequests = None , acceptanceDelay = None , debounceDelay = None , recordUserAction = None , validateSuggestion = None , validationLinesThreshold = None , maxTrackedRecentChanges = None , diffThreshold = None , derivativeThreshold = None , defaultSurroundingLines = None , maxTrackedVisitChanges = None , selectionCooldownMs = None , viewingCooldownMs = None , maxLines = None , editCooldownMs = None , scrollDebounceMs = None , lspDeadline = None , diagnosticsThreshold = None , diagnosticEachThreshold = None , numVsCodeSuggestions = None , minReindexingInterval = None ):
33
34
super ().__init__ (client , None )
34
35
self .max_pending_requests = maxPendingRequests
35
36
self .acceptance_delay = acceptanceDelay
@@ -51,11 +52,12 @@ def __init__(self, client, maxPendingRequests=None, acceptanceDelay=None, deboun
51
52
self .diagnostics_threshold = diagnosticsThreshold
52
53
self .diagnostic_each_threshold = diagnosticEachThreshold
53
54
self .num_vs_code_suggestions = numVsCodeSuggestions
55
+ self .min_reindexing_interval = minReindexingInterval
54
56
self .deprecated_keys = {}
55
57
56
58
def __repr__ (self ):
57
- repr_dict = {f'max_pending_requests' : repr (self .max_pending_requests ), f'acceptance_delay' : repr (self .acceptance_delay ), f'debounce_delay' : repr (self .debounce_delay ), f'record_user_action' : repr (self .record_user_action ), f'validate_suggestion' : repr (self .validate_suggestion ), f'validation_lines_threshold' : repr (self .validation_lines_threshold ), f'max_tracked_recent_changes' : repr (self .max_tracked_recent_changes ), f'diff_threshold' : repr (self .diff_threshold ), f'derivative_threshold' : repr (self .derivative_threshold ), f'default_surrounding_lines' : repr (
58
- self .default_surrounding_lines ), f' max_tracked_visit_changes' : repr ( self . max_tracked_visit_changes ), f'selection_cooldown_ms' : repr (self .selection_cooldown_ms ), f'viewing_cooldown_ms' : repr (self .viewing_cooldown_ms ), f'max_lines' : repr (self .max_lines ), f'edit_cooldown_ms' : repr (self .edit_cooldown_ms ), f'scroll_debounce_ms' : repr (self .scroll_debounce_ms ), f'lsp_deadline' : repr (self .lsp_deadline ), f'diagnostics_threshold' : repr (self .diagnostics_threshold ), f'diagnostic_each_threshold' : repr (self .diagnostic_each_threshold ), f'num_vs_code_suggestions' : repr (self .num_vs_code_suggestions )}
59
+ repr_dict = {f'max_pending_requests' : repr (self .max_pending_requests ), f'acceptance_delay' : repr (self .acceptance_delay ), f'debounce_delay' : repr (self .debounce_delay ), f'record_user_action' : repr (self .record_user_action ), f'validate_suggestion' : repr (self .validate_suggestion ), f'validation_lines_threshold' : repr (self .validation_lines_threshold ), f'max_tracked_recent_changes' : repr (self .max_tracked_recent_changes ), f'diff_threshold' : repr (self .diff_threshold ), f'derivative_threshold' : repr (self .derivative_threshold ), f'default_surrounding_lines' : repr (self . default_surrounding_lines ), f'max_tracked_visit_changes' : repr (
60
+ self .max_tracked_visit_changes ), f'selection_cooldown_ms' : repr (self .selection_cooldown_ms ), f'viewing_cooldown_ms' : repr (self .viewing_cooldown_ms ), f'max_lines' : repr (self .max_lines ), f'edit_cooldown_ms' : repr (self .edit_cooldown_ms ), f'scroll_debounce_ms' : repr (self .scroll_debounce_ms ), f'lsp_deadline' : repr (self .lsp_deadline ), f'diagnostics_threshold' : repr (self .diagnostics_threshold ), f'diagnostic_each_threshold' : repr (self .diagnostic_each_threshold ), f'num_vs_code_suggestions' : repr (self .num_vs_code_suggestions ), f'min_reindexing_interval' : repr ( self . min_reindexing_interval )}
59
61
class_name = "ConstantsAutocompleteResponse"
60
62
repr_str = ',\n ' .join ([f'{ key } ={ value } ' for key , value in repr_dict .items (
61
63
) if getattr (self , key , None ) is not None and key not in self .deprecated_keys ])
@@ -69,5 +71,5 @@ def to_dict(self):
69
71
dict: The dict value representation of the class parameters
70
72
"""
71
73
resp = {'max_pending_requests' : self .max_pending_requests , 'acceptance_delay' : self .acceptance_delay , 'debounce_delay' : self .debounce_delay , 'record_user_action' : self .record_user_action , 'validate_suggestion' : self .validate_suggestion , 'validation_lines_threshold' : self .validation_lines_threshold , 'max_tracked_recent_changes' : self .max_tracked_recent_changes , 'diff_threshold' : self .diff_threshold , 'derivative_threshold' : self .derivative_threshold , 'default_surrounding_lines' : self .default_surrounding_lines ,
72
- 'max_tracked_visit_changes' : self .max_tracked_visit_changes , 'selection_cooldown_ms' : self .selection_cooldown_ms , 'viewing_cooldown_ms' : self .viewing_cooldown_ms , 'max_lines' : self .max_lines , 'edit_cooldown_ms' : self .edit_cooldown_ms , 'scroll_debounce_ms' : self .scroll_debounce_ms , 'lsp_deadline' : self .lsp_deadline , 'diagnostics_threshold' : self .diagnostics_threshold , 'diagnostic_each_threshold' : self .diagnostic_each_threshold , 'num_vs_code_suggestions' : self .num_vs_code_suggestions }
74
+ 'max_tracked_visit_changes' : self .max_tracked_visit_changes , 'selection_cooldown_ms' : self .selection_cooldown_ms , 'viewing_cooldown_ms' : self .viewing_cooldown_ms , 'max_lines' : self .max_lines , 'edit_cooldown_ms' : self .edit_cooldown_ms , 'scroll_debounce_ms' : self .scroll_debounce_ms , 'lsp_deadline' : self .lsp_deadline , 'diagnostics_threshold' : self .diagnostics_threshold , 'diagnostic_each_threshold' : self .diagnostic_each_threshold , 'num_vs_code_suggestions' : self .num_vs_code_suggestions , 'min_reindexing_interval' : self . min_reindexing_interval }
73
75
return {key : value for key , value in resp .items () if value is not None and key not in self .deprecated_keys }
0 commit comments