Commit graph

299 commits

Author SHA1 Message Date
Moritz Eysholdt
370ad8a48a [ChangeSerializer] track Resource URI changes
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-16 18:09:20 +02:00
Moritz Eysholdt
e470ca52d8 Proof-of-Concept of how to implement semantic code actions
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-15 17:30:15 +02:00
Moritz Eysholdt
825c430f3d Work on #387: Updating of textual changes after modifications of the AST
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-15 17:30:15 +02:00
Moritz Eysholdt
6180c3dabf Added test language for ChangeSerializer
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-15 17:30:15 +02:00
Moritz Eysholdt
aa84196b56 added ecore.change to dependencies of xtext.ide
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-15 17:30:15 +02:00
Anton Kosiakov
987146a77f [ls] unifies workspace configs
Signed-off-by: Anton Kosiakov <anton.kosyakov@typefox.io>
2017-08-09 09:48:30 +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
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
094d0306d3 Fixed #378: Throw a response error when workspace is not initialized 2017-07-14 13:30:43 +02:00
Anton Kosyakov
2ecf37f575 Merge pull request #376 from eclipse/ak/ls_cancellable_builds
[ls] cancellable builds
2017-07-05 17:33:30 +05:00
Anton Kosiakov
f66f444495 [RequestManager] fixed tests
Signed-off-by: Anton Kosiakov <anton.kosyakov@typefox.io>
2017-07-05 15:56:03 +05: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
Anton Kosiakov
ebd20a59b7 [ls] cancellable builds (asynchronous write requests)
Signed-off-by: Anton Kosiakov <anton.kosyakov@typefox.io>
2017-07-05 14:43:40 +05:00
Miro Spönemann
55e3eefcdb #57: Added a test with file scheme 2017-07-05 11:17:59 +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
Anton Kosiakov
a74a9108f1 Fixes eclipse/xtext-core#245
Signed-off-by: Anton Kosiakov <anton.kosyakov@typefox.io>
2017-06-18 11:43:33 +02:00
Sebastian Zarnekow
14b2f35684 Yet another attempt (tm) 2017-06-13 19:45:29 +02:00
Sebastian Zarnekow
9ba194e7f4 Another attempt to fix all the things (tm) 2017-06-13 16:45:44 +02:00
Sebastian Zarnekow
efa1c1c8b4 Put test langs into test source set 2017-06-13 15:54:33 +02:00
Sebastian Zarnekow
8f97ceae10 Attempt to fix the build, ignore Suites 2017-06-13 15:41:53 +02:00
Sebastian Zarnekow
63efd34885 Regenerated test languages 2017-06-13 13:11:51 +02:00
Sebastian Zarnekow
d4cb22078a Added content assist tests for intentation based langs 2017-06-12 15:14:19 +02:00
Sebastian Zarnekow
ae0d565b59 Removed empty test class 2017-06-12 15:01:29 +02:00
Christian Dietrich
a38d300cc3 code cleanup xtend warnings
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-05-24 14:52:38 +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
Sven Efftinge
8342fcb19f [LS / Incremental Builder] Fixed issues (failing tests) with reused resource sets 2017-02-02 09:34:47 +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
Miro Spönemann
02d3787904 Added common configuration file mwe2-workflows.gradle for generating Xtext languages from Gradle 2017-01-11 16:56:41 +01:00
Miro Spönemann
c8fc186e31 Removed project version constraints from test manifest 2017-01-06 13:57: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
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
Christian Schneider
1d79c61326 [ide.tests] added references across files test in 'ReferenceTest'
Signed-off-by: Christian Schneider <christian.schneider@typefox.io>
2016-12-21 11:34:32 +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
Karsten Thoms
ce58a244bd Removed unused imports
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-12-05 15:55:04 +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
91e38facaa Simplified coloring service API. Cleaned up unused extensions class.
- Fix issue when tried to update coloring for deleted file.

Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2016-11-15 23:05:58 +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
Sven Efftinge
25782217ff Merge pull request #166 from kittaakos/signature_help_fix
[LS] Fixed defect in signature help service.
2016-11-09 10:34:40 +01:00
Akos Kitta
4c38e8ce27 Manually resolved merge conflicts.
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2016-11-09 10:29:03 +01:00
Sven Efftinge
2dffc4f246 [LSP] fixed hanging tests 2016-11-09 09:56:52 +01:00
Sven Efftinge
e0705b0c41 [LSP] fixed test case 2016-11-08 18:42:30 +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
Akos Kitta
c518a4bbc0 [LS] Fixed defect in signature help service.
- It occurred when no arguments were used on use-side but were required
according to definition-side. Such cases parameter hints were not
available.
- Adjusted service interface name to Xtext conventions.

Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2016-11-02 10:07:49 +01:00
Miro Spönemann
986ec23fc7 Regenerated test languages
Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-17 10:05:07 +02:00
Miro Spönemann
3d22454111 #127: Regenerated test languages
Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-14 15:14:24 +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
Miro Spönemann
44bc1f733b Regenerated test languages
Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-13 15:29:31 +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
Miro Spönemann
a22ae0fda2 Added launch configs for xtext.ide tests
Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-05 16:59:05 +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
90383ff782 Fixed tests and cleaned up signature help implementation.
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2016-09-12 21:48:06 +02:00
Akos Kitta
7ec7501435 Merged master to signaturehelp_testlang_signedoff branch.
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2016-09-12 18:41:20 +02:00
Sven Efftinge
2aaa49fc3a [lsp] completion proposals should be sorted case-sensitively secondarily 2016-09-09 13:25:25 +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
Jan Koehnlein
a7ed852e9f [ls][hover] extracted get contents method for easier override 2016-09-02 15:48:27 +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
d7ad9acbb3 [LSP] completion - always use textedit, as otherwise vscode doesn’t reliably show the proposal 2016-08-26 15:36:52 +02:00
Sven Efftinge
9b9537b4b6 [LSP] fixed some issue with URI normalization 2016-08-26 12:02:25 +02:00
Sven Efftinge
25fa355faa [lsp] generally allow adding secondary files in test cases 2016-08-26 09:06:30 +02:00
Moritz Eysholdt
5e203dea8e implemented ContentAssistContextFactoryTest
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-08-11 16:02:36 +02:00
Moritz Eysholdt
449ddcc804 added a test language for partial content assist
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-08-11 16:02:35 +02:00
Moritz Eysholdt
714bfe79c4 created InjectorProviders for test language
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-08-11 15:35:52 +02:00
Moritz Eysholdt
15fb792a28 regenerated test languages
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-08-11 15:35:51 +02:00
Moritz Eysholdt
597496cfb6 migrated content assist tests from xtext-eclipse/o.e.x.ui.tests
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-08-10 15:34:06 +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
Christian Dietrich
e94bb9581a extended test language to feature non self contained cross references #20
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-07-26 06:36:09 +02:00
Christian Dietrich
acd1e60ab4 improved uri handling on windows. fixes #49
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-07-25 12:19:50 +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
Lorenzo Bettini
ea3766c5d7 Merge remote-tracking branch 'origin/master' into lb_srcGenFolder 2016-07-20 09:48:10 +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
Lorenzo Bettini
4fa59ea2d5 removed src-gen folder as source folder in .ide.tests
The src-gen folder is not used in this project and should be removed
from the .classpath to avoid build errors in Eclipse.

