Skip to content

Commit 0cde301

Browse files
committed
U910-020 Partial response for Workspace_Symbols request
1 parent e5582f7 commit 0cde301

File tree

6 files changed

+32
-6
lines changed

6 files changed

+32
-6
lines changed

source/client/lsp-clients.adb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ package body LSP.Clients is
520520
Token : LSP.Types.LSP_Number_Or_String) is
521521
begin
522522
case Handler.Get_Progress_Type (Token) is
523-
when LSP.Client_Notification_Receivers.Params =>
523+
when LSP.Client_Notification_Receivers.ProgressParams =>
524524
declare
525525
Message : Progress_Notification;
526526
begin

source/protocol/lsp-client_notification_receivers.ads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ with LSP.Messages;
2222

2323
package LSP.Client_Notification_Receivers is
2424

25-
type Progress_Value_Kind is (Params, SymbolInformation);
25+
type Progress_Value_Kind is (ProgressParams, SymbolInformation);
2626

2727
type Client_Notification_Receiver is limited interface;
2828
-- Receiver of notification on LSP client side

source/server/lsp-message_loggers.adb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,20 @@ package body LSP.Message_Loggers is
11891189
& Ada.Containers.Count_Type'Image (Params.diagnostics.Length));
11901190
end On_Publish_Diagnostics;
11911191

1192+
-----------------------
1193+
-- Get_Progress_Type --
1194+
-----------------------
1195+
1196+
overriding function Get_Progress_Type
1197+
(Self : access Message_Logger;
1198+
Token : LSP.Types.LSP_Number_Or_String)
1199+
return LSP.Client_Notification_Receivers.Progress_Value_Kind
1200+
is
1201+
pragma Unreferenced (Self, Token);
1202+
begin
1203+
return LSP.Client_Notification_Receivers.ProgressParams;
1204+
end Get_Progress_Type;
1205+
11921206
-----------------------
11931207
-- On_Progress_Begin --
11941208
-----------------------

source/server/lsp-message_loggers.ads

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,7 @@ private
346346
overriding function Get_Progress_Type
347347
(Self : access Message_Logger;
348348
Token : LSP.Types.LSP_Number_Or_String)
349-
return LSP.Client_Notification_Receivers.Progress_Value_Kind is
350-
(LSP.Client_Notification_Receivers.Params);
349+
return LSP.Client_Notification_Receivers.Progress_Value_Kind;
351350

352351
overriding procedure On_Progress
353352
(Self : access Message_Logger;

source/server/lsp-servers.adb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,20 @@ package body LSP.Servers is
619619
Self.Send_Notification (Message);
620620
end On_Publish_Diagnostics;
621621

622+
-----------------------
623+
-- Get_Progress_Type --
624+
-----------------------
625+
626+
overriding function Get_Progress_Type
627+
(Self : access Server;
628+
Token : LSP.Types.LSP_Number_Or_String)
629+
return LSP.Client_Notification_Receivers.Progress_Value_Kind
630+
is
631+
pragma Unreferenced (Self, Token);
632+
begin
633+
return LSP.Client_Notification_Receivers.ProgressParams;
634+
end Get_Progress_Type;
635+
622636
-----------------
623637
-- On_Progress --
624638
-----------------

source/server/lsp-servers.ads

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ package LSP.Servers is
107107
overriding function Get_Progress_Type
108108
(Self : access Server;
109109
Token : LSP.Types.LSP_Number_Or_String)
110-
return LSP.Client_Notification_Receivers.Progress_Value_Kind is
111-
(LSP.Client_Notification_Receivers.Params);
110+
return LSP.Client_Notification_Receivers.Progress_Value_Kind;
112111

113112
overriding procedure On_Progress
114113
(Self : access Server;

0 commit comments

Comments
 (0)