Commit Graph

4227 Commits

Author SHA1 Message Date
Andry Ogorodnik
d0cf42f5fe Misplacement of pragma when using GNAT SAS Annotate 2024-10-16 10:16:16 +00:00
Andry Ogorodnik
0f52c281c2 Implementation of textDocument/semanticTokens requests 2024-09-09 15:26:33 +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
Andry Ogorodnik
81664c99ea Show all nested messages in the tooltip for the GNATSAS message 2024-07-03 12:10:06 +00:00
Anthony Leonardo Gracio
1b5338b319 Replace usage of deprecated Gtk.Stock package
For eng/ide/gnatstudio#330
2024-06-26 09:52:31 +00:00
Boulanger
e071080f82 Improve detection of modification on disk
And fix GPS.EditorBuffer.get(force=True) to force reload the
current editor.

Include a test.

For eng/ide/gnatstudio#326
2024-06-11 12:35:00 +00:00
Anthony Leonardo Gracio
cf8ba1acbd Fix style issues
For eng/ide/ada_language_server#1159
2024-06-06 08:57:32 +00:00
Anthony Leonardo Gracio
7200a946c5 Avoid moving the cursor on TextEdits
For that add a procedure that allows to temporarily disable
moving the cursor in GPS.Editors, and use it by default when
applying TextEdits.

For eng/ide/ada_language_server#1159
2024-06-06 08:57:32 +00:00
Anthony Leonardo Gracio
b3928f5804 Do not steal the focus when going to current debugger location
The focus should not be changed when highlighting the new
debugger location since the user might be interacting with
the debugger via the console.

For eng/ide/gnatstudio#249
2024-01-29 11:11:15 +00:00
Anthony Leonardo Gracio
3500546cb4 Add default parameters to 'rename_refactoring' Python function
This is documented in the Python API but was not actually implemented.

(no-issue-check)
2023-11-30 10:39:43 +00:00
Boulanger
edee8a72b3 Fix DnD not opening files on windows
Use LSP.URIs API and avoid Glib.Convert.

eng/ide/gnatstudio#155
2023-11-20 10:13:03 +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
9bdabe1efb Fix Int Overflow when computing tooltips
Highlight_Whole_Line is Natural'Last so we can't add anything
into it.

close eng/ide/gnatstudio#107
2023-10-25 13:39:30 +00:00
Anthony Leonardo Gracio
d0ff971607 Support for CodeActionKind
GNAT Studio now displays all the code actions from the same kind
in the multiactions popup that appears on the left-side of the
editor, with a proper label above the group of actions that have
the same kind (e.g: Refactoring).

For eng/ide/gnatstudio#82
2023-10-23 12:30:38 +00:00
Boulanger
f5e864aab9 Wrong X coordinate for block highlighting when scrolling
The current block highlighting is not relative to the visible
rectangle of the editor.

eng/ide/gnatstudio#96
2023-09-25 17:02:37 +02: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
c1c25b755e Wrong ASCII.HT width in Search Module
Doing a search within an editor with ASCII.HT will create invalid
message hightlighting. GPS.Search module is too far from
the concept of Editor_Buffer and visible_column so remove any
reference of it.

Add a test.

eng/ide/gnatstudio#34
2023-07-20 13:03:18 +00:00
Anthony Leonardo Gracio
840ad88da2 Don't display Sides_Only messages in tooltips
Since information about them can already be retirved when
hovering on the icons displayed on the right-side column of
the editor.

For eng/ide/gnatstudio#51
2023-07-04 13:02:29 +00:00
Anthony Leonardo Gracio
1176371931 W525-011: use italic for editor tabs not belonging to project
This makes it easier to identify files opened that do not belong
to the currently loaded project.

A message is also displayed in the tab tooltips, to make it more
explicit.

An automatic test has been added.
2023-06-27 08:57:17 +00:00
Boulanger
ada3b77c0a Add handler to deactivate hyperlink when changing workspace
On Ubuntu 22.04, when changing workspace using "CTRL+ALT+Arrow"
the Hyperlink mode is never deactivated. Thus when going back
to GS, all action are using CTRL modifier until the CTRL has been
released once manually.

Monitor Focus_Out on the main window to deactivate hyperlink mode.
2023-05-03 15:48:26 +00:00
Anthony Leonardo Gracio
cff3c84a67 Don't erase bookmark style when applying other styles
Add an automatic test for this.

Closes eng/ide/gnatstudio#24
2023-05-03 14:39:55 +02:00
Andry Ogorodnik
e56f2d8e49 topic/12 Fixing Split_String_Command
Insert space when the command can't be executed because the cursor
  is not in the string literal. This may happen when Shift is
  pressed accidentally with the space bar.
2023-04-05 12:56:35 +00:00
Anthony Leonardo Gracio
e51b5ed651 Create bookmarks on ctrl-clicks on line number
Users are now able to create bookmarks when doing ctrl-clicks
on editor line number, a bit like they can do to create breakpoints.

This makes bookmarks more easily usable for navigation.

Closes eng/ide/gnatstudio#8
2023-03-07 16:10:01 +00:00