Commit graph

286 commits

Author SHA1 Message Date
Arne Deutsch
1fff3d2648 [eclipse/xtext#1455] Dedicated DocumentTest case for \r\n.
Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2019-12-16 13:19:47 +01:00
Sebastian Zarnekow
f8c791989c
Merge pull request #1322 from mmews-n4/requestManger_logging
Log Exceptions thrown in futures created by the RequestManger
2019-12-12 17:28:25 +01:00
mmews
f8fbc38a0b fix synchronization error (maybe)
Signed-off-by: mmews <marcus.mews@numberfour.eu>
2019-12-12 00:19:51 +01:00
mmews
df3b967105 add tests for runRead, etc.
Signed-off-by: mmews <marcus.mews@numberfour.eu>
2019-12-11 14:16:53 +01:00
mmews
85e1620ab4 incorporate review feedback
Signed-off-by: mmews <marcus.mews@numberfour.eu>
2019-12-11 11:18:47 +01:00
mmews
8e3550e61b add test for IProjectConfig#isIndexOnly
Signed-off-by: mmews <marcus.mews@numberfour.eu>
2019-12-10 22:35:04 +01:00
mmews
d620e0daae log exceptions in futures of RequestManager
Signed-off-by: mmews <marcus.mews@numberfour.eu>
2019-12-10 12:04:25 +01:00
Karsten Thoms
325fa1e8d6 [releng] Update Xtext version to 2.21.0
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-12-02 14:06:33 +00:00
Christian Dietrich
035df74a4e updated to lsp4j 0.8.1
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-11-26 21:43:34 +01:00
Karsten Thoms
f12d7540ef [eclipse/xtext#1569] Refactor Xtend to Java
Replaced usage of Xtend in project org.eclipse.xtext.util, except for
active annotations.

Performed refactorings see
https://github.com/eclipse/xtext/wiki/DevGuide_RefactorXtend2Java

Added test case for UriExtensions#withEmptyAuthority().

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-11-22 14:31:46 +01:00
Sebastian Zarnekow
0db28cc4c2 Add output folders to build.properties 2019-11-18 08:42:38 +01:00
Sebastian Zarnekow
e814a7d8dd Fixed build.properties, fixed a few warnings on the go 2019-11-18 08:42:38 +01:00
Sebastian Zarnekow
bbbdf68391 Added missing build.properties, fixed a couple of warnings 2019-11-18 08:42:38 +01:00
Christian Dietrich
3cdfbccafb fixed broken config of formatter fragment
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-11-17 11:16:16 +01:00
Sebastian Zarnekow
9f8aee979a [eclipse/xtext#1573] Ensure that all plugins do have a ManifestBuilder 2019-11-04 14:34:21 +01:00
Karsten Thoms
0768813c3b [eclipse/xtext#1568] Remove Buildship classpath container
These changes were automatically applied to the launch configurations on
a fresh workspace setup.

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-10-28 11:27:29 +01:00
Christian Dietrich
00897b1b35 [eclipse/xtext#1550] set default compliance level to 8.0
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-09-23 11:27:08 +02:00
Christian Dietrich
feba65d562 regenerated test languages
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-09-23 10:53:41 +02:00
Christian Dietrich
74f4e3d412 [eclipse/xtext#1520] update to gradle 5.6.1
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-09-04 08:37:03 +02:00
Christian Dietrich
d317854941 make sure WithTransient Package is always registered
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-09-03 19:25:49 +02:00
Karsten
365ba15867 [releng] Set version to 2.20.0
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-09-03 15:24:30 +00:00
Christian Dietrich
6a25670bab [#1231] added testlanguage for transient things not in grammar
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-08-29 21:56:19 +02:00
Christian Dietrich
60ea04335f [eclipse/xtext-core#1082] update to lsp4j 0.8.0
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-08-19 08:37:15 +02:00
Christian Dietrich
58a765b557 [#1163] fixed broken uri encoding when converting to emf uri
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-08-09 11:42:03 +02:00
Christian Dietrich
daa441b901 [#922] Calculate correct position (end) for issues
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-07-23 09:29:10 +02:00
mmews
a1566e10b3 extend ISourceFolder for precise file filtering
Signed-off-by: mmews <marcus.mews@numberfour.eu>
2019-07-22 09:42:44 +02:00
Christian Dietrich
45709aa876 regenerate with latest xtend
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-07-09 07:03:23 +02:00
Nico Prediger
c9a07291d8 [eclipse/xtext#1474] Prepare Master for 2.19
Signed-off-by: Nico Prediger <mail@nicoprediger.de>
2019-06-03 14:02:18 +02:00
Jan Koehnlein
01c615c361
Merge pull request #1157 from eclipse/jk/1156
[lsp] fixed Document.applyEdit for multiple textEdits
2019-05-29 14:34:28 +02:00
Jan Koehnlein
3bbe29596d [lsp] deprecated Document#applyEdit in favor of #applyTextDocumentChanges
Fixes #1156
2019-05-28 16:37:46 +02:00
Christian Dietrich
feab398da5 update to lsp4j 0.7.2
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-05-27 13:44:32 +02:00
Christian Dietrich
24b4f99cda [eclipse/xtext-core#1082] update to lsp4j 0.7.1
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-05-08 16:11:29 +02:00
Akos Kitta
a51de02a67 GH-1047: Implemented textDocument/prepareRename
- `textDocument/prepareRename` is automatically executed
when the client declares `prepareSupport`.
 - Exposed the `InitializeResult` on the LS access API.
 - From now on, the refactoring issue acceptor does not throw
an exception when adding issues with `ERROR` or `FATAL` severity.
 - Extended the test language to support FQNs via package declarations.

Closes #1047.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
2019-04-10 14:49:06 +02:00
Christian Dietrich
21aa47fc07
Merge pull request #1068 from kittaakos/GH-1067
GH-1067: Exposed the Xtext index to the LS access.
2019-04-05 14:06:32 +02:00
Akos Kitta
74de6a1017 GH-1067: Exposed the Xtext index to the LS access.
From now on, it is possible to read the content of the Xtext
index from a LS access.

Closes #1067.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
2019-04-05 13:12:53 +02:00
Sebastian Zarnekow
9f1b16b6a4 Fixed regression in injector provider 2019-04-04 21:50:57 +02:00
Sebastian Zarnekow
4523b55a51 Regenerated testlanguages 2019-04-04 14:34:09 +02:00
Sebastian Zarnekow
958c09f16e Compile from Xtend 2019-04-04 14:24:00 +02:00
Mark Christiaens
528c10aa90 Occurrence highlighting of nested references
#1090

Signed-off-by: Mark Christiaens <mark.christiaens@sigasi.com>
2019-04-03 14:15:14 +02:00
Jan Koehnlein
57cd3b5d0d #923 provide live resource sets to code action service
Fixes #923
2019-03-26 09:56:34 +01:00
Jan Koehnlein
0ef82b8219 [ls] further rename fix and test
- restored the old APIs and deprecated them
- built a new API next to the old one
  - use ILanguageServerAccess to read files
  - extended ILSA to provide new resource sets and the initialization params
- extended the Xtext generator to use the new API
- made sure customizations of the old API don't get lost
- revised the find element at position strategy
- revised error handling
- added a test language and tests
2019-03-20 15:51:19 +01:00
Dennis Huebner
312e236ec3
Merge pull request #1044 from eclipse/dh-serializer
[ide] Bogus serialization when reassign container #1043
2019-03-18 15:35:55 +01:00
Akos Kitta
a77c17dea0
Merge pull request #1075 from kittaakos/GH-1074
GH-1074: Exposed the language client class for the LS tests.
2019-03-15 08:16:23 +01:00
Jan Koehnlein
a290419be4 [LS] overhauled rename service
- delegate to rename language of the declaration of the renamed target
- allow to trigger rename with caret right after the identifier
- support versioned documents

Closes #917, closes #916 and closes #1072
2019-03-14 14:56:56 +01:00
Akos Kitta
07e7288a19 GH-1074: Exposed the language client class for the LS tests.
Closes #1074.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
2019-03-13 13:19:20 +01:00
Christian Dietrich
2d5a808729 marked abstract classes as abstract
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-03-06 20:52:55 +01:00
Christian Dietrich
9b38d565e0 [eclipse/xtext-core#1059] updated to lsp4j 0.7.0
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-03-05 20:09:10 +01:00
Christian Dietrich
f8708cefd5 [eclipse/xtext#1414] prepared master for version 2.18.0
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-03-05 16:47:14 +01:00
Christian Dietrich
ae41f9c34e [#1048] fixed cleanup of workspace in test
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-02-25 09:44:50 +01:00
Dennis Huebner
e807fecdbe [ide] Bogus serialization when reassign container #1043
Signed-off-by: Dennis Huebner <dennis.huebner@gmail.com>
2019-02-21 09:03:07 +01:00
Sebastian Zarnekow
09c3ceac85 Make bin/main also the default output directory to avoid buildship confusion 2019-02-10 14:55:03 +01:00
Karsten Thoms
98a17c35da [eclipse/xtext#1274] Updated .classpath by Gradle
Changes done by Buildship 3.0.1.v20181217-1554

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-02-07 17:03:45 +01:00
Sebastian Zarnekow
ecc7ae0bc3
[eclipse/xtext#1249] use bom for version management (#988) 2019-01-11 16:41:50 +01:00
Christian Dietrich
1b4f6c78a4 change version 2.16.0 -> 2.17.0
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-12-05 09:48:47 +01:00
Christian Dietrich
6e896a1ea2
Merge pull request #931 from eclipse/cd_issue625
[eclipse/xtext-core#625] set Item.InsertTextFormat to snippet for snippets
2018-11-19 15:45:26 +01:00
Christian Dietrich
009578bc9e [eclipse/xtext-core#625] set Item.InsertTextFormat to snippet for snippets
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-11-19 13:01:33 +01:00
Karsten Thoms
37172c68dd [eclipse/xtext#1168] Minimal target platform Oxygen.3a
Update lower bound version constraints on platform related bundles with
versions from an Oxygen.3a platform.

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-11-14 17:27:50 +01:00
Christian Dietrich
85385aa97a [#893] build against LSP4J 0.6.0-SNAPSHOT
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-11-10 12:16:05 +01:00
Dennis Huebner
07941dbdf0 Additional test for "delete than close" case #895
Signed-off-by: Dennis Huebner <dennis.huebner@gmail.com>
2018-10-09 10:04:07 +02:00
Dennis Huebner
da30a28a9a Testcase for #800
Signed-off-by: Dennis Huebner <dennis.huebner@gmail.com>
2018-10-08 15:51:16 +02:00
Akos Kitta
349580fc26 GH-882: Fixed the inconsistency between the range and selectionRange.
Added a test assertion to ensure `selectionRange` is always contained by the `range`.

Closes: #882.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
2018-10-02 19:54:17 +02:00
Akos Kitta
9e46f302bb GH-858: [LS] Added support for the hierarchical document symbols.
Closes: #858.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
2018-09-25 14:13:54 +02:00
Karsten Thoms
2b7e2b4609 [eclipse/xtext#1272] Compile with Xtend 2.15
Order of static & final modifiers changed
(eclipse/xtext-xtend#554)

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-09-21 17:45:41 +02:00
Dennis Huebner
7fe6ddcc4c Handle ContentAssistEntry.getTextReplacements in ContentAssistService
Signed-off-by: Dennis Huebner <dennis.huebner@gmail.com>
2018-09-19 14:34:51 +02:00
Dennis Huebner
793acb0aa9 CodeAction as real CodeAction. Example and Test.
Signed-off-by: Dennis Huebner <dennis.huebner@gmail.com>
2018-09-19 11:08:53 +02:00
Christian Dietrich
93e3e31da5
Merge pull request #855 from eclipse/cd_xtext216
updated versions to 2.16.0
2018-09-05 07:03:24 +02:00
Christian Dietrich
35531dfa33 marked ColoringServiceImpl as deprecated (analogous to interface)
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-09-03 15:40:47 +02:00
Christian Dietrich
2f0f093fb5 updated versions to 2.16.0
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-09-03 11:11:51 +02:00
Akos Kitta
136e66dd47 GH-812: Implemented the semantic highlighting for the Xtext LS.
Closes #812.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
2018-08-29 12:42:06 +02:00
Christian Dietrich
cf4065ab27 [eclipse/xtext#1227] regenerated testlanguages
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-08-24 10:39:56 +02:00
Christian Dietrich
06ab1b01ad [#221] Fixed Templats
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-08-06 10:00:40 +02:00
Christian Dietrich
0573060c99 [#622] set flaky testcase to ignore
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-07-23 16:33:35 +02:00
Karsten Thoms
7dcc65bb2e [release] Increment version to 2.15.0
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-05-22 23:53:44 +02:00
Christian Dietrich
3dbf100102
Merge pull request #718 from eclipse/cd_issue716
[#716] [LSP] Problems for a deleted file are shown after deletion
2018-04-26 16:08:39 +02:00
Christian Dietrich
be7a958127 [#716] [LSP] Problems for a deleted file are shown after deletion
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-04-25 14:29:38 +02:00
Jan Koehnlein
3c2bb77e89 GH-712 adapt to breaking changes in lsp4j 2018-04-23 14:47:08 +02:00
Miro Spönemann
bf6a61a7e2 #694: Updated to LSP4J 0.4.0 (snapshot)
Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2018-04-19 15:32:40 +02:00
Titouan Vervack
0ea85189c8 Fixed warnings
Signed-off-by: Titouan Vervack <titouan.vervack@sigasi.com>
2018-03-29 18:18:18 +02:00
Titouan Vervack
127fa42d17 Removed redundant modifiers
Signed-off-by: Titouan Vervack <titouan.vervack@sigasi.com>
2018-03-28 17:41:41 +02:00
Christian Dietrich
0cd8e8acf4 [#665] added test for execute command service
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-03-22 19:36:45 +01:00
Christian Dietrich
f59edef7a1 [#665] implemented a very simple command service
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-03-22 19:36:09 +01:00
Christian Dietrich
0b6d40d4eb [#665] added multiple file extensions for test lang
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-03-22 19:35:04 +01:00
Christian Dietrich
721c690639 [#665] regenerated test languages
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-03-22 19:34:25 +01:00
Moritz Eysholdt
43b7d1df8c Handle comments and whitespace properly in rewrite scenarios
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2018-03-04 19:41:46 +01:00
Moritz Eysholdt
9885cc4323 [ChangeSerializer] support modifications applied to non-xtext-resources
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2018-03-04 19:20:01 +01:00
Moritz Eysholdt
860bf74ab5 [ChangeSerializer] fixed a potential NPE
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2018-03-03 12:13:25 +01:00
Christian Dietrich
7ab31042c8 maintained x-friends https://github.com/eclipse/xtext/issues/1173
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-02-23 15:57:53 +01:00
Christian Dietrich
8cb265024d [#638] Use Formatting options passed by the client
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-02-20 17:54:55 +01:00
Christian Dietrich
13b2035931 [#636] Removed Test order dependency from UriExtensionsTest
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-02-10 08:38:56 +01:00
Christian Dietrich
395854eb57 [#617] fixed typo in AbstractLanguageServerTest
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-02-02 09:51:07 +01:00
Anton Kosiakov
b84e52630e [lsp] ensure requests processing order
Signed-off-by: Anton Kosiakov <anton.kosyakov@typefox.io>
2018-01-19 11:55:14 +01:00
Karsten Thoms
809377cd27 [420984] Compiler optimization: Suppress creation of unused exception variable
Recompiled Xtend files

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-01-16 14:54:22 +01:00
Karsten Thoms
90cef27ab4 [eclipse/xtext#1160] Update copyright date range
Recompiled Xtend files

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-01-16 09:11:22 +01:00
Karsten Thoms
134c788006 [eclipse/xtext#1160] Update copyright date range
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-01-15 16:28:39 +01:00
Florian Stolte
1bc930b5b6 [eclipse/xtext#1152] Java 9 - Added Automatic-Module-Name header
- added header to existing manifest files
- added header to manifest generation in xtext generator and wizard

Signed-off-by: Florian Stolte <fstolte@itemis.de>
2017-12-14 14:16:20 +01:00
Sebastian Zarnekow
ec24238129 Merge remote-tracking branch 'origin/master' into sz_avoidDuplicatedCode 2017-12-07 17:29:11 +01:00
Christian Dietrich
43d7186d19 Fixed broken tests #571
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-12-07 16:50:23 +01:00
Sebastian Zarnekow
c6e5d8af68 Avoid duplicated code in CA infrastructure 2017-12-07 15:57:35 +01:00
Jan Koehnlein
15b13a279d GH-520 allow shadowed resource descriptions in language server scenario 2017-12-05 20:56:55 +01:00
Jan Koehnlein
8c7295e56e GH-524 use Module2.mixin() to combine runtime and IDE module in example languages 2017-12-05 20:56:54 +01:00