File tree 4 files changed +4
-11
lines changed
ada_lsp/project_config.missing_file
gpr_lsp/project_config.alire
4 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -370,16 +370,9 @@ package body LSP.Ada_Project_Loading is
370
370
-- Special case for a Valid Project: check errors and then warnings
371
371
if Project.Status = Valid_Project then
372
372
if Project.GPR2_Messages.Has_Element
373
- (Information => False,
374
- Warning => False,
375
- Error => True,
376
- Lint => False)
377
- then
378
- Project.Status := Invalid_Project;
379
- elsif Project.GPR2_Messages.Has_Element
380
373
(Information => False,
381
374
Warning => True,
382
- Error => False ,
375
+ Error => True ,
383
376
Lint => False)
384
377
then
385
378
Project.Status := Valid_Project_With_Warning;
Original file line number Diff line number Diff line change 95
95
}
96
96
}
97
97
},
98
- "message" : " The project file has errors and could not be loaded ."
98
+ "message" : " The project file was loaded but contains Warnings ."
99
99
},
100
100
{
101
101
"location" : {
Original file line number Diff line number Diff line change 1
- with "config/hello_config.gpr";project Hello is end Hello;
1
+ with "config/hello_config.gpr";project Hello is for Source_Dirs use ("src"); end Hello;
Original file line number Diff line number Diff line change 55
55
"request" : {
56
56
"params" : {
57
57
"textDocument" : {
58
- "text" : " with \" config/hello_config.gpr\" ;project Hello is end Hello;" ,
58
+ "text" : " with \" config/hello_config.gpr\" ;project Hello is for Source_Dirs use ( \" src \" ); end Hello;" ,
59
59
"version" : 0 ,
60
60
"uri" : " $URI{hello.gpr}" ,
61
61
"languageId" : " Gpr"
You can’t perform that action at this time.
0 commit comments