Skip to content

Commit fceb876

Browse files
committed
U224-018 Replace ASCII with Ada.Characters.Latin_1
1 parent 10517fe commit fceb876

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/ada/lsp-ada_handlers.adb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ package body LSP.Ada_Handlers is
102102
-- Convenient constants
103103

104104
Line_Feed : constant Character := Ada.Characters.Latin_1.LF;
105+
Backspace : constant Character := Ada.Characters.Latin_1.BS;
105106

106107
function "+" (Text : Ada.Strings.UTF_Encoding.UTF_8_String)
107108
return LSP.Types.LSP_String renames
@@ -697,7 +698,7 @@ package body LSP.Ada_Handlers is
697698
Response.result.capabilities.signatureHelpProvider :=
698699
(True,
699700
(triggerCharacters => (True, Empty_Vector & (+",") & (+"(")),
700-
retriggerCharacters => (True, Empty_Vector & (+(1 => ASCII.BS))),
701+
retriggerCharacters => (True, Empty_Vector & (+(1 => Backspace))),
701702
workDoneProgress => LSP.Types.None));
702703
Response.result.capabilities.completionProvider :=
703704
(True,
@@ -2665,7 +2666,7 @@ package body LSP.Ada_Handlers is
26652666
-- Check if the trigger character is a backspace
26662667
((not Value.context.Value.triggerCharacter.Is_Set)
26672668
or else Value.context.Value.triggerCharacter.Value /=
2668-
(+(1 => ASCII.BS))))
2669+
(+(1 => Backspace))))
26692670
then
26702671
-- At this point, we are filtering the previous signatures:
26712672
-- * Don't recompute the list of signature

0 commit comments

Comments
 (0)