Signed-off-by: Lorenzo Bettini <lorenzo.bettini@gmail.com>
2016-07-19 17:15:23 +02:00
Jan Koehnlein
29fe693b9f [ls] recompute workspace config on configuration change + fixes for build 2016-07-14 18:23:48 +02:00
Jan Koehnlein
ce5688f3df [ls] support multi project workspaces 2016-07-13 12:05:37 +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
2b46d0e51f Replaced 'mwe2' configuration with 'mwe2' source set for more flexible dependency setup 2016-07-07 14:49:07 +02:00
Sven Efftinge
eb6805203c [ide] added generator to ide test language 2016-07-07 12:12:14 +02:00
Miro Spönemann
950eb8ae74 Removed old Gradle integration prefs 2016-07-07 11:22:13 +02:00
Miro Spönemann
decf9b22aa Checked in project metadata based on Buildship 2016-07-07 10:19:04 +02:00
Christian Dietrich
f8e2ceabc2 fixed typo Errorneous Erroneous
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-06-23 09:18:19 +02:00
Sven Efftinge
517f471423 [gradle] disable xtext generator, fixed wrong groovy string 2016-06-21 12:03:37 +02:00
Sven Efftinge
21423cc18c [ide] added IdeModule and IdeSetup - fixed #11 2016-06-21 11:54:54 +02:00
Sven Efftinge
ae59ba21cb [gradle] updated gradle config and metadata
added mwe2 dependencies
commented out bad dependencies in mwe2 files (they are still not running)
2016-06-21 11:12:12 +02:00
Miro Spönemann
0bc7f1fd20 Remove redundant .gitignore rules 2016-06-14 15:31:26 +02:00
Miro Spönemann
e1a4782403 Generated code 2016-06-14 09:45:31 +02:00
Miro Spönemann
96edcf48ae Removed buildship.core.prefs 2016-06-14 09:44:34 +02:00
Miro Spönemann
4270986cba Moved projects to root of repository 2016-06-14 08:30:25 +02:00