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
- 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
Placing clangd formatting options file into top source directory
(clangd-format looks for it here).
Correcting file updating when preferences are changed.
New test has been added to test the fact that all preferences are
taken into account by clangd and work properly.
Change-Id: I86e566b1ac3697dcc3338b365f5d52430f8099e0
Recognize extra extensions for the C++ language. This allows
navigation to open external C++ includes that use these extensions,
highlight these files with the C++ highlighter, and enables
navigation within those files.
This allows to support using the boost project without
having to create a .gpr file just to recognize the .hpp
extensions.
Change-Id: Idf54d37b17894ae961ac0c7d159810067c267344
The preferences related to tabulations in editors were assuming
tab = 8 spaces which is wrong. Correctly use the indentation
level set by the user.
Add pango to modify the way the tabs are represented.
Disable C indent preference by default to have an uniform
behavior between version (the preference was doing nothing
in most of the case)
Add a test.
Change-Id: I33dc589bda5e8af0ec9a1ba7a4fa3a14cc6cc912
The definition of a foldable block should be the same than the
highlighted block.
The only block foldable in C are Compound and if Statement.
Change-Id: Iba0eb911ca05092ef02e97fe1d4f56fc21e8a6ca