Commit graph

404 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Sven Efftinge
2aaa49fc3a [lsp] completion proposals should be sorted case-sensitively secondarily 2016-09-09 13:25:25 +02:00
Akos Kitta
e1628b5ca5 [LS] Added basic signature help support for the test language.
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2016-09-07 14:23:49 +02:00
Sven Efftinge
fc938f40b3 organized imports 2016-09-05 15:48:47 +02:00
Sven Efftinge
a897c056c0 [LS] removed unsupported use of LSP extension 2016-09-05 15:44:51 +02:00
Jan Koehnlein
a7ed852e9f [ls][hover] extracted get contents method for easier override 2016-09-02 15:48:27 +02:00
akosyakov
d4fb8dfb62 [ls] Unwrap CompletionException to get a real cause of failure 2016-09-01 09:32:40 +02:00
akosyakov
aea7ec628c [ls] Build a closed in memory file as deleted
Change-Id: I7e51fda6ae864a30cda4645066b97bd1c78c2309
Signed-off-by: akosyakov <anton.kosyakov@typefox.io>
2016-09-01 09:32:40 +02:00
Sven Efftinge
d7ad9acbb3 [LSP] completion - always use textedit, as otherwise vscode doesn’t reliably show the proposal 2016-08-26 15:36:52 +02:00
Sven Efftinge
9b9537b4b6 [LSP] fixed some issue with URI normalization 2016-08-26 12:02:25 +02:00
Sven Efftinge
d52ada1cac [lsp] use sortText for stable ordering of completionitems 2016-08-25 15:33:13 +02:00
Christian Dietrich
7255be1684 [500192] IdeContentProposalProvider - Don't call Scope Provider with null model
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-08-24 14:06:29 +02:00
Moritz Eysholdt
676736a4b8 [#16, contentAssist] add support for custom parser entry points
ContentAssist needs to use the entry point that can be obtained via 

NodeModelUtils.getEntryParserRule(INode) or 
XtextResource.getEntryPoint()

To support this, AbstractContentAssistParser does now implement 
IPartialEditingContentAssistParser, which is an interface that has been
introduced some time ago for the CodeTemplates language.

XtextAntlrGeneratorFragment2 will no longer generate getFollowElements()
for each language because that method is only able to invoke the first 
parser rule. Instead, there is now a gneric implementation in the super 
class.

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-08-11 15:35:50 +02:00
akosyakov
48193bee16 [ls] Make sure that there is only one instance of BuildManager per
WorkspaceManager
2016-07-29 15:37:07 +05:00
akosyakov
4dfc529c5a [ls] Don't log cancellation of requests as errors 2016-07-28 08:36:53 +05:00
akosyakov
c216f1aa1d [ls] Log exceptions from failed requests instead of swallowing 2016-07-27 11:08:27 +05:00
Christian Dietrich
d8dc3ff328 fixed hoverservice for non self contained cross references #20
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-07-26 09:51:05 +02:00
Miro Spönemann
621697d56f Updated for recent ls-api changes: renamed 'container' to 'containerName' 2016-07-25 12:39:51 +02:00
Christian Dietrich
acd1e60ab4 improved uri handling on windows. fixes #49
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-07-25 12:19:50 +02:00
Christian Dietrich
1d23072608 implementation and test for formatting service #21
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-07-25 11:29:58 +02:00
Sven Efftinge
d2cda3b357 Merge pull request #46 from eclipse/se_ticket19
[#19] made ContentAssistEntry#kind non-null more explicit
2016-07-24 22:58:35 +02:00
Miro Spönemann
f674c3bf11 Updated for recent ls-api changes: added telemetry event 2016-07-22 09:29:55 +02:00
Miro Spönemann
857a33656d Updated for recent ls-api changes: moved implementations to 'impl' subpackage 2016-07-21 16:35:03 +02:00
Miro Spönemann
6a7b298343 Updated for recent ls-api changes: using new builders and impl constructors 2016-07-21 12:02:33 +02:00
Sven Efftinge
3ced411d5c [#19] made ContentAssistEntry#kind non-null more explicit 2016-07-21 09:18:19 +02:00
Christian Dietrich
e13ac6c279 update to ls-api 0.3.0-SNAPSHOT
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-07-19 19:08:57 +02:00
Jan Koehnlein
db301f25e5 [LS] added some NPE guard 2016-07-14 18:23:48 +02:00
Jan Koehnlein
29fe693b9f [ls] recompute workspace config on configuration change + fixes for build 2016-07-14 18:23:48 +02:00
Jan Koehnlein
e3eab959ab [ls] detect project in build by using source folder 2016-07-13 12:28:29 +02:00
Jan Koehnlein
ce5688f3df [ls] support multi project workspaces 2016-07-13 12:05:37 +02:00
akosyakov
d21cad280c [LSI][contentAssist] Compute a text edit for entries with non empty
prefix
2016-07-12 16:11:43 +02:00
Miro Spönemann
950eb8ae74 Removed old Gradle integration prefs 2016-07-07 11:22:13 +02:00
Miro Spönemann
decf9b22aa Checked in project metadata based on Buildship 2016-07-07 10:19:04 +02:00
Alex Tugarev
b05457e604 [web] Adjusting the order of patterns for Orion's highlighting configuration to fix bracket matching. See also Orion bug #497097
Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
2016-07-01 13:12:41 +02:00
Christian Dietrich
62b81f7169 fixed NPE in IdeContentProposalProvider
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-07-01 07:34:45 +02:00
Sven Efftinge
21423cc18c [ide] added IdeModule and IdeSetup - fixed #11 2016-06-21 11:54:54 +02:00
Miro Spönemann
8ef5376742 Fixed some JavaDoc warnings 2016-06-15 16:39:35 +02:00
Miro Spönemann
0bc7f1fd20 Remove redundant .gitignore rules 2016-06-14 15:31:26 +02:00
Miro Spönemann
e1a4782403 Generated code 2016-06-14 09:45:31 +02:00
Miro Spönemann
96edcf48ae Removed buildship.core.prefs 2016-06-14 09:44:34 +02:00
Miro Spönemann
4270986cba Moved projects to root of repository 2016-06-14 08:30:25 +02:00