Commit graph

173 commits

Author SHA1 Message Date
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
Sven Efftinge
593d891b17 [LSP] Introduced ILanguageServerAccess for LSP extensions to access documents, resources and get build notifications. Also added support for Client extensions. 2016-11-08 14:13:39 +01:00
Sven Efftinge
bb6e84bb28 [LSP] Introduced DocumentAccess to allow accessing document and resources in a safe way from within LSP extensions 2016-11-07 15:00:41 +01:00
Sven Efftinge
7bd5276760 [LSP] Introduced LanguageServerExtension to make LSP extendable by languages. 2016-11-06 16:05:34 +01:00
Sven Efftinge
baebe053cd [LSP] migrated to lsp4j 0.1.0 2016-11-05 20:52:35 +01:00
Miro Spönemann
b92f63bc54 eclipse/xtext#1080: Add name and description to generated poms
Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-23 13:36:04 +02:00
Akos Kitta
d161e9ee13 Manually merged conflicting changes from upstream/master.
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2016-10-14 13:56:01 +02:00
Moritz Eysholdt
d2bc2f52f1 [serializer/perf] don't generate events for unassigned parser rules
Because they're neither consumed by the old- nor the new formatter.
And they are not needed to generate text.

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-13 19:30:55 +02:00
Akos Kitta
62c439af26 Merged conflicting changes.
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2016-10-10 11:25:57 +02:00
Akos Kitta
37ec51a710 Added basic document highlight implementation.
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2016-10-10 10:49:35 +02:00
Sven Efftinge
0d929c802f [lsp testing] Added optional assert hook as an alternative to the convenient but fragile string comparison approach 2016-10-10 09:16:16 +02:00
Sven Efftinge
22c8d64437 [LSP] minor improvements in error handling 2016-09-30 13:42:03 +02:00
Sven Efftinge
9f39754cba [lsp] introduced Contentassistentry#documentation, pad sortText. 2016-09-27 12:48:26 +02:00
Christian Dietrich
145aa781a2 Merge pull request #103 from kthoms/kth/build_gradle_tab_for_space
[format] Streamlined whitespaces
2016-09-14 16:15:52 +02:00
Karsten Thoms
9b0947fe62 [format] Streamlined whitespaces
Consistent use of tabs instead of spaces
Use single whitespace between brackets

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-09-14 16:00:10 +02:00
Sven Efftinge
f4b8bd4037 [lsp] allow calling uri-based services without require document being opened before. E.g. formatting could be called from a file browser’s context menu, without opening an editor first. 2016-09-14 15:07:48 +02:00
Akos Kitta
e1628b5ca5 [LS] Added basic signature help support for the test language.
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2016-09-07 14:23:49 +02:00
akosyakov
aea7ec628c [ls] Build a closed in memory file as deleted
Change-Id: I7e51fda6ae864a30cda4645066b97bd1c78c2309
Signed-off-by: akosyakov <anton.kosyakov@typefox.io>
2016-09-01 09:32:40 +02:00
Sven Efftinge
25fa355faa [lsp] generally allow adding secondary files in test cases 2016-08-26 09:06:30 +02:00
Christian Dietrich
292d78f5e9 fixed another eclipse metadata flaw
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-08-20 09:30:55 +02:00
Christian Dietrich
0a9f2b5b0a added log4j.spi to imported packages
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-08-19 22:37:37 +02:00
Christian Dietrich
5738a92b86 fixed broken eclipse metadata
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-08-19 21:45:11 +02:00
Christian Dietrich
f0f3c52f2d added missing smoketest package export in xtext.testing
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-08-19 18:56:39 +02:00
Christian Dietrich
de95cc4a25 added missing logging package export in xtext.testing
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-08-19 17:12:44 +02:00
Christian Dietrich
d8dc3ff328 fixed hoverservice for non self contained cross references #20
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-07-26 09:51:05 +02:00
Miro Spönemann
621697d56f Updated for recent ls-api changes: renamed 'container' to 'containerName' 2016-07-25 12:39:51 +02:00
Christian Dietrich
1d23072608 implementation and test for formatting service #21
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-07-25 11:29:58 +02:00
Miro Spönemann
857a33656d Updated for recent ls-api changes: moved implementations to 'impl' subpackage 2016-07-21 16:35:03 +02:00
Miro Spönemann
6a7b298343 Updated for recent ls-api changes: using new builders and impl constructors 2016-07-21 12:02:33 +02:00
Christian Dietrich
e13ac6c279 update to ls-api 0.3.0-SNAPSHOT
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-07-19 19:08:57 +02:00
akosyakov
d21cad280c [LSI][contentAssist] Compute a text edit for entries with non empty
prefix
2016-07-12 16:11:43 +02:00
Miro Spönemann
f1a65fc4b9 Removed deprecated dummy classes (the original classes have been marked deprecated in xtext.junit4) 2016-07-08 11:40:14 +02:00
Miro Spönemann
1913c082aa Removed @since tags (the xtext.testing classes are all new) 2016-07-08 11:38:56 +02:00
Miro Spönemann
e80ec81fd7 Updated manifests and launch configs, added filter for parent subfolders 2016-07-08 11:36:31 +02:00
Miro Spönemann
decf9b22aa Checked in project metadata based on Buildship 2016-07-07 10:19:04 +02:00
Miro Spönemann
3c6725c105 Removed project meta data 2016-07-07 10:09:01 +02:00
Sven Efftinge
9cd2da7dad update gradle version for better workspace resolution, include testlanguages.ide 2016-07-07 09:22:11 +02:00
Moritz Eysholdt
f5473c664f provide deprecated classes with same simple name to ease migration
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-06-19 12:38:09 +02:00
Moritz Eysholdt
eb8fac36f7 renamed org.eclipse.xtext.junit4 to org.eclipse.xtext.testing 2016-06-17 18:05:10 +02:00
Moritz Eysholdt
9e0a31aec5 added generated files 2016-06-17 17:59:39 +02:00
Miro Spönemann
e1a4782403 Generated code 2016-06-14 09:45:31 +02:00
Miro Spönemann
4270986cba Moved projects to root of repository 2016-06-14 08:30:25 +02:00