Commit graph

6045 commits

Author SHA1 Message Date
Jan Koehnlein
456de3691a [lsp] removed JIT bindings for rename refactoring 2017-10-02 15:21:16 +02:00
Jan Koehnlein
0873e2f12d [tests] regenerated test languages 2017-10-02 15:20:40 +02:00
Jan Koehnlein
389013e886 [generator] added option to RefactorElementNameFragment to generate CS-based refactoring code 2017-10-02 15:19:51 +02:00
Jan Koehnlein
307bd2b313 [generator] allow inner classes to be bound by fragments 2017-10-02 15:18:48 +02:00
Jan Koehnlein
b12f7e1e82 [refactoring] moved/renamed classes of CS-based refactoring 2017-10-02 15:17:48 +02:00
Christian Dietrich
abc098556c Merge pull request #484 from tkutz/tku_templateNodeWhitespace
#483: Remove last whitespaces only when appending separator in for-loops
2017-10-01 21:26:50 +02:00
Knut Wannheden
ea7e45a602 #481: Improve performance of ResourceStorageLoadable
Wrap ZipInputStream in a BufferedInputStream before reading from it with
with a DataInputStream or ObjectInputStream. This improves performance
quite significantly (overall roughly by a factor 4), as the
decompression works much more efficiently with larger chunks of data.

