Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit e9a8078

Browse files
author
user
committed
upstream: expose latest response for creating compat layer
1 parent a584e53 commit e9a8078

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/cmp/source.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ local char = require('cmp.utils.char')
1515
---@field public source any
1616
---@field public cache cmp.Cache
1717
---@field public revision integer
18+
---@field public response? lsp.CompletionResponse|nil
1819
---@field public incomplete boolean
1920
---@field public is_triggered_by_symbol boolean
2021
---@field public entries cmp.Entry[]
@@ -370,6 +371,7 @@ source.complete = function(self, ctx, callback)
370371
end
371372
---@type lsp.CompletionResponse
372373
response = response or {}
374+
self.response = response
373375

374376
self.incomplete = response.isIncomplete or false
375377

0 commit comments

Comments
 (0)