Skip to content

Commit

Permalink
expose latest response for creating compat layer
Browse files Browse the repository at this point in the history
  • Loading branch information
hrsh7th committed Dec 18, 2024
1 parent 3403e2e commit 98e8b9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/cmp/source.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ local char = require('cmp.utils.char')
---@field public source any
---@field public cache cmp.Cache
---@field public revision integer
---@field public response? lsp.CompletionResponse|nil
---@field public incomplete boolean
---@field public is_triggered_by_symbol boolean
---@field public entries cmp.Entry[]
Expand Down Expand Up @@ -350,6 +351,7 @@ source.complete = function(self, ctx, callback)
end
---@type lsp.CompletionResponse
response = response or {}
self.response = response

self.incomplete = response.isIncomplete or false

Expand Down

0 comments on commit 98e8b9d

Please sign in to comment.