Commit graph

435 commits

Author SHA1 Message Date
Jan Koehnlein
19ab48238d [#1394] deprecate single WS root config and schedule it for removal 2020-02-24 11:56:42 +01:00
Sebastian Zarnekow
93b20b3794 [#622] Improved concurrency behavior of RequestManager 2020-02-24 09:18:47 +01:00
Christian Dietrich
14737a8ea4 [#1394] marked more elements to be removed in 2.22
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2020-02-22 17:43:54 +01:00
Christian Dietrich
639fa16575 [#1244][WIP] Update to LSP4J 0.9.0 Part 2
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2020-02-20 23:27:07 +01:00
Jan Koehnlein
e2cd8edd53 [LS] support multiple workspace root folders
Fixes #1238
2020-02-20 11:58:38 +01:00
Sven Efftinge
f9b6d1bebe
[eclipse/xtext#1176] Migrate to EPL 2.0
Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
Co-authored-by: Sebastian Zarnekow <Sebastian.Zarnekow@gmail.com>
2020-02-11 12:02:02 +01:00
Christian Dietrich
b13367970f [#1372] update hover service to use MarkupContent
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2020-02-03 22:33:32 +01:00
Christian Dietrich
0766f69605 [#1244] lsp4j 0.9.0
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2020-01-30 12:21:41 +01:00
Christian Dietrich
79e1ebcfed [eclipse/xtext#1642] regenerated xtend code with latest xtend
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2020-01-09 13:57:00 +01:00
Christian Dietrich
83249956d4 [eclipse/xtext#1282] Update to EMF 2.20: change version constraints in MANIFESTs
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2020-01-03 16:38:15 +01:00
Tamas Miklossy
abddf5efc3 [#1108] Update the year in the copyright headers.
Signed-off-by: Tamas Miklossy <miklossy@itemis.de>
2019-12-16 18:57:01 +01:00
Sebastian Zarnekow
f45a3c4aaa
[eclipse/xtext#1629] Migrate server.concurrent from Xtend to Java (#1327)
Migrate server.concurrent from Xtend to Java

see eclipse/xtext#1629
2019-12-16 18:11:09 +01:00
Arne Deutsch
44aafdae13 [eclipse/xtext#1455] Resolve windows test failure in DocumentTest.
Also fixes SemanticHighlightingTest.

Document#getLineContent returns the '\r' of '\r\n' on windows. This
leads to a failing test. But the line content should explicitly NOT
return the newline marker. Hence fixing the implementation to fix the
test.

Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2019-12-16 12:25:41 +01:00
mmews-n4
4b37a9e4f5 [#1316| Add end line and end column positions to Issue
[#1316] Add end line and end column positions to Issue. Also initialise lines and columns with 0. 

Previously, end line and end column information was not part of Issue, IssueImpl, IssueLocation, AbstractDiagnostic, and ExceptionDiagnostic. It is helpful to have this information in these classes, because otherwise (i.e. now in LanguageServerImpl#toDiagnostic(Issue)) this information has to be computed by loading the Document again.

closes #1316 

Signed-off-by: mmews <marcus.mews@numberfour.eu>
2019-12-13 09:54:04 +01:00
Sebastian Zarnekow
f8c791989c
Merge pull request #1322 from mmews-n4/requestManger_logging
Log Exceptions thrown in futures created by the RequestManger
2019-12-12 17:28:25 +01:00
mmews
f8fbc38a0b fix synchronization error (maybe)
Signed-off-by: mmews <marcus.mews@numberfour.eu>
2019-12-12 00:19:51 +01:00
mmews
3102556c4e add CancellationException to OCM#getPlatformOperationCanceledException
Signed-off-by: mmews <marcus.mews@numberfour.eu>
2019-12-10 22:51:31 +01:00
mmews
cefc79857a fix cancel future directly
Signed-off-by: mmews <marcus.mews@numberfour.eu>
2019-12-10 12:46:05 +01:00
mmews
c59ce4d0db add isIndexOnly as default method and read it to create build request
Signed-off-by: mmews <marcus.mews@numberfour.eu>
2019-12-10 12:29:40 +01:00
mmews
d620e0daae log exceptions in futures of RequestManager
Signed-off-by: mmews <marcus.mews@numberfour.eu>
2019-12-10 12:04:25 +01:00
Karsten Thoms
325fa1e8d6 [releng] Update Xtext version to 2.21.0
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-12-02 14:06:33 +00:00
Christian Dietrich
035df74a4e updated to lsp4j 0.8.1
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-11-26 21:43:34 +01:00
Sebastian Zarnekow
0db28cc4c2 Add output folders to build.properties 2019-11-18 08:42:38 +01:00
Sebastian Zarnekow
e814a7d8dd Fixed build.properties, fixed a few warnings on the go 2019-11-18 08:42:38 +01:00
Sebastian Zarnekow
bbbdf68391 Added missing build.properties, fixed a couple of warnings 2019-11-18 08:42:38 +01:00
Christian Dietrich
98bd79e264 [eclipse/xtext#1504] added Eclipse-SourceReferences to manifests
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-11-15 12:28:44 +01:00
Christian Dietrich
1d1ac03d97 regenerated with latest xbase.lib
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-11-15 10:32:07 +01:00
Sebastian Zarnekow
9f8aee979a [eclipse/xtext#1573] Ensure that all plugins do have a ManifestBuilder 2019-11-04 14:34:21 +01:00
Sebastian Zarnekow
eea345fba1
[eclipse/xtext#1569] Migrate Xtend code to Java (#1270)
* Migrate Xtend code to Java
* Apply auto-formatting and cleanup actions
* Add `@since` tags

see eclipse/xtext#1569
2019-10-31 16:06:12 +01:00
Karsten
365ba15867 [releng] Set version to 2.20.0
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-09-03 15:24:30 +00:00
Christian Dietrich
86a14fcf4c [#1231] implemented review feedback: handle only no assignments + transient here
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-08-30 10:46:43 +02:00
Christian Dietrich
97191fa592 [#1231] do not fail to serialize transient single values that are never assigned
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-08-29 16:47:32 +02:00
Christian Dietrich
60ea04335f [eclipse/xtext-core#1082] update to lsp4j 0.8.0
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-08-19 08:37:15 +02:00
Sebastian Zarnekow
ac801dc64b [eclipse/xtext-lib#224] Stable method order when using Delegate annotation 2019-08-13 21:56:42 +02:00
Christian Dietrich
daa441b901 [#922] Calculate correct position (end) for issues
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-07-23 09:29:10 +02:00
Sebastian Zarnekow
b17a4705ba
Merge pull request #1209 from mmews-n4/extend-IProjectConfig-and-related
Extend IProjectConfig and related interfaces
2019-07-22 10:48:47 +02:00
mmews
a1566e10b3 extend ISourceFolder for precise file filtering
Signed-off-by: mmews <marcus.mews@numberfour.eu>
2019-07-22 09:42:44 +02:00
Tamas Miklossy
17e6c25689 [https://github.com/eclipse/xtext-eclipse/issues/678]
- Avoid infinite loop (editor freeze) on FailedPredicateException.

Signed-off-by: Tamas Miklossy <miklossy@itemis.de>
2019-07-15 12:56:57 +02:00
Christian Dietrich
dad2206b72 fixed some warnings
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-06-17 07:51:51 +02:00
Christian Dietrich
a71e50d4ab fixed guava deprecations
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-06-11 19:50:04 +02:00
Nico Prediger
c9a07291d8 [eclipse/xtext#1474] Prepare Master for 2.19
Signed-off-by: Nico Prediger <mail@nicoprediger.de>
2019-06-03 14:02:18 +02:00
Jan Koehnlein
01c615c361
Merge pull request #1157 from eclipse/jk/1156
[lsp] fixed Document.applyEdit for multiple textEdits
2019-05-29 14:34:28 +02:00
Jan Koehnlein
3bbe29596d [lsp] deprecated Document#applyEdit in favor of #applyTextDocumentChanges
Fixes #1156
2019-05-28 16:37:46 +02:00
Christian Dietrich
feab398da5 update to lsp4j 0.7.2
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-05-27 13:44:32 +02:00
Jan Koehnlein
6e51dde828 [lsp] added a server socket launcher
For debugging, it is often useful to start LSs behind a socket server. This class allows for it.
2019-05-22 16:05:19 +02:00
Christian Dietrich
1d267db1d3 fixed more warnings
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-05-14 08:42:27 +02:00
Christian Dietrich
24b4f99cda [eclipse/xtext-core#1082] update to lsp4j 0.7.1
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-05-08 16:11:29 +02:00
Christian Dietrich
bc3f2870e7 [eclipse/xtext#1437] Regenerated with 2.18.0.M2
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-05-06 14:59:20 +02:00
Christian Schneider
9153b801d5
Merge pull request #1134 from eclipse/cs-refactoringIndexing2
[refactoring] introduced default method in 'IResourceRelocationStrategy' allowing to switch to persisted index
2019-04-18 16:19:53 +02:00
Christian Schneider
247a38a20e [refactoring] introduced default method in 'IResourceRelocationStrategy' allowing an implementation to explicitly demand for relying on the persisted resource index if available
Signed-off-by: Christian Schneider <christian.schneider@typefox.io>
2019-04-18 16:01:32 +02:00
Christian Schneider
0e45e4dec5 [refactoring] a bit of progress monitor rework in ChangeSerializer 2019-04-17 11:13:59 +02:00
Christian Schneider
04e14a3444 [refactoring] improved progress reporting in ChangeSerializer, related to https://github.com/eclipse/xtext-eclipse/issues/1053
Signed-off-by: Christian Schneider <christian.schneider@typefox.io>
2019-04-16 15:40:05 +02:00
Jan Koehnlein
e994ac80c2
Merge pull request #1125 from eclipse/jk/1124
[lsp] don't swallow partial results from canceled builds
2019-04-12 14:53:15 +02:00
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