Edwin Cheng
b60e2f779b
Fix prettier error
2019-04-02 17:43:09 +08:00
Edwin Cheng
9d26984998
Add terminate process implemntation note
2019-04-02 17:13:14 +08:00
Edwin Cheng
06053a0a76
Add Cargo.toml file check before cargo watch start
2019-04-02 15:03:31 +08:00
Edwin Cheng
02e450f354
Add cargo-watch.check-arguments
2019-04-02 15:03:31 +08:00
Edwin Cheng
ee05eafe6c
Add config for cargo-watch trace
2019-04-02 15:03:31 +08:00
Edwin Cheng
b84d0fc1a3
Add proper process teminate method
2019-04-02 15:03:31 +08:00
Edwin Cheng
c894a3e19b
Fix prettier error
2019-04-02 15:03:30 +08:00
Edwin Cheng
6971c7f118
Fixed tslint error
2019-04-02 15:03:30 +08:00
Edwin Cheng
ac8f35019b
Fix tslint error
2019-04-02 15:03:30 +08:00
Edwin Cheng
b3683df0cd
Improve cargo-watch usage
2019-04-02 15:03:30 +08:00
Aleksey Kladov
23dd53eb35
kill ra.el: it is superseeded by the lsp integraion
2019-03-30 17:52:40 +03:00
Florian Diebold
156b1ddf67
Fix emacs-lsp runnables support with native json
...
(In that case args is a vector, which string-join doesn't like.)
2019-03-28 21:32:17 +01:00
pcpthm
1529eeb1b3
Don't execute cargo watch when popup is dismissed
2019-03-22 09:38:48 +09:00
Ville Penttinen
5c3e9c716e
Change enableCargoWatchOnStartup to have three states
...
This fixes #1005 .
Defaults to `ask` which prompts users each time whether to start `cargo watch`
or not. `enabled` always starts `cargo watch` and `disabled` does not.
2019-03-21 13:56:25 +02:00
Aleksey Kladov
91203699ec
introduce docs dir
2019-03-20 09:37:51 +03:00
Igor Matuszewski
34b428cc5e
Appease CI
2019-03-18 22:51:01 +01:00
Igor Matuszewski
7c2595c268
Guard auto cargo watch behind a config option
2019-03-18 22:35:47 +01:00
Igor Matuszewski
60cac29964
Separate out the interactive cargo watch procedure
2019-03-18 22:30:23 +01:00
Igor Matuszewski
5c3cc8c95f
Reformat using Prettier
2019-03-18 22:15:03 +01:00
Igor Matuszewski
7d2378ed7d
Remove unused imports
2019-03-18 21:16:20 +01:00
Igor Matuszewski
4bd6143062
Prefer installing cargo-watch
via Task API
...
This gives us much more fine-grained stdout buffering and ANSI terminal colors.
2019-03-18 21:13:49 +01:00
Igor Matuszewski
21b73f9844
Respect the user-provided label when creating task
2019-03-18 21:04:41 +01:00
Igor Matuszewski
afe9cea640
Ask the user to install and start cargo watch
2019-03-18 20:50:52 +01:00
Igor Matuszewski
9f1ae658db
Define a cargo watch task
2019-03-18 20:47:52 +01:00
Igor Matuszewski
bc560a2f5b
Remove redundant Runnable.range
2019-03-18 17:53:07 +01:00
Florian Diebold
c656bf3946
Fix ra-emacs-lsp for newest lsp-mode with native json support
2019-03-14 22:08:37 +01:00
Florian Gilcher
6d4038a2c7
Fix typo
2019-03-13 15:23:22 +01:00
Aleksey Kladov
6ef614f785
activate extension if Cargo.toml is present
2019-03-13 16:38:49 +03:00
Lucas Spits
9fe3b36bda
Applied code style of `npm run fix
`
2019-03-11 21:22:54 +01:00
Lucas Spits
915c079e26
Fix typescript linting errors
2019-03-11 20:53:56 +01:00
Lucas Spits
de4ad44282
Merge branch 'master' of https://github.com/LDSpits/rust-analyzer into feature/workspace-directory
2019-03-11 20:41:48 +01:00
Lucas Spits
7185c594fe
Retrieve current directory from workspaces
2019-03-11 20:38:46 +01:00
Bernardo
7cf9c34f66
prettier format
2019-03-10 15:20:27 +01:00
Bernardo
536a579f2e
simplify watch patterns
2019-03-10 13:35:02 +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
0db95fc812
Allow syntax tree to update when changing files
...
Previously when using the file based syntax tree, it would not update until a
change had been made in the new file. Now we automatically update the syntax
tree to match the current file.
2019-03-03 22:03:37 +02:00
Ville Penttinen
1b4e0ec1c8
Rename syntaxtree text provider to SyntaxTreeContentProvider
2019-03-03 22:02:19 +02:00
Ville Penttinen
c2d3203d0c
Add vscode support for range in SyntaxTreeParams
...
This enables the client to use a command to either show the live-updating
version of the syntax tree for the current file. Or optionally when a selected
range is provided, we then provide a snapshot of the syntax tree for the range.
2019-03-03 21:43:40 +02:00
Florian Diebold
d7f113e7a6
emacs: Fix (void-variable rust-analyzer--last-runnable)
2019-03-03 03:00:17 +01:00
Ville Penttinen
5a9a314b10
Change default value of highlightingOn to false
2019-02-26 08:56:11 +02:00
Florian Diebold
da8976d865
emacs-lsp: Add runnables support
2019-02-23 13:42:20 +01:00
kjeremy
f626733c4a
Use named multiline Problem Matcher
...
Now that https://github.com/Microsoft/vscode/pull/65840 is in the latest
release we can use the first commit from https://github.com/rust-analyzer/rust-analyzer/pull/408
2019-02-18 13:12:54 -05:00
Florian Diebold
d682ea8858
Add my emacs configuration
...
This relies on emacs-lsp instead of eglot, so I didn't want to just add it to
the other one.
2019-02-16 15:39:44 +01:00
bors[bot]
abc5d377e2
Merge #807
...
807: Specify vscode 1.31 r=matklad a=kjeremy
This is for #796
It doesn't seem to fix the problem if you manually install the extension but it is the "right thing to do".
Co-authored-by: kjeremy <kjeremy@gmail.com>
2019-02-12 15:33:02 +00:00
kjeremy
50383ceae1
Specify vscode 1.31
2019-02-12 10:31:11 -05:00
Aleksey Kladov
72a122092b
mention no compatability gurantee
2019-02-12 18:28:39 +03:00
Matthias Einwag
943c064ffc
Mention node.js requirement in readme
2019-02-10 13:09:33 -08:00
DJMcNab
48d6a52ac1
Update dependencies
2019-02-10 10:32:45 +00:00
DJMcNab
28fd368393
Fix trace and prettier
2019-02-10 10:30:16 +00:00
DJMcNab
9138317021
Add support for a seperate output channel for trace messages
2019-02-10 10:06:33 +00:00
kjeremy
2c7a07e4e8
Update npm packages
2019-02-07 14:55:09 -05:00
Ville Penttinen
a4d0aebcb8
Run prettier
2019-02-07 12:54:41 +02:00
Ville Penttinen
77a4a311fe
Add new configuration "enableEnhancedTyping" to control registering of "type" command
...
This further fixes problems when having a VIM extension (at least vscodevim)
enabled, by not calling `overrideCommand('type', commands.onEnter.handle)` when
enableEnhancedTyping is set to `false`.
The problem is dependent on the order in which extensions are activated, if
rust-analyzer is activated before `vscodevim`, rust-analyzer will register the
`type` command, and when `vscodevim` finally attempts to activate, it will fail
to register the command. This causes `vscodevim` to stop working properly.
This setting allows users to disable the registerCommand `type` in
rust-analyzer, allowing `vscodevim` to work. The setting defaults to `true`.
Currently changing the setting requires reloading of the window.
2019-02-07 12:37:36 +02:00
Jeremy Kolb
6ac4cca6c1
Implement lens for impls and support resolving lenses.
2019-02-04 08:45:33 -05:00
bors[bot]
897e74f089
Merge #704 #705
...
704: Feat/jinstall lsp r=matklad a=DJMcNab
Add `cargo jinstall-lsp` as a shorthand to include jemalloc support
Also activate the extension when the commands are run which is makes sense to activate.
I still need to work out what `Run` actually does to give it a better name, and other extensions through some voodoo magic are able to hide their commands from the command palette before the extension is activated, which would be a better fix.
705: Pass Documentation up to LSP and add "rust" to our codeblocks there r=matklad a=kjeremy
Fixes #699
Co-authored-by: DJMcNab <36049421+djmcnab@users.noreply.github.com>
Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
2019-01-30 19:08:06 +00:00
kjeremy
63edfaa9a0
Clear the console when running single tasks
2019-01-30 13:46:31 -05:00
DJMcNab
ce939795ed
Add category to the commands
2019-01-29 17:16:14 +00:00
DJMcNab
377ee9d333
Start the extension when rust-analyzer status is run
2019-01-29 17:08:02 +00:00
Aleksey Kladov
d1a67c1174
align command naming
2019-01-28 15:01:22 +03:00
Aleksey Kladov
f6adb85b68
add gc request
2019-01-25 19:11:58 +03:00
Aleksey Kladov
8d68b76ba0
better stats
2019-01-25 16:16:42 +03:00
Aleksey Kladov
0ba7e2eaeb
ad status command
2019-01-23 01:24:53 +03:00
Marcus Klaas de Vries
b5466f3fb3
Address issues flagged in review
2019-01-19 15:37:26 +03:00
Marcus Klaas de Vries
afaa26636e
Add additional pattern variants
2019-01-19 15:37:25 +03:00
Andrew Ross
1800bfb6e6
Config for raLspServerPath will be overwritten if __RA_LSP_SERVER_DEBUG is set
...
Changed presentation from clear to reveal silent
Removed the vscode gitignore entry
Added debugging documentation
Added tasks and launch configs
2019-01-19 15:36:54 +03:00
Alan Du
86775c1418
Prettier fix
2019-01-15 11:15:51 -05:00
Alan Du
ca239ace93
Fail Travis on Prettier formatting issue
2019-01-15 11:15:39 -05:00
Jeremy A. Kolb
cd21f0eade
Reveal the newly added source change in the editor.
2019-01-14 17:24:49 -05:00
Aleksey Kladov
7642cf5fe7
⬆️ npm
2019-01-13 21:43:13 +03:00
Aleksey Kladov
c46e0300e6
note about performance
2019-01-13 17:13:54 +03:00
bors[bot]
9f2072d45f
Merge #521
...
521: refresh docs r=matklad a=matklad
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2019-01-13 12:04:33 +00:00
Aleksey Kladov
04657292e0
refresh docs
2019-01-13 15:04:05 +03:00
Jeremy Kolb
2a1cb52c99
npm fix run
2019-01-12 18:49:07 -05:00
bors[bot]
e56072bfa3
Merge #500
...
500: Code lens support for running tests r=matklad a=kjeremy
Supports running individual and mod tests.
I feel like this kind of abuses the `Runnables` infrastructure but it works. Maybe later on down the line we should introduce a struct that is really just a tuple of binary, arguments, and environment and pass that back to the client instead. `run_single.ts` is just a paired down version of `runnables.ts` and there is duplication because I think run_single will probably change independent of runnables.
Co-authored-by: Jeremy A. Kolb <jkolb@ara.com>
Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
2019-01-12 18:56:11 +00:00
Jeremy Kolb
5bf739c824
Move run_single into runnables
2019-01-12 13:54:08 -05:00
Paweł Zmarzły
ee80a92ed4
Do not recommend fetching whole repo for end users
...
`--depth 1` will make a shallow clone, of master branch only.
2019-01-12 20:41:06 +02:00
Jeremy A. Kolb
faf0037635
Code lens support for running tests
2019-01-11 15:16:55 -05:00
gentoo90
a6e04cfa7f
Allow user to set path to ra_lsp_server in vscode settings
2019-01-05 17:28:41 +02:00
Bernardo
4dfc5a6341
fix open of created or renamed file
2019-01-05 12:12:39 +01:00
Aleksey Kladov
d61707b4e1
index stuff produced by macros
2019-01-03 21:29:17 +03:00
Bernardo
3ab328b49a
use lsp WorkspaceEdit instead of custom source_file_edits and file_system_edits
2019-01-03 14:20:15 +01:00
Bernardo
96f0683974
named multiline problem patterns are not parsed properly in vscode at the moment
2019-01-01 21:27:36 +01:00
Bernardo
cff9f62d32
fix regex and add rustc-watch problem matcher
2019-01-01 21:27:36 +01:00
Aleksander Vognild Burkow
ee9fc3f998
Document formatting capabilities
2018-12-29 21:57:46 +01:00
Aleksey Kladov
d7440a5f49
highlight macro idents
2018-12-28 18:17:43 +03:00
Aleksey Kladov
095843119e
Clarify installation prodecude
2018-12-27 17:56:07 +03:00
bors[bot]
b052059f86
Merge #302
...
302: WIP: Support tracing lsp requests. r=DJMcNab a=DJMcNab
EDIT: We need to work out a better way to handle settings before this can be merged. Help wanted
TODO: Debug why decorations are sent even when highlightingOn is disabled
This makes the log volume so high its impossible to work with anyway.
(Continuation of #84 [#99 only disabled using it, not making sure we don't send it]).
These logs can be used in https://microsoft.github.io/language-server-protocol/inspector/
Co-authored-by: DJMcNab <36049421+djmcnab@users.noreply.github.com>
2018-12-24 13:47:27 +00:00
DJMcNab
ecab036d6f
Add a very hacky workaround to not trace decorations requests
2018-12-24 13:43:08 +00:00
frai
0f5d9a0322
Fix analyzer extension fail when there are enabled any VIM extension.
2018-12-22 15:26:18 +02:00
DJMcNab
39861a4e15
Support tracing lsp requests.
...
TODO: Debug why decorations are sent even when highlightingOn is disabled
This makes the log volume so high its impossible to work with anyway
2018-12-20 12:05:41 +00:00
DJMcNab
0bd9d87e87
Reload package-lock.json
2018-12-19 20:12:18 +00:00
Aleksey Kladov
9cfd5ea2b4
use new clear-terminal feature
2018-12-15 22:33:35 +03:00
Aleksey Kladov
34956b7823
remove direct dep on event-stream: malisious version was unpublished
2018-12-09 13:31:04 +03:00
DJMcNab
12addc6233
Add package command and upgrade event-stream
2018-12-08 21:09:32 +00:00
DJMcNab
c54a7da6e0
Run npm update and add private and preview flags
...
Private stops npm publish working, which would be nonsensical anyway
In case it gets added to the vscode extension repository, preview marks it as such
Private may also prevent publishing to the vscode extension repository
2018-12-08 20:56:31 +00:00
DJMcNab
4dca5adb3c
Remove uneeded characters
2018-12-08 20:52:30 +00:00
DJMcNab
09e12b7925
Improve the extend keybinding to not conflict
2018-12-08 20:48:50 +00:00
Aleksey Kladov
7adbea9c42
fix npm problems
2018-11-27 12:29:09 +03:00
Adolfo Ochagavía
b98b1d0115
Fix on enter
2018-11-09 13:10:53 +01:00
Aleksey Kladov
00e80b24e3
workspace-symbols function for Emacs
2018-11-08 18:43:02 +03:00
Aleksey Kladov
c69ff08dc9
eglot worksapce symbol
2018-11-08 17:40:24 +03:00
Aleksey Kladov
f8b36bbc3b
Rename File -> SourceFileNode
2018-11-07 18:42:36 +03:00
Aleksey Kladov
6bbcfca7ae
Fully add inline modules to module tree
2018-11-05 14:10:20 +03:00
Pascal Hertleif
b774de6e03
Fix typo
...
Truly an A+, errrr, +a commit
2018-10-21 21:39:50 +02:00
Jeremy A. Kolb
3de77908eb
Update vscode-languageclient package to support RenameOptions
2018-10-19 15:25:43 -04:00
Adolfo Ochagavía
ee0a6bf053
Fold multiline comments
2018-10-12 08:59:12 +02:00
Adolfo Ochagavía
26d34cc443
Remove error publishing through publishDecorations
2018-10-10 16:49:32 +02:00
Adolfo Ochagavía
f2d719b24a
Format vscode extension and add npm run fix
2018-10-09 22:56:22 +02:00
Aleksey Kladov
2b956fd3a8
Add on-enter handler
...
Now, typing doc comments is much more pleasant
2018-10-09 19:52:06 +03:00
Daniel McNab
e26071d96e
Run prettier on all files
2018-10-08 22:38:33 +01:00
Daniel McNab
3a405b65d6
Add tslint and prettier to ci
2018-10-08 22:36:47 +01:00
Adolfo Ochagavía
bbf38b9e72
Add some comments
2018-10-08 20:55:22 +02:00
Adolfo Ochagavía
62b1b05a0d
Fix remaining tslint suggestions
2018-10-08 20:18:55 +02:00
Adolfo Ochagavía
4d62cfccbb
Apply tslint suggestions, round one
2018-10-07 23:12:40 +02:00
Adolfo Ochagavía
69de7e2fd7
Refactor vscode extension
2018-10-07 23:03:38 +02:00
Adolfo Ochagavía
9ccc568601
Dynamically apply highlightingOn config
...
Fixes #84
2018-10-06 22:53:12 +02:00
Adolfo Ochagavía
26108dde1c
Add a setting to disable custom syntax highlighting
2018-09-29 21:27:41 +02:00
ekrctb
c698446384
Remove undefined command
2018-09-21 22:20:48 +09:00
Aleksey Kladov
5901e98116
cleanup comment
2018-09-19 01:15:52 +03:00
Aleksey Kladov
d6c7030aeb
Add emacs function for extend shirnk selection
2018-09-19 00:46:10 +03:00
Aleksey Kladov
bb2331b98e
goto super places cursor on mod
2018-09-16 16:25:24 +03:00
Aleksey Kladov
b5cb53ea93
tweak readme
2018-09-16 15:36:09 +03:00
Aleksey Kladov
b5021411a8
rename all things
2018-09-16 13:07:39 +03:00