Commit graph

5371 commits

Author SHA1 Message Date
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
Moritz Eysholdt
053a1c5069 revert ef25bcbe4c, no performance increase 2016-10-13 19:30:55 +02:00
Moritz Eysholdt
bff7b4ec65 [serializer/perf] avoid redundant calls to .distanceToFinalStateMap()
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-13 19:30:55 +02:00
Miro Spönemann
6133e4db1d Merge pull request #142 from eclipse/msp/issue122
Change default binding of IReferableElementsUnloader to GenericUnloader
2016-10-13 15:52:11 +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
Miro Spönemann
bbda47b341 Fixed #122: Change default binding of IReferableElementsUnloader to GenericUnloader
Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-13 11:21:04 +02:00
Moritz Eysholdt
8d9cea5738 Merge pull request #139 from eclipse/msp/grammarConstraintProvider
[serializer] Improved performance of bounds computation
2016-10-11 15:48:50 +02:00
Miro Spönemann
e8682fbfd3 [serializer] Improved performance of bounds computation
Implemented new algorithms for computing upper and lower bounds in GrammarConstraintProvider

Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-11 15:38:09 +02:00
Moritz Eysholdt
ef25bcbe4c [serializer/performance] use an identity string to compare NFAs/PDAs. 2016-10-11 13:54:46 +02:00
Moritz Eysholdt
6c71e90449 [serializer/performance] use ArrayListMultimap
This avoids calls to hashCode() .equals() on values.
2016-10-11 13:54:46 +02:00
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
Karsten Thoms
81fd0de7dc [#118] Add validation that resource has no errors
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-10-11 00:01:37 +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
673fadb3d3 Merge remote-tracking branch 'upstream/master' 2016-10-10 10:52:02 +02:00
Akos Kitta
70e51e52d5 Adjusted language server's document highlight API.
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2016-10-10 10:51:56 +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
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