Commit graph

138 commits

Author SHA1 Message Date
cwehrheim
8d835bc5fd [bug#489904] Fix partial formatting on single line
If a DSL file is only partially formatted it is possible that the
ITextReplacement is not fully contained in an allowed ITextRegion but
they overlap.

Modified method 'TextReplacerContext.isInRequestedRange(...)' to not
only check for containment but also for intersection. To check for
intersection a private method
'TextReplacerContext.doIntersect(...)' was added.

Added PartialFormattingTest test case and formatter
described in the bug.

Signed-off-by: Christian Wehrheim <christian.wehrheim@itemis.de>
Also-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-04-05 13:16:22 +02:00
Christian Dietrich
7b10a1d293 fixed warnings
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-03-19 09:31:47 +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
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
Sebastian Zarnekow
edeb506431 Make injection of the CompositeEValidator work 2019-02-26 18:29:10 +01:00
Christian Dietrich
ea07eb5cc5 added changed generated code for 'Actually delete LSP test folder after test' change
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-02-25 09:43:02 +01:00
Titouan Vervack
33534239c5 Actually delete LSP test folder after test
Delete on exit doesn't work if the folder is not empty. Since we don't
remove the individual files the folder doesn't get deleted.

Signed-off-by: Titouan Vervack <titouan.vervack@sigasi.com>
2019-02-21 18:31:53 +01:00
Sebastian Zarnekow
e34bcf8a71
Merge pull request #1024 from eclipse/sz_classpath
Make bin/main also the default output directory to avoid buildship confusion
2019-02-11 08:49:30 +01:00
Christian Dietrich
dfe72b83c0 fixed some javadocs
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-02-10 22:25:11 +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
4a231019ae
Fixed javadoc (#1011) 2019-01-31 16:47:41 +01:00
Sebastian Zarnekow
68545d3721
Added RepeatedTest annotation to xtext.testing (#1010)
Added utility to run Junit 4 tests in a loop to tackle flaky tests
2019-01-31 15:58:28 +01:00
Christian Dietrich
dec5c39745
Merge pull request #976 from eclipse/cd_issue971
[#971] make junit5 support api
2019-01-18 12:05:46 +01:00
Sebastian Zarnekow
ecc7ae0bc3
[eclipse/xtext#1249] use bom for version management (#988) 2019-01-11 16:41:50 +01:00
Christian Dietrich
0583ed054b [#971] make junit5 support api
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-12-12 14:16:26 +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
Dennis Huebner
da30a28a9a Testcase for #800
Signed-off-by: Dennis Huebner <dennis.huebner@gmail.com>
2018-10-08 15:51:16 +02:00
Dennis Huebner
bb6258d1be [ls] Diagnostics can never arrive to the client #800
Signed-off-by: Dennis Huebner <dennis.huebner@gmail.com>
2018-10-08 15:24:46 +02:00
Dennis Huebner
28a125ffc9
Merge pull request #887 from eclipse/dh-codeActionTests
Make it possible to test position based CodeActions
2018-10-08 09:59:00 +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
Dennis Huebner
199c60fdf0 Make it possible to test position based CodeActions
Signed-off-by: Dennis Huebner <dennis.huebner@gmail.com>
2018-09-27 13:33:31 +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
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
Karsten Thoms
53db23419d [#795] Implement Before/AfterEachCallback
Was Before/AfterTestExecutionCallback, which is executed after user
@BeforeEach callbacks. Injected members were not initialized in these
callbacks then.

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-07-24 16:12:33 +02:00
Christian Dietrich
801ba1d5f7 [eclipse/xtext#1236]
added support for junit 4 and junit 5 in testing api

Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-07-09 07:28:15 +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
Karsten Thoms
c8d00ded18 [#743] Relax lower bound for JUnit 5 bundles to 5.0.0
Makes bundles work on Oxygen.

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-05-17 22:19:38 +02:00
Christian Dietrich
b051e84aed removed unused imports
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-05-06 10:07:59 +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
Karsten Thoms
f71678b2bd [#666] JUnit 5 Support
Refactored common code of XtextRunnerTest and InjectionExtensionTest
into an abstract base class.

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-04-17 16:26:56 +02:00
Karsten Thoms
875e62c901 [#666] JUnit 5 Support
- implemented review comments
- adding JUnitVersion.DEFAULT
- added missing copyright headers for JUnitFragment and Junit4Fragment2
- changed lower bound for org.junit.jupiter.api.extension to 5.1.0

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-04-17 12:49:57 +02:00
Karsten Thoms
e10de81431 [#666] JUnit 5 support
- provide new InjectionExtension as replacement for XtextRunner
- added unit test for InjectionExtension
- added JUnit 5 dependencies

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-04-15 10:40:47 +02:00
Arne Deutsch
89ec47729e [522715] Copy/Clear new EAnnotationValidator registry map in EMF 2.14+.
Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2018-03-21 17:04:58 +01:00
Christian Dietrich
58113d0f41 Regenerated against lastest xbase-lib
https://github.com/eclipse/xtext/issues/1174

Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-02-26 15:07:09 +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
395854eb57 [#617] fixed typo in AbstractLanguageServerTest
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-02-02 09:51:07 +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
Christian Dietrich
b43b0080b9
Merge pull request #616 from eclipse/cd_issue_608
[#608] Fixed reuse issue with WrappingInjectorProvider
2018-01-16 07:12:31 +01:00
Christian Dietrich
4f10ab7038 [#608] make sure that WrappingInjectorProvider records changes to the global registry even if the delegate itself is a IRegistryConfigurator and its injector is already created so that createInjector does not do anything that could be recorded
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-01-15 16:59:17 +01:00