Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5c119b5

Browse files
committed
fix: skip calculation of completion items if completion is disabled
1 parent 802e13c commit 5c119b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎script/provider/provider.lua‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,9 @@ m.register 'textDocument/completion' {
618618
---@async
619619
function (params)
620620
local uri = files.getRealUri(params.textDocument.uri)
621+
if not config.get(uri, 'Lua.completion.enable') then
622+
return
623+
end
621624
if not workspace.isReady(uri) then
622625
return nil
623626
end

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /