Commit graph

432 commits

Author SHA1 Message Date
Jan Koehnlein
6b081dbc5d [lsp] don't swallow partial results from canceled builds
Fixes #1124
2019-04-12 14:51:58 +02:00
Jan Koehnlein
14c6c88302 [lsp] expose some more API 2019-04-12 13:44:06 +02:00
Jan Koehnlein
12991092f9
Merge pull request #1122 from eclipse/jk/1121
[lsp] always re-process URIs from cancelled builds
2019-04-12 09:24:30 +02:00
Jan Koehnlein
39c6d034a5 [lsp] always re-process URIs from cancelled builds
Fixes #1121
2019-04-11 18:07:25 +02:00
Akos Kitta
a51de02a67 GH-1047: Implemented textDocument/prepareRename
- `textDocument/prepareRename` is automatically executed
when the client declares `prepareSupport`.
 - Exposed the `InitializeResult` on the LS access API.
 - From now on, the refactoring issue acceptor does not throw
an exception when adding issues with `ERROR` or `FATAL` severity.
 - Extended the test language to support FQNs via package declarations.

Closes #1047.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
2019-04-10 14:49:06 +02:00
Titouan Vervack
87551ff35d Added removeBuildListener to WorkspaceManager
There was an add, but no remove effectively creating a memory leak by
keeping dead listeners around.

Signed-off-by: Titouan Vervack <titouan.vervack@sigasi.com>
2019-04-05 14:34:04 +02:00
Christian Dietrich
21aa47fc07
Merge pull request #1068 from kittaakos/GH-1067
GH-1067: Exposed the Xtext index to the LS access.
2019-04-05 14:06:32 +02:00
Akos Kitta
74de6a1017 GH-1067: Exposed the Xtext index to the LS access.
From now on, it is possible to read the content of the Xtext
index from a LS access.

Closes #1067.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
2019-04-05 13:12:53 +02:00
Karsten Thoms
4f5de9b818
Merge pull request #1110 from eclipse/kt_issue1403
[eclipse/xtext#1403] Improve progress monitor utilization
2019-04-04 18:23:33 +02:00
Karsten Thoms
9d941de2ff [eclipse/xtext#1403] Improve progress monitor utilization
Use a SubMonitor in applyModifications & endRecordChanges to report fine
grained progress. Further this does not rely on knowledge of the number
of passed ticks from the surrounding monitor.
Removed checkCancelled(). Cancellation checks are already performed by
SubMonitor#split().

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-04-04 17:27:58 +02:00
Mark Christiaens
528c10aa90 Occurrence highlighting of nested references
#1090

Signed-off-by: Mark Christiaens <mark.christiaens@sigasi.com>
2019-04-03 14:15:14 +02:00
Jan Koehnlein
47675cf8e3
Merge pull request #1092 from eclipse/jk/codeaction
#923 provide live resource sets to code action service
2019-03-26 17:03:55 +01:00
Jan Koehnlein
cf01adfa80 [ls] rename removed stream closing and introduced options param 2019-03-26 10:12:33 +01:00
Jan Koehnlein
57cd3b5d0d #923 provide live resource sets to code action service
Fixes #923
2019-03-26 09:56:34 +01:00
Jan Koehnlein
d25a1677fb [ls] fixing yet another race in rename 2019-03-25 18:39:44 +01:00
Christian Dietrich
b499a28578 harmonized ws
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-03-25 08:35:25 +01:00
Jan Koehnlein
0ef82b8219 [ls] further rename fix and test
- restored the old APIs and deprecated them
- built a new API next to the old one
  - use ILanguageServerAccess to read files
  - extended ILSA to provide new resource sets and the initialization params
- extended the Xtext generator to use the new API
- made sure customizations of the old API don't get lost
- revised the find element at position strategy
- revised error handling
- added a test language and tests
2019-03-20 15:51:19 +01:00
Dennis Huebner
312e236ec3
Merge pull request #1044 from eclipse/dh-serializer
[ide] Bogus serialization when reassign container #1043
2019-03-18 15:35:55 +01:00
Jan Koehnlein
6881c1cef2 [LS] rename follow up fixes 2019-03-15 13:20:09 +01:00
Jan Koehnlein
a290419be4 [LS] overhauled rename service
- delegate to rename language of the declaration of the renamed target
- allow to trigger rename with caret right after the identifier
- support versioned documents

Closes #917, closes #916 and closes #1072
2019-03-14 14:56:56 +01:00
Christian Dietrich
9b38d565e0 [eclipse/xtext-core#1059] updated to lsp4j 0.7.0
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-03-05 20:09:10 +01:00
Christian Dietrich
f8708cefd5 [eclipse/xtext#1414] prepared master for version 2.18.0
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-03-05 16:47:14 +01:00
Dennis Huebner
e807fecdbe [ide] Bogus serialization when reassign container #1043
Signed-off-by: Dennis Huebner <dennis.huebner@gmail.com>
2019-02-21 09:03:07 +01:00
Sebastian Zarnekow
e34bcf8a71
Merge pull request #1024 from eclipse/sz_classpath
Make bin/main also the default output directory to avoid buildship confusion
2019-02-11 08:49:30 +01:00
Christian Dietrich
dfe72b83c0 fixed some javadocs
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-02-10 22:25:11 +01:00
Sebastian Zarnekow
09c3ceac85 Make bin/main also the default output directory to avoid buildship confusion 2019-02-10 14:55:03 +01:00
Karsten Thoms
98a17c35da [eclipse/xtext#1274] Updated .classpath by Gradle
Changes done by Buildship 3.0.1.v20181217-1554

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-02-07 17:03:45 +01:00
Sebastian Zarnekow
ecc7ae0bc3
[eclipse/xtext#1249] use bom for version management (#988) 2019-01-11 16:41:50 +01:00
Christian Dietrich
1b4f6c78a4 change version 2.16.0 -> 2.17.0
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-12-05 09:48:47 +01:00
Titouan Vervack
8348cb99aa Set reference kind when we know it should be set
Signed-off-by: Titouan Vervack <titouan.vervack@sigasi.com>
2018-11-20 11:56:26 +01:00
Christian Dietrich
6e896a1ea2
Merge pull request #931 from eclipse/cd_issue625
[eclipse/xtext-core#625] set Item.InsertTextFormat to snippet for snippets
2018-11-19 15:45:26 +01:00
Christian Dietrich
009578bc9e [eclipse/xtext-core#625] set Item.InsertTextFormat to snippet for snippets
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-11-19 13:01:33 +01:00
Karsten Thoms
e6bd78ae7f
Merge pull request #963 from eclipse/kth_issue1168
[eclipse/xtext#1168] Minimal target platform Oxygen.3a
2018-11-17 09:59:45 +01:00
Karsten Thoms
37172c68dd [eclipse/xtext#1168] Minimal target platform Oxygen.3a
Update lower bound version constraints on platform related bundles with
versions from an Oxygen.3a platform.

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-11-14 17:27:50 +01:00
Jan Koehnlein
3fd16a6654 [api] expose IResourceAccess instead of WorkspaceReourceAccess 2018-11-14 16:10:36 +01:00
Jan Koehnlein
2473c18810 [ls] expose more fields of LanguageServerImpl to subclasses 2018-11-14 15:40:32 +01:00
Christian Dietrich
85385aa97a [#893] build against LSP4J 0.6.0-SNAPSHOT
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-11-10 12:16:05 +01:00
Christian Dietrich
bf79546063 [#912] export org.eclipse.xtext.ide.server.semanticHighlight as internal api
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-11-05 15:11:56 +01:00
Akos Kitta
c539bc5501 GH-924: Disabled the semantic highlighting with the default bindings.
Closes: #924.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
2018-10-29 14:21:16 +01:00
Christian Dietrich
4f53fd0588 [#885] make LSP server exit behaviour configurable
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-10-18 14:41:23 +02:00
Sebastian Zarnekow
c119af10c4 regenerated with newer xtend 2018-10-11 20:51:32 +02:00
Dennis Huebner
b25320cd3b [LSP] Ignore didChangeWatchedFiles for open documents #888
Signed-off-by: Dennis Huebner <dennis.huebner@gmail.com>
2018-10-08 16:40:11 +02:00
Dennis Huebner
f28fafb8ca Removed runWrite call #800
Signed-off-by: Dennis Huebner <dennis.huebner@gmail.com>
2018-10-08 16:27:29 +02:00
Dennis Huebner
bb6258d1be [ls] Diagnostics can never arrive to the client #800
Signed-off-by: Dennis Huebner <dennis.huebner@gmail.com>
2018-10-08 15:24:46 +02:00
Akos Kitta
349580fc26 GH-882: Fixed the inconsistency between the range and selectionRange.
Added a test assertion to ensure `selectionRange` is always contained by the `range`.

Closes: #882.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
2018-10-02 19:54:17 +02:00
Akos Kitta
9e46f302bb GH-858: [LS] Added support for the hierarchical document symbols.
Closes: #858.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
2018-09-25 14:13:54 +02:00
Karsten Thoms
2b7e2b4609 [eclipse/xtext#1272] Compile with Xtend 2.15
Order of static & final modifiers changed
(eclipse/xtext-xtend#554)

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-09-21 17:45:41 +02:00
Dennis Huebner
7fe6ddcc4c Handle ContentAssistEntry.getTextReplacements in ContentAssistService
Signed-off-by: Dennis Huebner <dennis.huebner@gmail.com>
2018-09-19 14:34:51 +02:00
Christian Dietrich
2f0f093fb5 updated versions to 2.16.0
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-09-03 11:11:51 +02:00
Akos Kitta
136e66dd47 GH-812: Implemented the semantic highlighting for the Xtext LS.
Closes #812.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
2018-08-29 12:42:06 +02:00
Arne Deutsch
deb6ad62fe [eclipse/xtext-core#69] Revert fix.
Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2018-08-17 16:13:34 +02:00
Arne Deutsch
35582ebd66 [eclipse/xtext-core#69] Complete fix such that all tests are green.
The fix is working but the result is not satisfying. Checking the
content of the error message is not satisfiable for production. We will
revert the change and only maintain this change in case we have a better
idea later.

Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2018-08-17 16:09:23 +02:00
Arne Deutsch
1fa08de519
Merge pull request #776 from eclipse/xtext-core-69-content-assist-on-syntax-errors
[#69] Fix content assist if lexer returns multiple invalid tokens.
2018-08-16 13:32:15 +02:00
Christian Dietrich
06ab1b01ad [#221] Fixed Templats
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-08-06 10:00:40 +02:00
Moritz Eysholdt
08481714f2 [ChangeSerializer] Don't record derived state
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2018-08-05 10:40:28 +02:00
Moritz Eysholdt
c6187f97c7 [ChangeSerializer] Don't record EObjectDescs if not needed.
When CrossReferences are not updated, recording the descriptions should
not be needed.

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2018-07-31 16:54:39 +02:00
Titouan Vervack
4640eefa53 Made textRegionTransformer protected in DefaultDocumentHighlightService
Signed-off-by: Titouan Vervack <titouan.vervack@sigasi.com>
2018-07-25 15:09:11 +02:00
Christian Dietrich
05a9483b3c fixed broken javadoc
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-07-23 13:30:58 +02:00
Arne Deutsch
3bc181024e [#69] Fix content assist if lexer returns multiple invalid tokens.
If the lexer returns multiple invalid tokens in succession only the last
one is taken into account for content assist. Especially if there are
keywords only (no ID or similar) this is an issue because only the last
character is used as prefix.

The fix assumes that ALL tokens with syntax errors that come in
succession are relevant for content assist. It seems not to be useful to
execute content assist otherwise.

This can never be reproduced with any grammar that includes standart
"Terminals" because of the ID and the ANY_OTHER rule. The ID rule makes
sure that the start is usually read as only ONE token, whereas the
ANY_OTHER rule ensures there is never a lexer error.

Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2018-06-25 17:50:24 +02:00
Christian Dietrich
54ec08b19e added missing since annotations
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-06-15 19:15:40 +02:00
Titouan Vervack
f103de5392 Allow to not print source code in LSP
Signed-off-by: Titouan Vervack <titouan.vervack@sigasi.com>
2018-06-15 11:27:38 +02:00
Titouan Vervack
69a7473245 Fixed typos in DefaultDocumentHighlightService
Signed-off-by: Titouan Vervack <titouan.vervack@sigasi.com>
2018-06-13 13:47:31 +02:00
Karsten Thoms
7dcc65bb2e [release] Increment version to 2.15.0
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-05-22 23:53:44 +02:00
Jan Koehnlein
3c2bb77e89 GH-712 adapt to breaking changes in lsp4j 2018-04-23 14:47:08 +02:00
Miro Spönemann
bf6a61a7e2 #694: Updated to LSP4J 0.4.0 (snapshot)
Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2018-04-19 15:32:40 +02:00
Moritz Eysholdt
c6a3bd20cb [ChangeSerializer] fixed potential NPEs
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2018-04-11 17:30:09 +02:00
Titouan Vervack
0ea85189c8 Fixed warnings
Signed-off-by: Titouan Vervack <titouan.vervack@sigasi.com>
2018-03-29 18:18:18 +02:00
Christian Dietrich
14fd588a2d
Merge pull request #679 from tivervac/redundant_modifier
Removed redundant modifiers
2018-03-28 18:57:08 +02:00
Titouan Vervack
127fa42d17 Removed redundant modifiers
Signed-off-by: Titouan Vervack <titouan.vervack@sigasi.com>
2018-03-28 17:41:41 +02:00
Christian Dietrich
a88b42e0c0
Merge pull request #676 from ArneDeutsch/xtext-core-616
Xtext core 616
2018-03-27 20:48:30 +02:00
Arne Deutsch
534e31d90e [eclipse/xtext-eclipse#616] Use more efficient algorithm.
Do a depth first traversal the node model in reversed direction and stop
at the first found node before the current offset with specific
properties. This way complete composite nodes can be skipped. This
changes the algorithm complexity from n to log(n) in most cases
(degenerated case ... flat node model).

Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2018-03-27 13:58:16 +02:00
Christian Dietrich
d96626e1d8 regen with xtext 2.14
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-03-27 13:51:27 +02:00
Christian Dietrich
63a0a012ea
Merge pull request #668 from eclipse/cd_issue665
[#665] LanguageServerImpl.getAllLanguages returns duplicate results if a language supports several extensions
2018-03-27 08:19:04 +02:00
Jan Koehnlein
a5fba99cd4 [formating] use indentation information
Signed-off-by: Jan Koehnlein <jan.koehnlein@typefox.io>
2018-03-26 21:35:31 +02:00
Christian Dietrich
39f6f30ed5 [#665] determine unique resource service providers only
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-03-22 18:17:15 +01:00
Moritz Eysholdt
72b66ecaba [ChangeSerializer] don't update local refs in related resources
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2018-03-09 13:16:22 +01:00
Moritz Eysholdt
43b7d1df8c Handle comments and whitespace properly in rewrite scenarios
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2018-03-04 19:41:46 +01:00
Moritz Eysholdt
9885cc4323 [ChangeSerializer] support modifications applied to non-xtext-resources
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2018-03-04 19:20:01 +01:00
Moritz Eysholdt
860bf74ab5 [ChangeSerializer] fixed a potential NPE
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2018-03-03 12:13:25 +01:00
Christian Dietrich
bc4acdc0b0 fixed metadata
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-02-27 07:43:05 +01:00
Christian Dietrich
58113d0f41 Regenerated against lastest xbase-lib
https://github.com/eclipse/xtext/issues/1174

Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-02-26 15:07:09 +01:00
Christian Dietrich
7ab31042c8 maintained x-friends https://github.com/eclipse/xtext/issues/1173
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-02-23 15:57:53 +01:00
Christian Dietrich
8cb265024d [#638] Use Formatting options passed by the client
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-02-20 17:54:55 +01:00
Jan Koehnlein
a0d9a30c02 GH-639 use serializer scope provider in change serializer 2018-02-15 09:39:52 +01:00
Anton Kosiakov
b84e52630e [lsp] ensure requests processing order
Signed-off-by: Anton Kosiakov <anton.kosyakov@typefox.io>
2018-01-19 11:55:14 +01:00
Karsten Thoms
90cef27ab4 [eclipse/xtext#1160] Update copyright date range
Recompiled Xtend files

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-01-16 09:11:22 +01:00
Karsten Thoms
134c788006 [eclipse/xtext#1160] Update copyright date range
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-01-15 16:28:39 +01:00
Karsten Thoms
28c9bf27fe [eclipse/xtext#1160] Fixed license name
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-01-15 11:44:29 +01:00
Sebastian Zarnekow
c3c736b566 Bug 529361: Preserve forward backwards compatibility in edge cases 2018-01-04 10:12:06 +01:00
Florian Stolte
3a740a437e [eclipse/xtext#1155] Cleaned up javadoc to remove some warnings.
Signed-off-by: Florian Stolte <fstolte@itemis.de>
2017-12-19 12:04:05 +01:00
Karsten Thoms
d5e6578a6d
Merge pull request #588 from FStolte/issue1152
[eclipse/xtext#1152] Java 9 - Added Automatic-Module-Name header
2017-12-18 10:04:26 +01:00
Sebastian Zarnekow
bcaf864fac Fixed backwards compatibility issue 2017-12-15 13:52:53 +01:00
Florian Stolte
1bc930b5b6 [eclipse/xtext#1152] Java 9 - Added Automatic-Module-Name header
- added header to existing manifest files
- added header to manifest generation in xtext generator and wizard

Signed-off-by: Florian Stolte <fstolte@itemis.de>
2017-12-14 14:16:20 +01:00
Sebastian Zarnekow
a7a45658ef Really use the latest Xtend 2017-12-08 15:39:38 +01:00
Sebastian Zarnekow
5300cd812f Compiled with latest Xtend 2017-12-08 15:17:13 +01:00
Sebastian Zarnekow
7f3e555503 Reformatted code 2017-12-08 09:12:15 +01:00
Sebastian Zarnekow
3e74daa61c Do not attempt to bind CA lexer in baseclass 2017-12-08 09:10:30 +01:00
Sebastian Zarnekow
183de4ae98 Remove unused import 2017-12-07 18:28:15 +01:00
Sebastian Zarnekow
5b96338bc6 Extract more common CA code to base classes 2017-12-07 17:28:25 +01:00
Sebastian Zarnekow
7235dfee19 Updated copyright headers 2017-12-07 16:11:47 +01:00
Sebastian Zarnekow
20d8e31730 Fixed copy'n'paste since tag problem 2017-12-07 16:09:03 +01:00
Sebastian Zarnekow
c6e5d8af68 Avoid duplicated code in CA infrastructure 2017-12-07 15:57:35 +01:00
Sebastian Zarnekow
9b11cb58f9 Merge remote-tracking branch 'origin/master' into sz_contentAssistPRC 2017-12-07 10:14:33 +01:00
Sebastian Zarnekow
9ed107859f Updated since tags 2017-12-07 08:29:06 +01:00
Sebastian Zarnekow
74258fc120 Fixed since tags 2017-12-06 18:31:24 +01:00
Jan Koehnlein
2c0b77541a [cleanup] various typos 2017-12-05 20:56:55 +01:00
Jan Koehnlein
15b13a279d GH-520 allow shadowed resource descriptions in language server scenario 2017-12-05 20:56:55 +01:00
Christian Dietrich
9e66409f38 regenerated xtend code (java 9 java.lang.Module conflict)
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-12-01 19:13:09 +01:00
Sebastian Zarnekow
6f78cb9084 Merge branch 'master' into sz_contentAssistPRC 2017-12-01 12:13:06 +01:00
Karsten Thoms
07b182918c
Merge pull request #529 from eclipse/me/newline_fix
Fixed #460: Test failure on Windows due to CarriageReturn char
2017-11-22 12:17:49 +01:00
Christian Dietrich
5bef8e69c8 correctly decode vs code uris on windows #528
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-11-18 22:33:08 +01:00
Florian Stolte
2a503da006 Refactoring: Cleaning up warnings.
Removed four unused imports and one unused local variable declaration.

Signed-off-by: Florian Stolte <fstolte@itemis.de>
2017-11-15 15:54:57 +01:00
Moritz Eysholdt
f41d82c540 Fixed #460: Test failure on Windows due to CarriageReturn char 2017-11-08 08:48:31 +01:00
Christian Dietrich
4960af9c0a set version to 2.14
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-10-27 09:03:34 +02:00
Moritz Eysholdt
72f6e48cb1 [ChangeSerializer] fixed spelling mistake
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-10-17 08:37:34 +02:00
Moritz Eysholdt
6bb2edcad3 [ChangeSerializer] added progress monitor, added documentation
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-10-17 08:26:33 +02:00
Jan Koehnlein
3ffea25e43 [releng] export new packages
Signed-off-by: Jan Koehnlein <jan.koehnlein@typefox.io>
2017-10-13 16:24:30 +02:00
Miro Spönemann
ca03a63881 Merge pull request #496 from eclipse/msp_lsp4jUpdate
Updated LSP4J to version 0.3
2017-10-12 09:51:52 +02:00
Moritz Eysholdt
309d354e57 [ChangeSerializer] fixed potential NPEs
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-10-11 20:33:32 +02:00
Moritz Eysholdt
6c671f9aaf [ChangeSerializer] update references with FQNs and semi-FQNs properly
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-10-11 14:54:40 +02:00
Miro Spönemann
cb7d6b6ac0 Updated LSP4J to version 0.3 2017-10-11 10:22:30 +02:00
Moritz Eysholdt
1f724e515c [ChangeSerializer] added more guards
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-10-10 15:29:48 +02:00
Moritz Eysholdt
d75041ac7d [ChangeSerilizer] don't NPE on broken ReferenceDescriptions
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-10-10 15:29:48 +02:00
Sebastian Zarnekow
dafde22993 Incorporated review feedback 2017-10-06 09:53:25 +02:00
Jan Koehnlein
456de3691a [lsp] removed JIT bindings for rename refactoring 2017-10-02 15:21:16 +02:00
Jan Koehnlein
b12f7e1e82 [refactoring] moved/renamed classes of CS-based refactoring 2017-10-02 15:17:48 +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
James Tooley
19986743a1 Added generated java file. 2017-09-27 11:06:30 +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
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
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
867aa0d457 GH-456: Fixed regression in URIExtension.
Made sure that `inmemory:/` URI scheme will not be transformed into a
file URI.

Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2017-09-13 17:24:57 +02:00
Sebastian Zarnekow
1126c7f569 Extracted common base type for old and new AbstractContentASsistParser 2017-09-12 10:28:09 +02:00
Sebastian Zarnekow
f1762d1aec Extracted anonymous classes to toplevel types to simplify customizing 2017-09-11 18:31:54 +02:00
Sebastian Zarnekow
b2767bf73b Extracted smaller methods to improve readability 2017-09-11 17:20:27 +02:00
Sebastian Zarnekow
6f1fc4018b Added JavaDoc 2017-09-11 17:19:08 +02:00
Sebastian Zarnekow
3e19521d33 Reformatted code 2017-09-11 17:16:34 +02:00
Sebastian Zarnekow
4a7871765e Regenerated UriExtensions + test 2017-09-11 17:01:10 +02:00
Sebastian Zarnekow
ee53a07c39 Fixed problem with parameterized rule calls in CA 2017-09-11 17:00:48 +02:00