Skip to content

Commit fc09a10

Browse files
ogorodnikreznikmm
authored andcommitted
Fix Predefined_Completion
1 parent 49e2f89 commit fc09a10

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

source/ada/lsp-ada_completions-aspects.adb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ package body LSP.Ada_Completions.Aspects is
5353
(Prefix => Prefix,
5454
Result => Result.items);
5555
end;
56+
5657
elsif Node.Kind in Libadalang.Common.Ada_Aspect_Spec_Range then
5758
LSP.Predefined_Completion.Get_Aspects
5859
(Prefix => VSS.Strings.Empty_Virtual_String,

source/ada/lsp-ada_driver.adb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ with LSP.Ada_Handlers.Refactor.Suppress_Seperate;
5858
with LSP.Ada_Handlers.Suspend_Executions;
5959
with LSP.GNATCOLL_Tracers;
6060
with LSP.Memory_Statistics;
61+
with LSP.Predefined_Completion;
6162
with LSP.Servers;
6263
with LSP.Stdio_Streams;
6364

@@ -286,7 +287,8 @@ begin
286287

287288
if not VSS.Command_Line.Is_Specified (Language_GPR_Option) then
288289
-- Load predefined completion items
289-
pragma Assert (not VSS.Command_Line.Is_Specified (Language_GPR_Option));
290+
LSP.Predefined_Completion.Load_Predefined_Completion_Db (Server_Trace);
291+
Register_Commands;
290292
end if;
291293

292294
Ada.Text_IO.Set_Output (Ada.Text_IO.Standard_Error);
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
title: 'completion.aspects'
2-
# Skip till 3.17 ready
3-
skip:
4-
- ['XFAIL', 'True']

0 commit comments

Comments
 (0)