Commit graph

5834 commits

Author SHA1 Message Date
Jan Koehnlein
4ec4a1bdb4 [serializer] handle duplicate resource registration gracefully
[refactoring] some API improvements

[refacroring] a bit of JavaDoc
2017-08-18 13:48:57 +02:00
Moritz Eysholdt
cae9fd0ef3 [ChangeSerializer] bugfix in related resource computation
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-18 11:57:29 +02:00
Moritz Eysholdt
5fcb0433b7 [ChangeSerializer] improved handling of insertions
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-18 11:27:27 +02:00
Moritz Eysholdt
fcdd7c4011 [TextRegionAccess] keep track of containment among EObjectRegions
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-18 11:24:29 +02:00
Moritz Eysholdt
0fe2568d92 [ChangeSerializer] use language specific IEObjectDescriptionProvider
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-17 15:23:48 +02:00
Sven Efftinge
ffca82299a [lsp] added workspace/executeCommand support (fixes #425)
Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
2017-08-17 15:22:10 +02:00
Moritz Eysholdt
b24879903a [ChangeSerializer] don't treat moved resources as related
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-17 13:40:37 +02:00
Moritz Eysholdt
7b57bd86d8 [ChangeSerializer] allow more services to have language specific impls
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-17 13:40:37 +02:00
Jan Köhnlein
484b5fe0b5 Merge pull request #428 from eclipse/jk/new_refactoring
[refactoring] extracted LTK independent APIs to ide
2017-08-17 11:08:50 +02:00
Jan Koehnlein
faee40e062 [refactoring] extracted LTK independent APIs to ide 2017-08-17 09:29:51 +02:00
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
80f8bca39f [debug] also visualize changes that only change URIs but not text
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-16 18:09:20 +02:00
Moritz Eysholdt
3fc6e535ca [ChangeSerializer] export packages with access restriction
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-16 18:09:20 +02:00
Christian Dietrich
79b887e3de Merge pull request #418 from eclipse/cd_issue417
Fixed FormattableDocumentTest.autoWrapInsert on windows
2017-08-16 08:30:54 +02:00
Christian Dietrich
9034b8af03 fixed ecore change version
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-08-16 07:14:36 +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
Moritz Eysholdt
5c16f5f0cf [JavaFormatting] set auto-wrap trigger to 120 chars
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-15 17:30:15 +02:00
Christian Dietrich
eae67a68de Merge pull request #420 from eclipse/cd_issue419
generate initialization of nameMapping with chunked method calls #419
2017-08-14 17:59:28 +02:00
Christian Dietrich
09b1e98a21 generate initialization of nameMapping with chunked method calls #419
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-08-14 17:42:11 +02:00
Moritz Eysholdt
6e1c95670e Moved Ecore support to test languages
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-11 11:58:03 +02:00
Moritz Eysholdt
b21c274f8b regenerated test languages
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-11 11:58:03 +02:00
Moritz Eysholdt
0845899c84 Support Modifications on a TextRegionAccess
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-11 08:07:05 +02:00
Moritz Eysholdt
3193d0240f Updated region access test language
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-11 08:07:05 +02:00
Moritz Eysholdt
9d8bfe5c5a [JavaFormatter] auto-line-wrap for Code+Comments to 120 chars
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-11 08:07:05 +02:00
Christian Dietrich
5eba4a0ba5 Fixed FormattableDocumentTest.autoWrapInsert on windows
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-08-10 14:46:21 +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
Sebastian Zarnekow
4a59384b6f Missing @since tags 2017-08-07 11:13:13 +02:00
Christian Dietrich
45f3064d67 Merge pull request #412 from eclipse/cd_bug468777
[468777] [formatter] ITextRegionAccess.regionForEObject(EObject) should throw exception for resource-external eobjects
2017-08-04 13:48:19 +02:00
Christian Dietrich
4857bce25b [468777] [formatter] ITextRegionAccess.regionForEObject(EObject) should throw exception for resource-external eobjects
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-08-04 13:37:02 +02:00
Karsten Thoms
4a07a98066 Merge pull request #390 from eclipse/kth_issue299
[eclipse/xtext-eclipse#299] Added support for Language Server Jar
2017-08-04 00:59:36 +02:00
Karsten Thoms
715bcb249b [eclipse/xtext-eclipse#299] Added support for Language Server Jar
The IDE project's build can be extended to create an executable Language
Server. The Language Server can be configured to be built either as a
distribution with seperate jars or as a fat jar.
Due to a limitation of the maven-shade-plugin in a Maven/Tycho
environment the build must be tweaked a bit to materialize dependencies
with the maven-dependencies-plugin and attached for inclusion with the
addjars-maven-plugin.

Extended the test suite for the different configurations with language
server support:
- plain Maven
- Maven/Tycho
- Gradle

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-08-03 17:31:40 +02:00
Karsten Thoms
ba4bd8afea [eclipse/xtext-eclipse#299] Added support for Language Server Jar
The IDE project's build can be extended to create an executable Language
Server. The Language Server can be configured to be built either as a
distribution with seperate jars or as a fat jar.
Due to a limitation of the maven-shade-plugin in a Maven/Tycho
environment the build must be tweaked a bit to materialize dependencies
with the maven-dependencies-plugin and attached for inclusion with the
addjars-maven-plugin.

Extended the test suite for the different configurations with language
server support:
- plain Maven
- Maven/Tycho
- Gradle

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-08-03 14:33:21 +02:00
Moritz Eysholdt
1a57c83086 [textRegionAccess] simplified inheritance hierarchy
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-03 14:21:35 +02:00
Karsten Thoms
4a5f5e5e15 [eclipse/xtext-eclipse#299] Added support for Language Server Jar
The IDE project's build can be extended to create an executable Language
Server. The Language Server can be configured to be built either as a
distribution with seperate jars or as a fat jar.
Due to a limitation of the maven-shade-plugin in a Maven/Tycho
environment the build must be tweaked a bit to materialize dependencies
with the maven-dependencies-plugin and attached for inclusion with the
addjars-maven-plugin.

Extended the test suite for the different configurations with language
server support:
- plain Maven
- Maven/Tycho
- Gradle

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-07-31 10:05:33 +02:00
Alex Tugarev
bf995d259b [textRegionAccess] Fixed missing import.
Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
2017-07-31 09:45:45 +02:00
Karsten Thoms
f8ccf33644 Merge pull request #409 from AlexTugarev/GH-408
[textRegionAccess] Make state of `NodeModelBasedRegionAccessBuilder` accessible in subclasses
2017-07-29 18:51:42 +02:00
Alex Tugarev
d8c31d4a79 [textRegionAccess] Make state of NodeModelBasedRegionAccessBuilder accessible in subclasses.
Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
2017-07-29 05:01:45 +02:00
Sven Efftinge
3f4d25f789 Merge pull request #406 from eclipse/se_synch_lsp_test
[lsp testing] switched back to synchronous testing mode.
2017-07-25 18:10:40 +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
b17dd981c2 Merge pull request #405 from eclipse/se_lsp_request_manager
[LSP] Fixed concurrency issues in RequestManager
2017-07-25 10: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
Sebastian Zarnekow
6fbc7bcea2 Do not increase the syntax error count in strict mode at EOF location
Fixes issue 341
2017-07-23 19:57:26 +02:00
Sebastian Zarnekow
2580fb8ffc Minor cleanup in GrammarUtils 2017-07-23 19:52:22 +02:00
Sven Efftinge
8fb0ae8d39 Merge pull request #400 from eclipse/lsp_codeActions
[LSP] Added language hook for ‘codeAction’.
2017-07-21 10:54:28 +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
58ca794e9e fixed #398: formatting must not be applied outside requested regions
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-07-20 19:19:34 +02:00
Moritz Eysholdt
dd63a84305 Make it easier to traverse text regions of a TextRegionAccess
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-07-18 13:15:31 +02:00