File tree Expand file tree Collapse file tree 37 files changed +99
-94
lines changed
S314-015.refactor_change_parameter_mode_0
S314-015.refactor_move_parameter_0
S314-015.refactor_remove_parameter_0
SC28-001.named.parameters.0
T318-086.suppress.separates.0
TB12-017.named.parameters.0
TB12-017.named.parameters.1
U416-030.refactor_change_parameter_mode_0
U416-030.refactor_remove_parameter_0
completion.invisible.insert_with_clause.child_package
completion.invisible.insert_with_clause.dotted_names
completion.invisible.insert_with_clause.invisible_unit
completion.invisible.insert_with_clause.renamed_units
completion.invisible.insert_with_clause
completion.invisible.runtime
completion.invisible.unit_filtering.dotted_parent
completion.invisible.unit_filtering
implementation.aggregates
refactoring_add_parameter
refactoring_change_parameters_default_values/S314-015
refactoring_change_parameters_type/S314-015
refactoring_imports_commands
U511-009.refactoring.import_with_use
suggestions_with_nested_packages
refactoring_introduce_parameter/SA11-051
refactoring_pull_up_declaration/V207-019
refactoring_replace_type/Q817-007
refactoring_sort_dependencies Expand file tree Collapse file tree 37 files changed +99
-94
lines changed Original file line number Diff line number Diff line change @@ -729,8 +729,11 @@ package body LSP.Ada_Contexts is
729729 end Pretty_Printer_Setup ;
730730
731731 begin
732+ -- Use the full path for the ID to avoid conflict when project are
733+ -- sharing the same name. For example for GNATTest stubs.
732734 Self.Id := VSS.Strings.Conversions.To_Virtual_String
733- (String (Root.Name));
735+ (URIs.Conversions.From_File
736+ (String (Root.Path_Name.Value)));
734737 Self.Tree := Tree.Reference;
735738 Self.Charset := Ada.Strings.Unbounded.To_Unbounded_String (Charset);
736739
Original file line number Diff line number Diff line change @@ -299,6 +299,8 @@ package body LSP.Ada_Handlers.Project_Loading is
299299 Root => View,
300300 Charset => VSS.Strings.Conversions.To_UTF_8_String (Charset));
301301
302+ Self.Tracer.Trace (" Prepend Context Id: "
303+ & VSS.Strings.Conversions.To_UTF_8_String (C.Id));
302304 Self.Contexts.Prepend (C);
303305 end Create_Context_For_Non_Aggregate ;
304306
Original file line number Diff line number Diff line change 293293 "title" : " " ,
294294 "command" : " als-refactor-change-parameter-mode" ,
295295 "arguments" : [{
296- "context" : " Default " ,
296+ "context" : " $URI{default.gpr} " ,
297297 "where" : {
298298 "textDocument" : {
299299 "uri" : " $URI{main.adb}"
316316 "title" : " " ,
317317 "command" : " als-refactor-change-parameter-mode" ,
318318 "arguments" : [{
319- "context" : " Default " ,
319+ "context" : " $URI{default.gpr} " ,
320320 "where" : {
321321 "textDocument" : {
322322 "uri" : " $URI{main.adb}"
339339 "title" : " " ,
340340 "command" : " als-refactor-change-parameter-mode" ,
341341 "arguments" : [{
342- "context" : " Default " ,
342+ "context" : " $URI{default.gpr} " ,
343343 "where" : {
344344 "textDocument" : {
345345 "uri" : " $URI{main.adb}"
369369 "params" : {
370370 "command" : " als-refactor-change-parameter-mode" ,
371371 "arguments" : [{
372- "context" : " Default " ,
372+ "context" : " $URI{default.gpr} " ,
373373 "where" : {
374374 "textDocument" : {
375375 "uri" : " $URI{main.adb}"
Original file line number Diff line number Diff line change 294294 "title" : " " ,
295295 "command" : " als-refactor-move-parameter" ,
296296 "arguments" : [{
297- "context" : " Default " ,
297+ "context" : " $URI{default.gpr} " ,
298298 "where" : {
299299 "textDocument" : {
300300 "uri" : " $URI{main.adb}"
323323 "params" : {
324324 "command" : " als-refactor-move-parameter" ,
325325 "arguments" : [{
326- "context" : " Default " ,
326+ "context" : " $URI{default.gpr} " ,
327327 "where" : {
328328 "textDocument" : {
329329 "uri" : " $URI{main.adb}"
576576 "title" : " " ,
577577 "command" : " als-refactor-move-parameter" ,
578578 "arguments" : [{
579- "context" : " Default " ,
579+ "context" : " $URI{default.gpr} " ,
580580 "where" : {
581581 "textDocument" : {
582582 "uri" : " $URI{main.adb}"
598598 "title" : " " ,
599599 "command" : " als-refactor-move-parameter" ,
600600 "arguments" : [{
601- "context" : " Default " ,
601+ "context" : " $URI{default.gpr} " ,
602602 "where" : {
603603 "textDocument" : {
604604 "uri" : " $URI{main.adb}"
627627 "params" : {
628628 "command" : " als-refactor-move-parameter" ,
629629 "arguments" : [{
630- "context" : " Default " ,
630+ "context" : " $URI{default.gpr} " ,
631631 "where" : {
632632 "textDocument" : {
633633 "uri" : " $URI{main.adb}"
Original file line number Diff line number Diff line change 290290 "title" : " " ,
291291 "command" : " als-refactor-remove-parameters" ,
292292 "arguments" : [{
293- "context" : " Default " ,
293+ "context" : " $URI{default.gpr} " ,
294294 "where" : {
295295 "textDocument" : {
296296 "uri" : " $URI{main.adb}"
320320 "command" : " als-refactor-remove-parameters" ,
321321 "arguments" : [
322322 {
323- "context" : " Default " ,
323+ "context" : " $URI{default.gpr} " ,
324324 "where" : {
325325 "textDocument" : {
326326 "uri" : " $URI{main.adb}"
508508 "title" : " " ,
509509 "command" : " als-refactor-remove-parameters" ,
510510 "arguments" : [{
511- "context" : " Default " ,
511+ "context" : " $URI{default.gpr} " ,
512512 "where" : {
513513 "textDocument" : {
514514 "uri" : " $URI{main.adb}"
538538 "command" : " als-refactor-remove-parameters" ,
539539 "arguments" : [
540540 {
541- "context" : " Default " ,
541+ "context" : " $URI{default.gpr} " ,
542542 "where" : {
543543 "textDocument" : {
544544 "uri" : " $URI{main.adb}"
845845 "command" : " als-refactor-remove-parameters" ,
846846 "arguments" : [
847847 {
848- "context" : " Default " ,
848+ "context" : " $URI{default.gpr} " ,
849849 "where" : {
850850 "textDocument" : {
851851 "uri" : " $URI{main.adb}"
875875 "command" : " als-refactor-remove-parameters" ,
876876 "arguments" : [
877877 {
878- "context" : " Default " ,
878+ "context" : " $URI{default.gpr} " ,
879879 "where" : {
880880 "textDocument" : {
881881 "uri" : " $URI{main.adb}"
Original file line number Diff line number Diff line change 194194 "command" : " als-named-parameters" ,
195195 "arguments" : [
196196 {
197- "context" : " Default " ,
197+ "context" : " $URI{default.gpr} " ,
198198 "where" : {
199199 "textDocument" : {
200200 "uri" : " $URI{main.adb}"
222222 "params" : {
223223 "arguments" : [
224224 {
225- "context" : " Default " ,
225+ "context" : " $URI{default.gpr} " ,
226226 "where" : {
227227 "textDocument" : {
228228 "uri" : " $URI{main.adb}"
282282 "params" : {
283283 "arguments" : [
284284 {
285- "context" : " Default " ,
285+ "context" : " $URI{default.gpr} " ,
286286 "where" : {
287287 "textDocument" : {
288288 "uri" : " $URI{main.adb}"
342342 "params" : {
343343 "arguments" : [
344344 {
345- "context" : " Default " ,
345+ "context" : " $URI{default.gpr} " ,
346346 "where" : {
347347 "textDocument" : {
348348 "uri" : " $URI{main.adb}"
402402 "params" : {
403403 "arguments" : [
404404 {
405- "context" : " Default " ,
405+ "context" : " $URI{default.gpr} " ,
406406 "where" : {
407407 "textDocument" : {
408408 "uri" : " $URI{main.adb}"
462462 "params" : {
463463 "arguments" : [
464464 {
465- "context" : " Default " ,
465+ "context" : " $URI{default.gpr} " ,
466466 "where" : {
467467 "textDocument" : {
468468 "uri" : " $URI{main.adb}"
522522 "params" : {
523523 "arguments" : [
524524 {
525- "context" : " Default " ,
525+ "context" : " $URI{default.gpr} " ,
526526 "where" : {
527527 "textDocument" : {
528528 "uri" : " $URI{main.adb}"
582582 "params" : {
583583 "arguments" : [
584584 {
585- "context" : " Default " ,
585+ "context" : " $URI{default.gpr} " ,
586586 "where" : {
587587 "textDocument" : {
588588 "uri" : " $URI{main.adb}"
642642 "params" : {
643643 "arguments" : [
644644 {
645- "context" : " Default " ,
645+ "context" : " $URI{default.gpr} " ,
646646 "where" : {
647647 "textDocument" : {
648648 "uri" : " $URI{main.adb}"
Original file line number Diff line number Diff line change 204204 "command" : " als-suppress-separate" ,
205205 "arguments" : [
206206 {
207- "context" : " Default " ,
207+ "context" : " $URI{default.gpr} " ,
208208 "where" : {
209209 "textDocument" : {
210210 "uri" : " $URI{test.adb}"
233233 "command" : " als-suppress-separate" ,
234234 "arguments" : [
235235 {
236- "context" : " Default " ,
236+ "context" : " $URI{default.gpr} " ,
237237 "where" : {
238238 "textDocument" : {
239239 "uri" : " $URI{test.adb}"
Original file line number Diff line number Diff line change 186186 "params" : {
187187 "command" : " als-named-parameters" ,
188188 "arguments" : [{
189- "context" : " Default " ,
189+ "context" : " $URI{default.gpr} " ,
190190 "where" : {
191191 "textDocument" : {
192192 "uri" : " $URI{src/main.adb}"
Original file line number Diff line number Diff line change 163163 "params" : {
164164 "command" : " als-named-parameters" ,
165165 "arguments" : [{
166- "context" : " Default " ,
166+ "context" : " $URI{default.gpr} " ,
167167 "where" : {
168168 "textDocument" : {
169169 "uri" : " $URI{src/foo.ads}"
Original file line number Diff line number Diff line change 292292 "command" : " als-refactor-change-parameter-mode" ,
293293 "arguments" : [
294294 {
295- "context" : " Default " ,
295+ "context" : " $URI{default.gpr} " ,
296296 "where" : {
297297 "textDocument" : {
298298 "uri" : " $URI{main.adb}"
316316 "command" : " als-refactor-change-parameter-mode" ,
317317 "arguments" : [
318318 {
319- "context" : " Default " ,
319+ "context" : " $URI{default.gpr} " ,
320320 "where" : {
321321 "textDocument" : {
322322 "uri" : " $URI{main.adb}"
340340 "command" : " als-refactor-change-parameter-mode" ,
341341 "arguments" : [
342342 {
343- "context" : " Default " ,
343+ "context" : " $URI{default.gpr} " ,
344344 "where" : {
345345 "textDocument" : {
346346 "uri" : " $URI{main.adb}"
371371 "command" : " als-refactor-remove-parameters" ,
372372 "arguments" : [
373373 {
374- "context" : " Default " ,
374+ "context" : " $URI{default.gpr} " ,
375375 "where" : {
376376 "textDocument" : {
377377 "uri" : " $URI{main.adb}"
You can’t perform that action at this time.
0 commit comments