Skip to content

Commit c609f3b

Browse files
committed
Merge branch 'topic/request-priorities' into 'master'
Adjust priorities of requests and notifications See merge request eng/ide/ada_language_server!2055
2 parents 7d1463a + 2067136 commit c609f3b

8 files changed

+12
-7
lines changed

source/ada/lsp-ada_driver.adb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ with LSP.Server_Notifications.DidDeleteFiles;
106106
with LSP.Server_Notifications.DidOpen;
107107
with LSP.Server_Notifications.DidRenameFiles;
108108
with LSP.Server_Notifications.Exits;
109+
with LSP.Server_Notifications.Initialized;
109110
with LSP.Server_Requests.Declaration;
110111
with LSP.Server_Requests.Definition;
111112
with LSP.Server_Requests.DocumentSymbol;
@@ -634,6 +635,10 @@ begin
634635
(LSP.Server_Requests.Initialize.Request'Tag,
635636
Ada_Fence_Message_Handler'Unchecked_Access);
636637

638+
Server.Register_Handler
639+
(LSP.Server_Notifications.Initialized.Notification'Tag,
640+
Ada_Fence_Message_Handler'Unchecked_Access);
641+
637642
Server.Register_Handler
638643
(LSP.Server_Notifications.DidOpen.Notification'Tag,
639644
Ada_Fence_Message_Handler'Unchecked_Access);

source/ada/lsp-ada_handlers-executables_commands.ads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private
4141

4242
overriding function Priority (Self : Command)
4343
return LSP.Server_Jobs.Job_Priority
44-
is (LSP.Server_Jobs.Immediate);
44+
is (LSP.Server_Jobs.High);
4545

4646
for Command'External_Tag use "als-executables";
4747

source/ada/lsp-ada_handlers-gpr_dependencies_commands.ads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private
6464

6565
overriding
6666
function Priority (Self : Command) return LSP.Server_Jobs.Job_Priority
67-
is (LSP.Server_Jobs.Immediate);
67+
is (LSP.Server_Jobs.High);
6868

6969
for Command'External_Tag use "als-gpr-dependencies";
7070

source/ada/lsp-ada_handlers-mains_commands.ads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private
4141

4242
overriding function Priority (Self : Command)
4343
return LSP.Server_Jobs.Job_Priority
44-
is (LSP.Server_Jobs.Immediate);
44+
is (LSP.Server_Jobs.High);
4545

4646
for Command'External_Tag use "als-mains";
4747

source/ada/lsp-ada_handlers-other_file_commands.ads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private
4343

4444
overriding function Priority (Self : Command)
4545
return LSP.Server_Jobs.Job_Priority
46-
is (LSP.Server_Jobs.Immediate);
46+
is (LSP.Server_Jobs.High);
4747

4848
for Command'External_Tag use "als-other-file";
4949

source/ada/lsp-ada_handlers-project_attributes_commands.ads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private
4646

4747
overriding function Priority (Self : Command)
4848
return LSP.Server_Jobs.Job_Priority
49-
is (LSP.Server_Jobs.Immediate);
49+
is (LSP.Server_Jobs.High);
5050

5151
for Command'External_Tag use "als-get-project-attribute-value";
5252

source/ada/lsp-ada_handlers-show_dependencies_commands.ads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private
4747

4848
overriding function Priority (Self : Command)
4949
return LSP.Server_Jobs.Job_Priority
50-
is (LSP.Server_Jobs.Immediate);
50+
is (LSP.Server_Jobs.High);
5151

5252
for Command'External_Tag use "als-show-dependencies";
5353

source/ada/lsp-ada_handlers-source_dirs_commands.ads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ private
4242

4343
overriding function Priority (Self : Command)
4444
return LSP.Server_Jobs.Job_Priority
45-
is (LSP.Server_Jobs.Immediate);
45+
is (LSP.Server_Jobs.High);
4646

4747
for Command'External_Tag use "als-source-dirs";
4848

0 commit comments

Comments
 (0)