Gregoire Geis
b70ad7e5f3
Remove enableEnhancedTyping and type overriding infrastructure.
2020-02-03 20:24:50 +01:00
Gregoire Geis
23ef22dd48
Add regular onEnter command, allowing onEnter to be called without overriding the type command.
2020-02-03 20:18:10 +01:00
Veetaha
2fd7af2a62
vscode: use void where possible
2020-02-02 23:24:09 +02:00
Veetaha
12d0970f7e
vscode extension: migrate from any to unknown where possible
2020-02-02 22:19:59 +02:00
Veetaha
8184752470
vscode refactoring: use more laconic export snytax, split huge string to several lines
2020-02-02 21:37:22 +02:00
Veetaha
420462421d
vscode extension cleanup: migrate to prefer-const tslint rule
2020-02-02 21:12:59 +02:00
Kirill Bulatov
78a21253b4
Apply the api design suggestions
2020-01-15 20:17:17 +02:00
Kirill Bulatov
73dc8b6f06
Another attempt to add multiple edits
2020-01-15 20:16:27 +02:00
Aleksey Kladov
ff0ceb30a9
Add semicolons
2019-12-31 18:55:34 +01:00
Aleksey Kladov
cb41ffbbbd
Fix NPEs
2019-12-31 18:50:32 +01:00
Aleksey Kladov
087af54069
Refactor server lifecycle
2019-12-31 18:32:17 +01:00
Aleksey Kladov
68b7d84974
Restore internal applySourceChange command
2019-12-30 23:46:13 +01:00
Aleksey Kladov
04f0f5077a
Reformat with tsfmt
2019-12-30 23:30:35 +01:00
Aleksey Kladov
b8368f09b4
Dead code
2019-12-30 20:16:57 +01:00
Aleksey Kladov
6cc55e4c5c
status is not a command
2019-12-30 20:16:07 +01:00
Aleksey Kladov
7b199f6a4b
Hints are not commands
2019-12-30 20:10:40 +01:00
Aleksey Kladov
3d008a78d0
Move all commands to ctx
2019-12-30 20:07:04 +01:00
Aleksey Kladov
da80b6c1e1
Minor refactor
2019-12-30 20:00:46 +01:00
Aleksey Kladov
6b118c9b8d
Refactor runables
2019-12-30 19:58:44 +01:00
Aleksey Kladov
94be27fc44
Move expand macro to the new context
2019-12-30 19:31:07 +01:00
Aleksey Kladov
68f47a5b10
Cleanup
2019-12-30 19:12:49 +01:00
Aleksey Kladov
260df66b77
Cleanup imports
2019-12-30 19:07:59 +01:00
Aleksey Kladov
ca5c59507f
Refactor show syntax tree action
2019-12-30 19:07:59 +01:00
Aleksey Kladov
ac3d0e8340
Run prettier on all files
2019-12-30 19:07:59 +01:00
Aleksey Kladov
9bfeac708d
Move parentModule to the new Ctx
2019-12-30 19:07:59 +01:00
Aleksey Kladov
5aebf1081d
Refactor applySourceChange
2019-12-30 19:07:59 +01:00
Aleksey Kladov
83d2527880
Move joinLines to the new Ctx
2019-12-30 19:07:59 +01:00
Aleksey Kladov
5dd9edaeaf
Move matching brace to new Ctx
2019-12-30 15:23:55 +01:00
Aleksey Kladov
29e86c0c72
More second command to Ctx
2019-12-30 14:53:43 +01:00
Aleksey Kladov
e53ccb6e99
Start new ctx module
2019-12-30 14:42:59 +01:00
Aleksey Kladov
2008f9e0b9
Simplify
2019-12-30 12:29:33 +01:00
Emil Lauridsen
b9c10ed97f
Re-format VSCode extension changes
2019-12-25 19:10:30 +01:00
Emil Lauridsen
178c23f505
Re-implement status display using LSP 3.15 progress event
2019-12-25 19:08:44 +01:00
Emil Lauridsen
41a1ec723c
Remove cargo-watch from vscode extension.
...
Still keeps tests around for reference when porting them to rust
2019-12-25 17:37:40 +01:00
kjeremy
6049f60a05
Protect against null as revealed by npm test
2019-12-20 13:52:34 -05:00
Vadzim Dambrouski
22ae4cb906
Fix formatting
2019-12-16 09:01:38 +05:30
Vadzim Dambrouski
a85cd6455a
Add option to disable all-targets.
...
Can be useful in embedded.
2019-12-15 23:32:13 +05:30
Tetsuharu OHZEKI
0e9cabab3f
Enable noImplicitReturns option for vscode extension
2019-12-12 01:11:53 +09:00
Tetsuharu OHZEKI
b21bb44c8d
Enable noUnusedParameters option for vscode extension
2019-12-12 00:56:29 +09:00
Laurențiu Nicola
273299693b
Code: enable prettier trailing commas
2019-12-09 21:07:19 +02:00
Aleksey Kladov
eec68e6f45
Merge pull request #2297 from kiljacken/master
...
Add fancy truncation of type hints.
2019-11-20 08:38:25 +03:00
Edwin Cheng
1d56b80250
Minor fix for outpu text formating
2019-11-20 01:22:28 +08:00
Edwin Cheng
d16cc223e1
Use DocumentProvider instead of Hover
2019-11-20 01:06:10 +08:00
Emil Lauridsen
dadad36bb9
Move type inlay hint truncation to language server
...
This commit implements a general truncation framework for HirFormatter
that keeps track of how much has been output so far. This information
can then be used to perform truncation inside the language server,
instead of relying on the client.
Initial support is implemented for truncating types hints using the
maxInlayHintLength server config option. The existing solution in the
VSCode extension has been removed in favor of letting the server
truncate type hints.
2019-11-19 17:23:50 +01:00
Edwin Cheng
4012da07fd
Change return type of expand_macro
2019-11-19 22:56:48 +08:00
Edwin Cheng
8010b42b21
Fix npm formatting
2019-11-19 21:49:06 +08:00
Edwin Cheng
3ccd05fedc
Add recursive expand in vscode
2019-11-19 21:49:06 +08:00
oxalica
b4fae56a25
Fix format
2019-11-16 18:52:47 +08:00
oxalica
4c175fbe8a
Check exit code of cargo watch
2019-11-16 03:44:38 +08:00
oxalica
503920532d
Handle errors when cargo watch
fails
2019-11-16 02:49:44 +08:00