From 5c119b5477e65e08c240f2d194864d5729ef05fd Mon Sep 17 00:00:00 2001 From: Jan-Luca Vettel Date: Sun, 30 Mar 2025 21:08:02 +0200 Subject: [PATCH 1/2] fix: skip calculation of completion items if completion is disabled --- script/provider/provider.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/provider/provider.lua b/script/provider/provider.lua index 38aa73031..6d3d7d04d 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -618,6 +618,9 @@ m.register 'textDocument/completion' { ---@async function (params) local uri = files.getRealUri(params.textDocument.uri) + if not config.get(uri, 'Lua.completion.enable') then + return + end if not workspace.isReady(uri) then return nil end From e1d2b3840a9c49c9c8b39f74388afbffc7241ed9 Mon Sep 17 00:00:00 2001 From: Jan-Luca Vettel Date: Sun, 30 Mar 2025 21:13:51 +0200 Subject: [PATCH 2/2] chore: modify changelog --- changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.md b/changelog.md index 7c92fd523..b5b8b74c0 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,7 @@ ## Unreleased +* `FIX` return no completions if completion is disabled ## 3.13.9 `2025-3-13`