489 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
Vadim Godunko
a22776ea98 Fix build after bump. 2025-12-22 18:39:46 +04:00
Vadim Godunko
aae46c2f00 Use Editable_Line_Type in New_Location_At_Line 2025-10-23 16:17:26 +00:00
Vadim Godunko
92ad15b8b1 Remove Project Properties from GNAT Studio
This is needed in order to prepare the transition to GPR2.

Project edition should be done by editing the .gpr files now, with
the help of the Ada Language Server.

Documentation and comments have been updated accordingly and tests
checking the Project Properties GUI have been removed.

For eng/ide/gnatstudio#569
2025-10-23 10:17:57 +00:00
Vadim Godunko
29661563eb Replace String_Access by Virtual_String 2025-04-25 13:53:38 +00:00
Andry Ogorodnik
55c4d8fc8d Fix invalid read in Outline when GS exits 2025-03-21 14:09:21 +00:00
Vadim Godunko
24b5fffac1 Use Virtual_String as parameter of messages constructors. 2025-03-04 05:13:38 +00:00
Vadim Godunko
cfad6acc27 Transition to Get_Text 2025-02-11 06:10:31 +00:00
Vadim Godunko
ddc5afbd28 Rename Get_Chars into Get_Chars_S 2025-02-11 06:10:31 +00:00
Boulanger
6b082c3af0 Outline missing escape when not displaying the profiles
Add a test

Closes eng/ide/gnatstudio#490
2025-02-10 11:11:50 +01:00
Boulanger
82c7912d88 Outline view: better handling of generics
Some rows can start before the line of the defining names

Add a test.

For eng/ide/ada_language_server#1526
2025-01-02 17:00:33 +00:00
Boulanger
1c2a72cbdc Outline view: better handling of generics
Some rows can start before the line of the defining names

For eng/ide/ada_language_server#1526
2025-01-02 17:00:33 +00:00
Vadim Godunko
dd02b1c870 Function to create GValue from Virtual_String. 2024-11-13 12:59:34 +00:00
Vadim Godunko
d4206d2e19 Use Virtual_String for category name of the messages. 2024-11-13 12:59:34 +00:00
Vadim Godunko
5408d1e122 Rename Get_Attribute function. 2024-11-13 12:59:34 +00:00
Vadim Godunko
7ab8c1791a Rename subprogram to avoid overloading collision. 2024-11-13 12:59:34 +00:00
Anthony Leonardo Gracio
3cb1d3b775 Simplify the Interactive_Consoles API
In particular use the GPS.Kernel.Message_Type everywhere in
order to highlight different kinds of messages.

Add an automatic test for this.

For eng/ide/gnatstudio#183
2023-12-14 16:11:51 +00:00
Boulanger
e799ff8578 Bookmark toggle action
Allow Ctrl-Click to create and delete a Bookmark on the
editor sidebar.

Add a test

eng/ide/gnatstudio#113
2023-12-13 11:41:19 +00:00
Anthony Leonardo Gracio
0d2d785dc8 Use GPS default styles for interactive console highlighting
Console higlighting is now directly handled through default
styles' tags. This ensures that prompts and highlighted text
will always be updated when the color theme changes.

For eng/ide/gnatstudio#183
2023-12-11 15:55:57 +00:00
Boulanger
1475809bcc Use selectionRange defined by documentSymbol
We were using the length of the name and the start location.
Prefer to use selectionRange when defined.

eng/ide/gnatstudio#143
2023-11-17 17:04:36 +00:00
Boulanger
60cb21e562 Use more holders for bookmark creation
The buffer leak was still possible...

eng/ide/gnatstudio#56
2023-11-15 15:08:55 +01:00
Boulanger
aa833b3ea4 Fix Bookmarks view leaking Pure_Buffers
eng/ide/gnatstudio#56
2023-09-12 15:34:06 +00:00
Anthony Leonardo Gracio
7c1ba23818 Revert "Merge branch 'topic/gs_56_bookmark_leaking_buffer' into 'master'"
This reverts merge request !195
2023-09-08 10:59:06 +00:00
Boulanger
64ac98f85a Remove Open_Buffer from Editor_Buffer_Factory
Opening a buffer without a view leaves the responsibility to the
caller to close the buffer manually.
=> this is unsafe: either we are closing a buffer shared
somewhere else or forgetting to close it (= leaking it)

The solution is to always use Buffer_Holder.
2023-09-07 11:37:05 +02:00
Boulanger
3ae5290180 Fix Bookmarks view leaking Pure_Buffers
eng/ide/gnatstudio#56
2023-09-06 16:25:48 +02:00