1142 Commits

Author SHA1 Message Date
Boulanger
9114cbea60 Manual cherry_pick of Improve prepareCallHierarchy
See: eng/ide/ada_language_server!1410
eng/ide/ada_language_server#1193
2023-10-30 11:57:15 +01:00
Boulanger
7b1137cea1 Simplify function snippet parameters
The output for "Name completion snippet" was:
   "Name => Name in out Type"
The new output is similar to the "Param completion snippet":
   "Name => in out Type"

Add a test.

eng/ide/gnatstudio#85
2023-09-13 15:41:20 +00:00
Anthony Leonardo Gracio
60116d11d6 Revert "Merge branch 'topic/lalrefactor_issue8' into 'master'"
This reverts merge request !1313
2023-09-06 09:25:27 +00:00
Anthony Leonardo Gracio
58c1598b8b Log the ALS build date next to its version
This allows to distinguish which wavefront is used.

For eng/ide/ada_language_server#1173
2023-09-05 10:49:34 +00:00
Joao Azevedo
ebdc016c24 Update to new LAL Refactor Auto Import API 2023-09-05 09:48:31 +01:00
Maxim Reznik
95b3883cb2 Add lsp_gen sources 2023-08-08 16:09:27 +00:00
Abdellah Belaid
f6db69ace2 Add GNATtest Integration
(cherry picked from commit 2249a9ec78)
2023-08-07 14:08:01 +00:00
Anthony Leonardo Gracio
215facb83c Publish all diagnostics when refactorings fail
We now publish all the existing diagnostics when a refactoring
command fails, avoiding to override all the diagnostics that could
already be present in the opened editors.

Add a test.

For eng/ide/ada_language_server#1157

(cherry picked from commit 5e3e14199c)
2023-08-07 14:08:01 +00:00
Max Reznik
ba4c8fd9b6 Fix possible Constraint_Error due to discriminant constraint violation
(cherry picked from commit e4ff8cdeb8)
2023-08-07 14:08:01 +00:00
Joao Azevedo
14f14f8f1f Fix onTypeFormatting.indentOnly option reading
Fix handling of RangeFormat errors on the onTypeFormatting request.
Move onTypeFormatting.indentOnly = True to its own directory.
Add test with onTypeFormatting.indentOnly = False.

(cherry picked from commit 319ec42c3d)
2023-08-07 14:08:01 +00:00
Anthony Leonardo Gracio
e1d98765e9 Revamp LAL_Refactor error reporting
We now publish diagnostics instead of just sending an error response
when a refactoring fails. This allows users to better understand
why the refactorings did not work.

The code has also been factorized between all the refactorings.

Tests have been adapated to new user-readable labels for each
refactoring command.

For eng/ide/ada_language_server#1149

(cherry picked from commit b36b15ec53)
2023-08-07 14:08:01 +00:00
Anthony Leonardo Gracio
bc5292fea8 Add new LSP.Ada_Handler.Refactor package
For eng/ide/ada_language_server#1149

(cherry picked from commit 9f978c136d)
2023-08-07 14:08:01 +00:00
Anthony Leonardo Gracio
4e63dc8117 Fix typo in type name
For eng/ide/ada_language_server#1149

(cherry picked from commit 5e9f67522f)
2023-08-07 14:08:01 +00:00
Joao Azevedo
67557cb30b Add onTypeFormatting request initial implementation
(cherry picked from commit 44ed79e094)
2023-08-07 14:08:01 +00:00
Joao Azevedo
fa3dad07e3 Update depedencies due to Laltools split
(cherry picked from commit 58c1f019a8)
2023-08-07 14:08:01 +00:00
Elie Richa
18eed7c268 Add finer grain error recovery in semantic highlighter 2023-07-20 13:00:40 +00:00
Elie Richa
fa8beab15a Implement highlighting of Ada bodies
Instead of defaulting to 'function' when the spec is not visible
2023-07-20 13:00:40 +00:00
Elie Richa
351218bf35 Skip semantic highlighting on not implemented declaration kinds 2023-07-20 13:00:40 +00:00
Elie Richa
4ed70eeaef Avoid costly log computation if the trace is not active 2023-07-19 16:09:13 +00:00
Elie Richa
71ccb98dbd Do not apply semantic tokens to unresolved identifiers 2023-07-11 16:24:53 +00:00
Philippe Gil
f0486eb099 Add gpr open/change/close document support & diagnostics
lsp-gpr_documents: edited files document & gpr2 tree handling

lsp-gpr_handlers: add data to allow gpr file parsings & API to
   implements open/change/close document, get symbols requests
   and publish notification

lsp-gpr_files: gpr files (opened & referenced) data structure for
   symbols, navigation, tooltip, completion, etc

lsp-gpr_files-symbols: get symbols implementation

lsp-gpr_file_readers: reader to let parsers access disk & open
   documents

lsp-ada_driver.adb: add server missing references

gpr tests: new get_symbols, get_symbols_hierarchy, publish_diag tests
   update start_stop test

ref eng/ide/ada_language_server#1127
2023-07-04 06:32:04 +00:00
Vadim Godunko
47fe2e187d Refactor code to compute qualifier and aspects sections. 2023-07-03 16:13:52 +00:00
Vadim Godunko
b9ee6b392a Add parameters for qualifier and aspects text.
Remove unused parameter for trace.
2023-07-03 16:13:52 +00:00
Vadim Godunko
11cd2d4a06 Remove unused code of enumeration literals processing. 2023-07-03 16:13:52 +00:00
Vadim Godunko
bbd045a1f0 Remove code to extract declaration text for package declarations
... it is done by GNATdoc.
2023-07-03 16:13:52 +00:00