450 Commits

Author SHA1 Message Date
Anthony Leonardo Gracio
11672bc929 Update copyright year for GS sources
(no-issue-check)
2026-01-05 12:41:13 +00:00
Anthony Leonardo Gracio
f2859d32d2 Remove LAL-based preferences
All these preferences and their implementation were implemented
before the LSP, and they are all disabled by default.

LAL-based features such as semantic highlighting, block folding are
now implemented in the ALS.

For eng/ide/gnatstudio#603
2025-12-11 11:05:27 +00:00
Anthony Leonardo Gracio
8413306af2 Remove unused code after Project Properties removal
For eng/ide/gnatstudio#569
2025-11-17 10:54:10 +00:00
Boulanger
3894119c61 Revamp Formatting Preferences
Create preferences for each languages using LSP.
Use by default the old engine for non-lsp language.
Remove Use-GNATFormat preference, we don't want to support
gnatpp anymore so it should be the default.
Move all the legacies Ada formatting preferences to Advanced:
keep them for now because we are still using the Legacy engine
by default.

Fix limit LSP span to filter Changes and not the Minimal Changes.

Adapt tests to the new preferences.

Closes eng/ide/gnatstudio#548
2025-06-04 13:53:25 +00:00
Boulanger
63e5ffb610 Remove GPS.LSP.FORMATTING
Both engines are coexisting and are now controlled by preferences.

Show the Ada indentation preferences not compatible with GNATformat
in a separate group and add a warning in the description of each
of them.
2025-05-14 11:30:03 +02:00
Boulanger
9acb839117 Revamp the source editor formatting provider
Create one for the construct engine and put it as the same level
as the LSP one. Both providers are supporting two requests:
OnTypeFormatting and OnRangeFormatting. There is no more concept
of indent vs format: these are internal settings/preferences
inside the providers.

Create preferences to choose the provider for each requests.
Create a preference to not move the cursor during formatting.

For eng/ide/gnatstudio#522
2025-05-14 11:30:03 +02:00
Vadim Godunko
5408d1e122 Rename Get_Attribute function. 2024-11-13 12:59:34 +00:00
Boulanger
cb44c82943 Rename functions to remove reference to internal implementation 2024-07-17 13:07:24 +00:00
Boulanger
ea4c9d139a Filter pretty print preferences depending on the engine
Rename Ident_Casing into Identifier_Casing because it was
to close to Indent_Casing.

Include a test.

Closes eng/ide/gnatstudio#140
2024-07-17 13:07:24 +00:00
Vadim Godunko
cce69b3b56 Remove duplicate dependency from gtkada. 2024-07-16 06:04:02 +00:00
Anthony Leonardo Gracio
41c30ab309 Update copyright year (no-tn-check)
Change-Id: Ie2cf22f9729f30d2228572a7296c23889be4c563
2023-01-03 11:39:28 +01:00
Anthony Leonardo Gracio
2e5dae0582 V627-022: Only indent on newline for Ada
Since onTypeFormatting is not yet implemented in the ALS, and thus
we use rangeFormatting instead, which leads to a strange behavior
for now.

Change-Id: I5cf47066407b39a62a7c01cb7637779afea391ac
2022-08-16 14:26:43 +02:00
Anthony Leonardo Gracio
af4c8f2d41 Update copyright year
(no-tn-check)
(no-precommit-check)

Change-Id: Id71d3f84cd6ab219a37821da1460038f4eea525c
2022-01-03 15:09:31 +01:00
Andry Ogorodnik
a878b44e63 UA04-044 Fix 'access check failed' exception
Change-Id: I867c26e9df89c9e4a6a19e99a42050c9dcb659b4
2021-10-06 12:12:08 +02:00
Andry Ogorodnik
e2e60670f3 U609-029 Indent selection.
- autoindent* actions renamed to format* to follow actual
  functionality that they do, corresponding changes in menu,
  key shortcuts etc.

- added 'indent selection' action that only indent
  current line/selection

- added 'Action on new line' preference for C/CPP to control
  whether we do formatting or indenting when a new line has
  been added.

- corresponding changes in tests

no-precommit-check

Change-Id: I245f1fa7dc6190c7e39bdced6fdba83d5f0356c1
2021-06-24 18:21:43 +02:00
Anthony Leonardo Gracio
63c2e9d9c9 Update copyright year
(no-tn-check)
(no-precommit-check)

Change-Id: I50abdaba131d76d914f1df9a53f013ec8f48ca68
2021-01-11 17:22:37 +01:00
Andry Ogorodnik
d9993c6c21 S903-025 Rename GPS to GNAT Studio in comments, strings
Depends-On: If8db363de9c59b395772b715a838e3a785b568d7
Change-Id: I509eebd12037a49e0ff751220c7f6911b7480694
2020-10-28 12:03:44 +01:00
Andry Ogorodnik
57986a24b3 R910-034 Support textDocument/rangeFormatting
Formatting selected range of code.

Change-Id: Ib7184eb2db6169e82aa4071550a9b21122d943ff
2020-04-28 18:16:35 +02:00
Adrien Boulanger
4f4904c818 Update Copyright 2019 => 2020.
(no-tn-check)

Change-Id: I7b854142151c6fc934c80c14dbe085e8bc7f6bb7
2020-01-07 10:45:26 +01:00
Nicolas Setton
d39a93eff9 S904-002 replace GPS by GNAT Studio in file headers
Change-Id: Icee628af75e0f1bd471a627c987b8024d999eb4b
2019-09-09 12:39:04 +02:00
Vadim Godunko
20567d607c S603-050 Remove use of anonymous access type for return value
Change-Id: I4debf1b143e221caa8171c4a65f3fc670cbdc2fe
2019-06-05 19:04:29 +02:00
Adrien Boulanger
3c8311be64 S418-034: Prevent an infinite loop in the completion module.
Store the list of analyzed expressions, they should never be
analyzed more than once.

Change-Id: I8d4b35db9fbd37e7c42172789acaf72b8dddbbc2
2019-05-17 10:16:23 +02:00
Adrien Boulanger
ce1cc906ec S405-012: Wrong formatters for generic parameters
Introduced with S312-010.

Change-Id: I8b7d5de3fbbd04b9d186688a59fc1bdd0b4678f0
2019-04-18 12:14:20 +02:00
Andry Ogorodnik
098fb54ccc S312-010 Show generic parameters in tooltips.
Change-Id: I23fe064941cdc7a36f899ce2f99e7bfaed57a75d
2019-03-18 20:12:07 +01:00
Arnaud Charlet
eecff5e042 S226-014 CodePeer run on GPS sources
Fine tune codepeer settings.

Code clean ups: address some codepeer messages either by improving the code
or making the code more explicit to avoid false positives.


Change-Id: I2abd61236b5ccd1b9b4d9dc9b8316b7f442e9862
2019-03-11 19:07:24 +01:00