Alan Du
40424d4222
Fix clippy::identity_conversion
2019-06-04 18:05:07 -04:00
Aleksey Kladov
bf801953a3
rename
2019-06-01 10:31:40 +03:00
Aleksey Kladov
678a458543
move subs inside
2019-06-01 10:24:43 +03:00
Aleksey Kladov
78e17f65cf
use sync queries for join lines and friends
2019-05-31 20:53:00 +03:00
Aleksey Kladov
c6537c3280
add sync requests
2019-05-31 20:50:16 +03:00
Aleksey Kladov
9697d8afad
cleanup
2019-05-31 20:42:53 +03:00
Aleksey Kladov
15efd58274
cleanup
2019-05-31 20:30:14 +03:00
Aleksey Kladov
2d773a46c9
simplify
2019-05-31 20:23:56 +03:00
Aleksey Kladov
e1bda6aeda
move completed requests to a separate file
2019-05-31 20:14:54 +03:00
Aleksey Kladov
838915c9a2
simplify
2019-05-31 19:24:33 +03:00
Aleksey Kladov
8bb02859e8
introduce constant
2019-05-31 19:20:22 +03:00
Aleksey Kladov
0e542936be
minor
2019-05-31 19:17:46 +03:00
Aleksey Kladov
b6a854e161
update ra_ide_api to use builtins
2019-05-30 16:10:07 +03:00
Aleksey Kladov
a9373c4220
less noisy status
2019-05-29 21:07:38 +03:00
Aleksey Kladov
5c410385fc
optimization: cancel backlog in onEnter
2019-05-29 16:05:14 +03:00
Aleksey Kladov
2c9a1cb3dd
add latest requests to status page
2019-05-29 15:47:46 +03:00
Aleksey Kladov
e45c350a3b
log the actual time of requests
2019-05-29 14:59:01 +03:00
Aleksey Kladov
118a2113c1
trigger garbage collection *after* requests, not before
2019-05-29 14:37:04 +03:00
Aleksey Kladov
6a1e3e59cb
more perf logging
2019-05-29 14:34:21 +03:00
Pascal Hertleif
4ac338b608
rename stray id field
2019-05-27 11:26:35 +02:00
Pascal Hertleif
5abcca516d
make it build again
2019-05-27 11:26:35 +02:00
Pascal Hertleif
5bf3e949e8
Semantic highlighting spike
...
Very simple approach: For each identifier, set the hash of the range
where it's defined as its 'id' and use it in the VSCode extension to
generate unique colors.
Thus, the generated colors are per-file. They are also quite fragile,
and I'm not entirely sure why. Looks like we need to make sure the
same ranges aren't overwritten by a later request?
2019-05-27 11:26:33 +02:00
Aleksey Kladov
ce040aa907
add profile calls to real-time requests
2019-05-27 11:48:23 +03:00
Lenard Pratt
8198e13c26
Added local macro goto
2019-05-04 17:39:51 +01:00
kjeremy
7125192c1e
Basic resolution for ADT
2019-04-23 14:32:47 -04:00
Aleksey Kladov
fa12ed2b8f
switch to official extend selection API
2019-04-21 12:13:48 +03:00
Aleksey Kladov
c4a5aa45dc
add a couple of profiling points
2019-04-15 01:10:07 +03:00
Aleksey Kladov
5b7012318c
filter by time
2019-04-15 01:10:07 +03:00
Aleksey Kladov
b228947b68
cleanup syntax
2019-04-15 01:10:07 +03:00
Aleksey Kladov
30a4099ea7
switch to modern paths
2019-04-15 01:10:07 +03:00
Roberto Vidal
7c7cfc5f04
Sends cwd info for runnables and code lenses
2019-04-14 10:04:38 +02:00
Roberto Vidal
3507bcb97a
Adds support for multiple editor workspaces on initialization
...
This is a quick, partial fix for #1104
2019-04-14 10:04:38 +02:00
Ville Penttinen
0e49abb7fb
Refactor CallInfo function signatures to new FunctionSignature type
...
This is used by CallInfo to create a pretty printed function signature that can
be used with completions and other places as well.
2019-04-09 14:45:04 +03:00
Edwin Cheng
ce3d78335d
Remove checking file exists
2019-04-07 18:26:02 +08:00
Edwin Cheng
e92740c28b
fix formatting
2019-04-07 12:46:45 +08:00
Edwin Cheng
333feb3869
Add warning when open file outside workspace
2019-04-07 01:20:33 +08:00
Sergey Parilin
9b73f80959
PR issuse resolved
2019-04-02 17:52:04 +03:00
Ville Penttinen
c6d6e6c625
Move actual include logic to ProjectRoot
...
This way the two IncludeRustFiles implementations can simply call the
ProjectRoots' methods, so that the include logic is in one place.
2019-03-21 10:43:47 +02:00
Ville Penttinen
e32462c6d5
Improve filtering of file roots
...
`ProjectWorkspace::to_roots` now returns a new `ProjectRoot` which contains
information regarding whether or not the given path is part of the current
workspace or an external dependency. This information can then be used in
`ra_batch` and `ra_lsp_server` to implement more advanced filtering. This allows
us to filter some unnecessary folders from external dependencies such as tests,
examples and benches.
2019-03-20 11:55:38 +02:00
Ville Penttinen
e70e2361b6
Upgrade ra_vfs to use new Filtering
...
Currently this matches the previous filtering, meaning all roots are filtered
using the same rules.
2019-03-18 20:53:08 +02:00
kjeremy
31b69e685d
LSP: Support EnumMember and Field
2019-03-11 13:58:38 -04:00
Florian Diebold
c30c5fb4dd
Don't default publishDecorations to true on the server
...
If the client doesn't specify this explicitly, that very likely means it doesn't
know about it and so we shouldn't send decorations. In particular, the recent
change to this default caused decorations to be sent to emacs, resulting in a
lot of warning spam.
2019-03-09 12:55:15 +01:00
Aleksey Kladov
1aa11eb7e9
when loading workspace, say how many packages were loaded
...
this should help to debug configuration issues, when you see `0
packages loaded` or something like that.
2019-03-07 17:46:17 +03:00
David Wood
614dd3c347
Rename and change add_roots
to return a Vec
.
2019-03-07 01:05:07 +01:00
David Wood
00d927a188
Initial implementation of project-lock.json.
...
This commit adds a initial implementation of project-lock.json, a build
system agnostic method of specifying the crate graph and roots.
2019-03-07 01:05:03 +01:00
Ville Penttinen
0dcb1cb569
Add showWorkspaceLoadedNotification to vscode client
...
This allows users to control whether or not they want to see the "workspace
loaded" notification.
This is done on the server side using InitializationOptions which are provided
by the client. By default show_workspace_loaded is true, meaning the
notification is sent.
2019-03-06 11:34:38 +02:00
Ville Penttinen
ce118da149
Rename feedback to show_message
2019-03-05 22:25:24 +02:00
Ville Penttinen
80347b8187
Remove InternalFeedback
2019-03-05 22:20:11 +02:00
Ville Penttinen
9063dabcca
Send an actual ShowMessage instead of InternalFeedback in feedback()
...
This now allows us to send a notification that can be shown in the UI when the
workspace has been loaded.
Additionally this removes the need for internal_mode flag.
2019-03-05 21:59:01 +02:00
Aleksey Kladov
73b892aaa3
show message in client's UI if workspace fails to load
2019-03-05 16:33:05 +03:00