Signed-off-by: Knut Wannheden <knut.wannheden@paranor.ch>
2017-10-01 21:23:32 +02:00
Jan Koehnlein
1245d9893d changes according to feedback 2017-09-29 16:31:32 +02:00
Jan Koehnlein
fdd7c61451 [api] refactored the change serializer API 2017-09-29 16:31:32 +02:00
Jan Koehnlein
b31949c99b [refactoring] added name validation 2017-09-29 16:31:32 +02:00
Jan Koehnlein
0a891cba1c [releng] added missing @since tags 2017-09-29 16:31:32 +02:00
Jan Koehnlein
4132407834 [rename] change serializer based rename refactoring 2017-09-29 16:31:32 +02:00
Jan Koehnlein
a2f13444bd [cs] handle self-ref and direct refs when updating references 2017-09-29 16:31:32 +02:00
Jan Koehnlein
69b3b4504e [cs] use resolved element for SimpleNameDescriptions 2017-09-29 16:31:32 +02:00
Jan Koehnlein
9072f721e1 [refactoring] on copy, load the original resource separately before changing its URI 2017-09-29 16:31:32 +02:00
Jan Koehnlein
bee8529bf5 [refactoring] changes based on internal discussions
- use one strategy call for all changes
- have a single change type per context
- use changeSerializer.updateRelatedFiles = false for copy refactorings
- load resource, resolve it, change the URI and then startRecording for copy
2017-09-29 16:31:32 +02:00
Jan Koehnlein
c4d33d4186 [refactoring] refactored resource relocation and added CopyParticipant 2017-09-29 16:31:32 +02:00
Thomas Kutz
0b74443d41 [#483] Append trailing whitespaces and newlines after appending separator in for-loops
Signed-off-by: Thomas Kutz <thomas.kutz@itemis.de>
2017-09-29 13:40:36 +02:00
Christian Dietrich
25e2d9d381 dont generate xbase deps to tests
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-09-28 11:41:45 +02:00
Karsten Thoms
bae491cbbf Merge pull request #479 from eclipse/issue355_update_repo_urls
[#355] Update repository URLs
2017-09-28 11:34:05 +02:00
Karsten Thoms
bac931ccfa Merge pull request #480 from eclipse/issue355_xtextversion_mwe
[#355] Update MWE to 2.9.1
2017-09-28 11:23:41 +02:00
Karsten Thoms
c507600bb9 [#355] Update MWE to 2.9.1
Changed wizard test expectation

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-09-28 11:19:33 +02:00
Karsten Thoms
3512bacf62 [#355] Update repository URLs
- MWE 2.9.1
- Oxygen.1

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-09-28 11:03:57 +02:00
Karsten Thoms
ed35e90470 Merge pull request #478 from eclipse/xtext_core_355
[eclipse/xtext-core#355] Upgrade MWE version
2017-09-28 08:17:24 +02:00
Karsten Thoms
79c28aea79 [eclipse/xtext-core#355] Upgrade MWE version
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-09-28 00:39:34 +02:00
Moritz Eysholdt
c1014a0972 [formatter/perf] Avoid calling List.newArrayList() during autowrap
To navigate the TextReplacers in reverse order, this change introduces a
reversed iterable. Thus, it is no longer necessary to copy all the 
TextReplacers into a list for reverse navigation.


Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-09-27 19:42:42 +02:00
Christian Dietrich
19b98df5b3 Merge pull request #474 from RealTYPICAL/master
https://github.com/Microsoft/language-server-protocol/blob/master/pro
2017-09-27 12:52:18 +02:00
James Tooley
19986743a1 Added generated java file. 2017-09-27 11:06:30 +02:00
Christian Dietrich
9f287c9ed1 Merge pull request #465 from eclipse/cd_extras_issue26
URIsInEcoreFilesTest fails in Eclipse
2017-09-27 11:03:00 +02:00
Christian Dietrich
0d566ebc2c added missing prefs file
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-09-27 10:23:38 +02:00
James Tooley
27bd8abb0d https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md Server should exit with success or fail code when exit has been called.
Exit Notification

A notification to ask the server to exit its process. The server should exit with success code 0 if the shutdown request has been received before; otherwise with error code 1.

Notification:

method: 'exit'
params: void

from
https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md

Signed-off-by: James Tooley <jetter019@msn.com>
2017-09-26 16:18:53 +02:00
Karsten Thoms
14077a95a1 Merge pull request #471 from eclipse/kth_issue470
[#470] Contribute org.eclipse.core.contenttype.contentTypes extension
2017-09-26 14:40:22 +02:00
Christian Dietrich
6b98c5cd09 Merge pull request #469 from eclipse/cd_issue460_indent
fixed indent tests on windows #460
2017-09-26 14:12:38 +02:00
Karsten Thoms
df893fa468 [#470] Contribute org.eclipse.core.contenttype.contentTypes extension
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-09-25 23:04:10 +02:00
Christian Dietrich
36792dd026 Merge pull request #466 from eclipse/cd_issue348
removed EncodingTest.testSetup #348
2017-09-25 15:52:16 +02:00
Christian Dietrich
a4a96fd94c Merge pull request #468 from eclipse/cd_issue467
[Tracing] Allow to specify UseForDebugging #467
2017-09-25 15:39:20 +02:00
Christian Dietrich
762430602a fixed indent tests on windows #460
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-09-25 10:54:56 +02:00
Christian Dietrich
b71f866eb3 [Tracing] Allow to specify UseForDebugging #467
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-09-22 13:25:42 +02:00
Christian Dietrich
d5d1e3c88f removed EncodingTest.testSetup #348
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-09-21 09:53:21 +02:00
Christian Dietrich
94f10f680c URIsInEcoreFilesTest fails in Eclipse
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-09-20 11:39:52 +02:00
Christian Dietrich
1cb02fbd35 Merge pull request #463 from eclipse/cd_issue453
Don't publish issues with severity ignore #453
2017-09-19 09:46:50 +02:00
Christian Dietrich
22b550488b Don't publish issues with severity ignore #453
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-09-19 07:00:21 +02:00
Akos Kitta
d53c4edc00 GH-459: Aligned the test assertion in the failing case.
As the Javadoc says; the EMF file URI is created from the path of the
`java.io.File`. Paths with leading slashes are not valid paths on
Windows.

Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2017-09-14 16:35:47 +02:00
Sebastian Zarnekow
34e439a4fd Improved code generator for ContentAssistParser
We can cache the method names by extracting the nameMapping to an own type
that is marked as singleton. This will make CA slightly snappier especially
for very large grammars.
2017-09-13 18:21:19 +02:00
Sebastian Zarnekow
ec33ac5e7a Fixed handling of parameterized rules in CA 2017-09-13 18:20:53 +02:00
Sven Efftinge
11c084dc5e GH-73 Replaced the string replace with URI factory to fix the authority.
Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
2017-09-13 17:24:57 +02:00
Akos Kitta
f2d050a60f GH-73 Replaced the URI-string mapping logic with a string replace.
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2017-09-13 17:24:57 +02:00
Akos Kitta
cbc7debb28 GH-456: Replaced the javax.Inject with the Guice one.
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2017-09-13 17:24:57 +02:00
Akos Kitta
4445083dd2 GH-456: Imported static factory methods for the EMF URI creation.
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2017-09-13 17:24:57 +02:00
Akos Kitta
05d872b9a1 GH-456: Replaced leftover canonical path with the absolute one.
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2017-09-13 17:24:57 +02:00