Commit graph

191 commits

Author SHA1 Message Date
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
Sebastian Zarnekow
97f3d9e9e0 Apply proper restore logic also to SmokeTest infra 2019-05-18 18:41:45 +02:00
Christian Dietrich
86fb88215c fixed deprecations with java 11
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-05-07 12:18:47 +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
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
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
a7a45658ef Really use the latest Xtend 2017-12-08 15:39:38 +01:00
Sebastian Zarnekow
5300cd812f Compiled with latest Xtend 2017-12-08 15:17:13 +01:00
Christian Dietrich
9e66409f38 regenerated xtend code (java 9 java.lang.Module conflict)
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-12-01 19:13:09 +01:00
Christian Dietrich
4960af9c0a set version to 2.14
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-10-27 09:03:34 +02:00
Jan Koehnlein
4132407834 [rename] change serializer based rename refactoring 2017-09-29 16:31:32 +02:00
Sven Efftinge
11c084dc5e GH-73 Replaced the string replace with URI factory to fix the authority.
Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
2017-09-13 17:24:57 +02:00
Christian Dietrich
ee17620eb6 added missing @override annotations
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-09-05 20:15:44 +02:00
Sven Efftinge
4731723531 [lsp testing] switched back to synchronous testing mode.
Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
2017-07-25 13:06:30 +02:00
Sven Efftinge
afe4eac960 [LSP] Fixed concurrency issues in RequestManager
Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
2017-07-25 09:53:39 +02:00
Sven Efftinge
3e47aefea4 [LSP] Added language hook for ‘codeAction’.
Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
2017-07-21 10:04:58 +02:00
Moritz Eysholdt
fb758b8e98 Allow to fill the InMemoryURIHandler programmatically with content
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-07-18 13:14:18 +02:00
Sven Efftinge
139d01f703 [lsp] added hooks for code lenses and language specific capabalities
Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
2017-07-18 09:45:01 +02:00
Miro Spönemann
84dece4cd4 Merge pull request #372 from eclipse/msp_issue57
Create an in-memory workspace configuration when no root URI is given
2017-07-05 12:45:55 +02:00
Karsten Thoms
f46a269fdd gradleprojectbuilder added by Buildship project import
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-07-01 23:09:36 +02:00
Miro Spönemann
d424d9f80d Fixed #57: Create an in-memory workspace configuration when no rootURI is given 2017-06-30 11:17:51 +02:00
Sven Efftinge
50cb47acb9 Merge pull request #334 from miklossy/master
[#315] Enable issue matching customization of the ValidationTestHelper.
2017-06-14 17:08:29 +02:00
Miro Spönemann
a75bac8287 Increased version number to 2.13.0-SNAPSHOT 2017-05-24 13:41:16 +02:00
Mikhail Muhin
66a57d59e5 Windows tests fix (linesep)
Signed-off-by: Mikhail Muhin <delred@yandex.ru>
2017-05-17 17:09:24 +03:00
Tamas Miklossy
07bd371815 [#315] Enable issue matching customization of the ValidationTestHelper.
- Introduce enum Mode with the DEFAULT, EXACT, REGEX values.
- Modify the validation issue matching mechanism to consider the current
value of this parameter.
- Add since tags.

Signed-off-by: Tamas Miklossy <miklossy@itemis.de>
2017-05-14 13:32:55 +02:00
Lorenzo Bettini
822e76cf7e Added tests for .xtext.testing.Flaky
Since now Flaky is also part of .xtext.testing, I copied the tests for
Flaky from .junit4.tests project

Signed-off-by: Lorenzo Bettini <lorenzo.bettini@gmail.com>
2017-03-06 11:54:25 +01:00
Lorenzo Bettini
e763d9adc2 Copied Flaky into .xtext.testing
This annotation was still present in .xtext.junit4, so why not copying
that into the new .xtext.testing and then later deprecate the one in
.xtext.junit4?

Signed-off-by: Lorenzo Bettini <lorenzo.bettini@gmail.com>
2017-03-03 14:58:47 +01:00
akosyakov
361ac9f799 Replace Either<T, List<T>> with List<T> 2017-02-07 08:42:06 +05:00
akosyakov
14f8f9b58b [lsp] apply Either type 2017-02-03 19:53:13 +05:00
akosyakov
b7a5726d9f Migrate to the version 0.2.0-SNAPSHOT of lsp4j 2017-02-02 11:06:48 +05:00
Miro Spönemann
0bc4eb7975 Merge branch 'release_2.11.0' 2017-01-31 13:16:13 +01:00
Karsten Thoms
6dc1063633 Change import of AssumptionViolatedException
With JUnit 4.12 the class was made public API, the old class is
deprecated.

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-01-25 09:58:09 +01:00
Miro Spönemann
c5710fb2b1 Updated to LSP4J 0.1.1 2017-01-24 15:17:27 +01:00
Miro Spönemann
ba911b4790 Lifted version number to 2.12.0-SNAPSHOT 2017-01-18 11:47:03 +01:00
Miro Spönemann
0515d22685 Refreshed projects with Buildship 2.0 2017-01-12 10:32:06 +01:00
Moritz Eysholdt
e968946b4f [formatter/performance] Don't create stack traces
This change:
- introduces a flag that by default disables creation of stack traces
- lets the formatter do a second pass on conflict with that flag enabled

This combines the benefits of both worlds:
- performance without the need for tweaking
- debug information without the need to enable some magic config

see 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=508894
https://bugs.eclipse.org/bugs/show_bug.cgi?id=507174
https://github.com/eclipse/xtext-core/pull/195

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-01-10 17:54:44 +01:00
Karsten Thoms
82956ee954 Removed unnecessary cast
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-01-05 07:53:36 +01:00
Karsten Thoms
9d167ecacb Fixed javadoc links
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-01-05 07:51:23 +01:00
Karsten Thoms
56f1d1079e [492072] Regenerated Xtend code
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-01-02 14:33:55 +01:00
Karsten Thoms
55b7531d74 Merge pull request #210 from eclipse/kth_bug492072
[492072] Minimized usage of local variables
2016-12-22 14:20:40 +01:00
Christian Schneider
290b698f95 [xtext.testing + xtext.wizard] fix/improvement of build config of test projects in 'TestProjectDescriptor'
* consolidated version of 'org.junit' with our reference in 'gradle/versions.gradle' (currently 4.12)
* added dependency to 'junit:junit:4.12' with scope 'testCompile' to templates of 'pom.xml' + 'build.gradle'

Signed-off-by: Christian Schneider <christian.schneider@typefox.io>
2016-12-22 10:44:42 +01:00
Karsten Thoms
c9b7bf5af2 [492072] Minimized usage of local variables
The Xtend compiler was optimized to minimize the usage of synthetic variables for member feature calls and right-hand assignments

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-12-22 00:54:25 +01:00
Karsten Thoms
f2b5cdfe39 [507077] Do not emit empty concatenation
Changes to generated Xtend code due to compiler optimization

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-12-19 15:47:59 +01:00
Sven Efftinge
f035aba82b [LSP] moved aquiring read lock back into the function, to avoid a deadlock in cases doRead is called from within a write lock. 2016-12-15 10:42:18 +01:00
Karsten Thoms
b4d74f732b [eclipse/xtext#1089] Regenerated xtend-gen code
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-12-02 16:47:33 +01:00
Karsten Thoms
08194ce996 [eclipse/xtext#1089] Replace (not)equal operators by triple (not)equals
For comparison with null the triple (not) equal operator should be used. Resolved compiler warnings

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-12-02 16:46:25 +01:00
Karsten Thoms
79c3eab77c [#5] Changes to .classpath generated by Buildship import
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-11-30 10:00:21 +01:00
Karsten Thoms
8c381f8d59 Gradle composite
see https://github.com/eclipse/xtext-umbrella/issues/3

Remove org.eclipse.buildship.core.prefs
Files are generated on Gradle project import or by Oomph setup

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-11-28 14:41:08 +01:00
Karsten Thoms
c637df9451 Gradle composite
connection.project.dir changed to composite build location in new
umbrella project
value 'containers' added by Buildship

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-11-25 08:49:49 +01:00
Akos Kitta
f898ee0942 Wired coloring service into the language server. Added build listener.
- When language client extension is connected to the server, it will
receive coloring updates as push notifications after each build event if
a concrete coloring service is available for the particular language.
 - Implemented a simple coloring service for the test language.
 - Reused ColoringParams and ColoringInformation from LSP4J, removed
redundant code.
 - Added extensions for coloring parameters.

Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2016-11-15 18:27:43 +01:00
Akos Kitta
fd8aa2f397 Updated coloring LSP extension service API.
- Renamed semantic highlighting to coloring.
 - Updated abstract test class to provide coloring parameters.

Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2016-11-15 13:33:21 +01:00