Tacking in account the document version when applying highlighting
to prevent applying old info to the changed document.
Fixed full/range request. Now we send a range request on
document changes.
GPS.Style expanded. Added underline, underline color,
strikethrough, strikethrough color with Python API suppotr
Styles now support hierarchical updating, so some properties
can be changed in a parent style and it will be applied to
all children except the overriden explicitly.
Implemented support for LSP styles in TextMate themes and
all styles can be adjusted there.
Added default styles for LSP similar to VS Code
For eng/ide/gnatstudio#618
Avoid duplicating messages when several different
information are displayed on the same editor
line (e.g: a message + an action).
For eng/ide/gnatstudio#614
For this tooltip we did not set an area where the cursor is
allowed to move without redrawing the tooltip. This led to
hiding/showing it constantly on each mouse micro movement.
This flipping can be seen by the user on a slow system or
a remote setup.
For eng/ide/gnatstudio#598
- Change the type to Integer to refcount it when its frozen
multiple times.
- Update the documentation: the cursor can move but we are not
emitting cursor movements notifications.
- Remove LSP pref, disabling it is only slowing the process
- Merge the concept of Avoid_Move_Cursor and Freeze_Cursor.
- Compute minimal edits only if for the TextEdits affecting a
cursor
- Freeze the cursor when applying TextEdits
- Fix condition in completion window where we are deleting the
window and then trying to access it.
- Fix wrong preference name in test (it was the same by default
for C++)
Closes eng/ide/gnatstudio#582
This is a bit too soon to enable LSP formatting
by default: a few issues have been identified, and
we need to fix them before making it the default.
For eng/ide/gnatstudio#138
Fix limit formatting condition
Fix Get_Iter_At_Screen_Position defaulting to the first Iter
when trying to get the last iter (this happens when a buffer
doesn't have EOF)
Fix Before_Delete_Text invalid conversions between Line_Offset
and Visible_Columns (missing tab expansions).
Improve IndentOnly string comparison
Add tests
Depends-On: eng/ide/ada_language_server!2116
For eng/ide/ada_language_server#1713
RangeFormatting and OnTypeFormatting were triggered together
when pressing Enter while the Completion Window was opened.
Add a test
Closes eng/ide/gnatstudio#570
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
Move logic in Src_Editor_Module and Src_Editor_Buffer
Change Choice_Preference to use VSS
Remove the use of String_List_Access
Explictly allow to set a default value