Skip to content

Commit 890aebb

Browse files
author
automatic-merge
committed
Merge remote branch 'origin/master' into edge
2 parents a0f9878 + 3a82005 commit 890aebb

File tree

4 files changed

+260
-0
lines changed

4 files changed

+260
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
project Default is
2+
end Default;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
procedure Main is
2+
begin
3+
Stand
4+
end Main;
Lines changed: 253 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,253 @@
1+
[
2+
{
3+
"comment": [
4+
"This test checks that we don't have any exception when computing",
5+
"completion's documentation for the 'Standard' package."
6+
]
7+
},
8+
{
9+
"start": {
10+
"cmd": ["${ALS}"]
11+
}
12+
},
13+
{
14+
"send": {
15+
"request": {
16+
"jsonrpc": "2.0",
17+
"id": 1,
18+
"method": "initialize",
19+
"params": {
20+
"processId": 1901882,
21+
"rootUri": "$URI{.}",
22+
"capabilities": {
23+
"workspace": {
24+
"applyEdit": true,
25+
"workspaceEdit": {
26+
"documentChanges": true,
27+
"resourceOperations": ["rename"]
28+
}
29+
},
30+
"textDocument": {
31+
"synchronization": {},
32+
"completion": {
33+
"dynamicRegistration": true,
34+
"completionItem": {
35+
"snippetSupport": false,
36+
"documentationFormat": ["plaintext", "markdown"],
37+
"resolveSupport": {
38+
"properties": ["detail", "documentation"]
39+
}
40+
}
41+
},
42+
"hover": {},
43+
"signatureHelp": {},
44+
"declaration": {},
45+
"definition": {},
46+
"typeDefinition": {},
47+
"implementation": {},
48+
"documentSymbol": {
49+
"hierarchicalDocumentSymbolSupport": true
50+
},
51+
"codeAction": {
52+
"codeActionLiteralSupport": {
53+
"codeActionKind": {
54+
"valueSet": ["<HAS>", "quickfix"]
55+
}
56+
}
57+
},
58+
"formatting": {
59+
"dynamicRegistration": false
60+
},
61+
"rangeFormatting": {
62+
"dynamicRegistration": false
63+
},
64+
"onTypeFormatting": {
65+
"dynamicRegistration": false
66+
},
67+
"publishDiagnostics": {
68+
"relatedInformation": true
69+
},
70+
"foldingRange": {
71+
"lineFoldingOnly": true
72+
}
73+
},
74+
"experimental": {
75+
"advanced_refactorings": ["add_parameter"]
76+
}
77+
}
78+
}
79+
},
80+
"wait": [
81+
{
82+
"id": 1,
83+
"result": {
84+
"capabilities": {
85+
"textDocumentSync": 2,
86+
"completionProvider": {
87+
"triggerCharacters": [".", ",", "'", "("],
88+
"resolveProvider": true
89+
},
90+
"hoverProvider": true,
91+
"signatureHelpProvider": {
92+
"triggerCharacters": [",", "("],
93+
"retriggerCharacters": ["\b"]
94+
},
95+
"declarationProvider": true,
96+
"definitionProvider": true,
97+
"typeDefinitionProvider": true,
98+
"implementationProvider": true,
99+
"referencesProvider": true,
100+
"documentHighlightProvider": true,
101+
"documentSymbolProvider": true,
102+
"codeActionProvider": {
103+
"workDoneProgress": false,
104+
"codeActionKinds": ["quickfix", "refactor.rewrite"],
105+
"resolveProvider": false
106+
},
107+
"workspaceSymbolProvider": true,
108+
"documentFormattingProvider": true,
109+
"documentRangeFormattingProvider": true,
110+
"documentOnTypeFormattingProvider": {
111+
"firstTriggerCharacter": "\n"
112+
},
113+
"renameProvider": {
114+
"prepareProvider": true
115+
},
116+
"foldingRangeProvider": true,
117+
"executeCommandProvider": {
118+
"commands": ["<HAS>", "als-other-file"]
119+
},
120+
"callHierarchyProvider": true,
121+
"semanticTokensProvider": {
122+
"legend": {
123+
"tokenTypes": [],
124+
"tokenModifiers": []
125+
},
126+
"range": true,
127+
"full": true
128+
},
129+
"workspace": {},
130+
"alsReferenceKinds": ["<HAS>", "reference"]
131+
}
132+
}
133+
}
134+
]
135+
}
136+
},
137+
{
138+
"send": {
139+
"request": {
140+
"jsonrpc": "2.0",
141+
"method": "initialized"
142+
},
143+
"wait": []
144+
}
145+
},
146+
{
147+
"send": {
148+
"request": {
149+
"jsonrpc": "2.0",
150+
"method": "workspace/didChangeConfiguration",
151+
"params": {
152+
"settings": {
153+
"ada": {
154+
"scenarioVariables": {},
155+
"defaultCharset": "ISO-8859-1",
156+
"enableDiagnostics": false,
157+
"followSymlinks": false,
158+
"documentationStyle": "gnat",
159+
"namedNotationThreshold": 3,
160+
"foldComments": false
161+
}
162+
}
163+
}
164+
},
165+
"wait": []
166+
}
167+
},
168+
{
169+
"send": {
170+
"request": {
171+
"jsonrpc": "2.0",
172+
"method": "textDocument/didOpen",
173+
"params": {
174+
"textDocument": {
175+
"uri": "$URI{main.adb}",
176+
"languageId": "Ada",
177+
"version": 0,
178+
"text": "procedure Main is\nbegin\n Stand\nend Main;\n"
179+
}
180+
}
181+
},
182+
"wait": []
183+
}
184+
},
185+
{
186+
"send": {
187+
"request": {
188+
"jsonrpc": "2.0",
189+
"id": 4,
190+
"method": "textDocument/completion",
191+
"params": {
192+
"textDocument": {
193+
"uri": "$URI{main.adb}"
194+
},
195+
"position": {
196+
"line": 2,
197+
"character": 8
198+
},
199+
"context": {
200+
"triggerKind": 1
201+
}
202+
}
203+
},
204+
"wait": [
205+
{
206+
"jsonrpc": "2.0",
207+
"id": 4,
208+
"result": {
209+
"isIncomplete": false,
210+
"items": [
211+
{
212+
"label": "Standard",
213+
"kind": 9,
214+
"detail": "package Standard",
215+
"documentation": "at __standard (1:1)",
216+
"sortText": "100&00001Standard"
217+
}
218+
]
219+
}
220+
}
221+
]
222+
}
223+
},
224+
{
225+
"send": {
226+
"request": {
227+
"jsonrpc": "2.0",
228+
"method": "textDocument/didClose",
229+
"params": {
230+
"textDocument": {
231+
"uri": "$URI{main.adb}"
232+
}
233+
}
234+
},
235+
"wait": []
236+
}
237+
},
238+
{
239+
"send": {
240+
"request": {
241+
"jsonrpc": "2.0",
242+
"id": 5,
243+
"method": "shutdown"
244+
},
245+
"wait": []
246+
}
247+
},
248+
{
249+
"stop": {
250+
"exit_code": 0
251+
}
252+
}
253+
]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
title: 'completion.standard_package'

0 commit comments

Comments
 (0)