We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49f0ef9 commit 4b5ec95Copy full SHA for 4b5ec95
source/ada/lsp-ada_handlers.adb
@@ -4139,10 +4139,10 @@ package body LSP.Ada_Handlers is
4139
4140
-- Check the 'useCompletionSnippets' flag to see if we should use
4141
-- snippets in completion (if the client supports it).
4142
- if Ada.Has_Field (useCompletionSnippets) then
4143
- Self.Use_Completion_Snippets :=
4144
- Self.Completion_Snippets_Enabled
4145
- and then Ada.Get (useCompletionSnippets);
+ if not Self.Completion_Snippets_Enabled then
+ Self.Use_Completion_Snippets := False;
+ elsif Ada.Has_Field (useCompletionSnippets) then
+ Self.Use_Completion_Snippets := Ada.Get (useCompletionSnippets);
4146
end if;
4147
4148
-- Retrieve the policy for displaying type hierarchy on navigation
0 commit comments