diff options
Diffstat (limited to 'internal/lsp/completion_state.go')
| -rw-r--r-- | internal/lsp/completion_state.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/lsp/completion_state.go b/internal/lsp/completion_state.go index 9f034ab..692eafe 100644 --- a/internal/lsp/completion_state.go +++ b/internal/lsp/completion_state.go @@ -6,6 +6,9 @@ import ( "time" ) +// completionState manages the LRU completion cache, pending completions, and +// throttle timing. Its stateMu is independent of Server.mu — the two locks +// are never held simultaneously, so there is no ordering constraint. type completionState struct { stateMu sync.RWMutex compCache map[string]string |
