Commit graph

5256 commits

Author SHA1 Message Date
Moritz Eysholdt
37072866dc [serializer/performance] make identity string computation faster 2016-10-11 13:54:46 +02:00
Sven Efftinge
f096887f0b [LSP] don’t do a runWrite on didSave, because it cancels previous write actions. 2016-10-11 09:26:45 +02:00
Moritz Eysholdt
80a6f9fcf8 [serializer/performance] avoid redundant grammar analysis 2016-10-11 08:49:25 +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
Miro Spönemann
54b63bc0d9 Merge pull request #102 from kthoms/kth/issue101
[#101] Configure lineDelimiter in workflows
2016-10-10 08:35:17 +02:00
Moritz Eysholdt
e90d21797e fixed eclipse/xtext-eclipse#100 serializer/performance fix regression
This disables a check with a legacy impl. 
The check should never be active at runtime.
Unfortunately, the legacy impl has a bug when a node's parent is null.

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-07 20:33:52 +02:00
Moritz Eysholdt
d59869f704 [serializer/performance] avoid redundant traversal of node model
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-07 20:18:44 +02:00
Moritz Eysholdt
40016bd0dd regenerated test languages
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-07 20:16:47 +02:00
Moritz Eysholdt
c683d48d8b [serializer/performance] never resolve cross references
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-07 20:16:47 +02:00
Moritz Eysholdt
914880e1d7 [XtextGenerator] improve error reporting
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-07 20:16:47 +02:00
Moritz Eysholdt
607e2cd031 regenerated test languages
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-07 15:26:40 +02:00
Moritz Eysholdt
127b2af797 Removed test case triggering new validation rule
The validation rule was introduced in
73fd155426

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-07 15:26:40 +02:00
Moritz Eysholdt
88b34d57c8 [serializer] fixed a NPE
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-07 15:26:40 +02:00
Karsten Thoms
9697786f3d [#101] Configure lineDelimiter in workflows
Add 'lineDelimiter' to project configuration and generate it to the
'code' configuration in the workflow.
Adjusted test expectations.


Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-10-07 15:07:30 +02:00
Moritz Eysholdt
423780cf3e fix eclipse/xtext-extras#63 broken serializer tests
this is a fixup for cb9981d14cc279cb0433b63c9c88f8ebf20ba739

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-07 14:21:12 +02:00
Miro Spönemann
9e579127ee Merge pull request #123 from kthoms/kth/bug502879
[502879] Streamlined plugin metadata
2016-10-07 11:34:30 +02:00
Miro Spönemann
8b795af1c8 Merge pull request #100 from kthoms/kth/bug378980_2
[378980] Refactored calls on deprecated API
2016-10-07 11:07:07 +02:00
Moritz Eysholdt
93ca0d1487 [serializer/performance] fixed broken hashCode() function
'parameterValues' was usually emptySet() 
so parameterValues.hashCode() returned 0 
which caused this hashCode() method to return 0

nothing but collisions when used as key in maps! duh!

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-06 23:30:40 +02:00
Moritz Eysholdt
17a85f155d [serializer/performance] improved performance of node model traversal
this change deprecates EmitterNodeIterator since it relies on 
expensive calls to iNode.getOffset(). 

Furthermore, it simplifies the implementation because 
- lazy behavior does not provide advantages here
- 'allowHidden' and 'passAbsorber' were always false.

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-06 16:46:52 +02:00
Moritz Eysholdt
b717ec5b87 removed a System.out.println()
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-06 16:46:52 +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
Miro Spönemann
c47a78e570 Using more explicit toString method
Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-05 16:58:46 +02:00
Miro Spönemann
bf6bf4799d Fixes #19: Added null check for kind in IdeContentProposalCreator
Also corrected spelling in ContentAssistEntry.UNKNOWN

Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-05 16:34:55 +02:00
Karsten Thoms
38f4122a2b [502879] Streamlined plugin metadata
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-09-30 17:17:31 +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
Sven Efftinge
7c51af4e58 [lsp] use language specific proposal acceptor, added SerializableEObjectDescriptionProvider hook 2016-09-27 01:17:00 +02:00
Sven Efftinge
d98fc98882 [lsp] generate ‘sortText’ based on the actual order of elements 2016-09-26 16:44:41 +02:00
Lorenzo Bettini
c93db76702 Merge pull request #109 from kthoms/kth/issue108
[#108] Ecore2Xtext use new formatter fragment
2016-09-26 09:12:44 +02:00
Karsten Thoms
eba4be8428 [#108] Ecore2Xtext use new formatter fragment
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-09-26 08:11:50 +02:00
Moritz Eysholdt
de63ac699e Merge pull request #117 from eclipse/me_gh-14_formatter_identity_edits
fixed #14: [formatter2] honor FormatterRequest.allowIdentityEdits
2016-09-25 23:22:41 +02:00
Moritz Eysholdt
6bbad4f142 fixed #14: [formatter2] honor FormatterRequest.allowIdentityEdits
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-09-25 23:15:59 +02:00
Moritz Eysholdt
7f6980e578 Merge pull request #116 from eclipse/me_gh-97_formatter_autowrap
fixed #97 [Formatting2/auto-wrap] never wrap preceding lines
2016-09-25 23:01:03 +02:00
Moritz Eysholdt
7c7e1f88b7 fixed #97 [Formatting2/auto-wrap] never wrap preceding lines
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-09-25 22:50:45 +02:00
Lorenzo Bettini
4de451dd36 Merge pull request #104 from kthoms/kth/issue5
[#5] Ignore optional compile problems on *-gen source folders
2016-09-23 17:15:56 +02:00
Karsten Thoms
312e0af4d6 [#5] Ignore optional compile problems on *-gen source folders
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-09-23 15:51:18 +02:00
Lorenzo Bettini
a0c58ecdd9 Merge pull request #113 from kthoms/kth/issue112
[#112] Generate launch configs for Xtext workflow and Runtime Eclipse
2016-09-23 15:11:41 +02:00
Karsten Thoms
4b1737a6a7 [#112] Generate launch configs for Xtext workflow and Runtime Eclipse
- Launch config for Runtime Eclipse is only generated when the runtime
project is a plugin project.
- Launch config for Xtext workflow is dependent on the build system. For
plain Maven projects the launch config uses the m2e launcher, for Gradle
builds buildship is launched.

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-09-23 14:03:06 +02:00
Sven Efftinge
0c7d7d4b70 [LSP] moved acceptor into primary signature, to allow proper handling of cancellation 2016-09-21 11:54:04 +02:00
Sven Efftinge
02d5b54ffd use lsapi 0.3.0 2016-09-20 17:11:50 +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
Karsten Thoms
52f4fc8417 [378980] Refactored calls on deprecated API
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-09-14 09:13:11 +02:00
Sven Efftinge
34d6657822 Merge pull request #95 from kittaakos/signaturehelp_testlang_signedoff
[LS] Added basic signature help support for the test language.
2016-09-13 20:57:24 +02:00
Moritz Eysholdt
d08b8693ca Merge pull request #99 from kthoms/kth/bug378980
[378980] Adjusted test: Manifest line break is system dependent
2016-09-13 11:38:26 +02:00
Karsten Thoms
8585d50734 [378980] Adjusted test: Manifest line break is system dependent
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-09-13 09:38:46 +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
Moritz Eysholdt
86dddf8612 Merge pull request #96 from kthoms/kth/bug378980
[378980] Make line delimiter for Manifest configurable by CodeConfig
2016-09-12 14:10:48 +02:00