Skip to content

Commit 26c1fef

Browse files
Change priorities of GPR-based commands
These commands can be executed immediately to unblock the Ada & SPARK VS Code extension when some Ada file editors are already opened. This allows to speed-up the extension's initialization, triggering the indexing sooner. For eng/ide/ada_language_server#1473
1 parent ea839bb commit 26c1fef

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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.Low);
44+
is (LSP.Server_Jobs.Immediate);
4545

4646
for Command'External_Tag use "als-executables";
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.Low);
46+
is (LSP.Server_Jobs.Immediate);
4747

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

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.Low);
50+
is (LSP.Server_Jobs.Immediate);
5151

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

0 commit comments

Comments
 (0)