David Barsky
6260c635ee
fmt
2023-09-05 15:45:52 -04:00
David Barsky
68781aeab0
fix some more lints
2023-09-05 12:38:33 -04:00
David Barsky
1ee7f54fa6
fix lints
2023-09-05 12:38:33 -04:00
David Barsky
b1b044f2d5
code: yeet rust-analyzer.discoverProjectCommand
2023-09-05 12:38:33 -04:00
bors
d548146c30
Auto merge of #15420 - Wilfred:discover_command_max_buffer, r=Veykril
...
Increase the buffer size for discover project command
The default value for maxBuffer is 1 MiB[1]. If the discover project command returns stdout or stderr that is greater than 1 MiB, the extension would error with "RangeError: stderr maxBuffer length exceeded".
Set the default value for maxBuffer to 10 MiB for project discovery.
[1] https://nodejs.org/api/child_process.html#child_processexeccommand-options-callback
2023-08-15 12:13:12 +00:00
Lukas Wirth
e76d20e072
Add status bar button to toggle check on save state
2023-08-15 11:39:53 +02:00
Lukas Wirth
33f9250d21
Pass server extraEnv to isValidExecutable
2023-08-12 07:10:20 +02:00
Wilfred Hughes
0ef541e535
Increase the buffer size for discover project command
...
The default value for maxBuffer is 1 MiB[1]. If the discover project
command returns stdout or stderr that is greater than 1 MiB, the
extension would error with "RangeError: stderr maxBuffer length
exceeded".
Set the default value for maxBuffer to 10 MiB for project discovery.
[1] https://nodejs.org/api/child_process.html#child_processexeccommand-options-callback
2023-08-10 12:28:50 -07:00
bors
eed86c0d98
Auto merge of #15392 - Wilfred:stopped_color, r=lnicola
...
Use the warning color when rust-analyzer is stopped
If the rust-analyzer server isn't running, we can't do much. Treat this state as a warning color, so it's more obvious.
2023-08-05 12:20:39 +00:00
Wilfred Hughes
253d68459d
Use the warning color when rust-analyzer is stopped
...
If the rust-analyzer server isn't running, we can't do much. Treat
this state as a warning color, so it's more obvious.
2023-08-04 11:07:22 -07:00
Wilfred Hughes
1e76b11a20
Set the default status bar action to openLogs
...
Previously, clicking 'rust-analyzer' would stop the server
entirely. This was easy to do accidentally, and then the user has to
wait for the server to start up again.
2023-08-04 11:03:41 -07:00
Lukas Wirth
bd6ec06237
Write proc-macro server spawn errors to the status text
2023-07-30 14:38:25 +02:00
bors
bc1b0bfa7f
Auto merge of #15308 - vsrs:runnable_env_per_platform, r=HKalbasi
...
Runnable env per platform
This PR adds an option to specify runnables `env` per platform (win32, linux, etc.):
```
{
"rust-analyzer.runnables.extraEnv": [
{
"platform": "win32",
"env": {
"SCITER_BIN_FOLDER": "C:\\Projects\\3rd\\sciter-js-sdk\\bin\\windows\\x64",
}
},
{
"platform":["linux","darwin"],
"env": {
"SCITER_BIN_FOLDER": "/home/vit/Projects/sciter/sciter-js-sdk/bin/linux/x64",
}
}
]
}
```
2023-07-28 07:03:09 +00:00
igorskyflyer
5d67cbea43
Use notification command links for debugger installation
2023-07-20 15:41:08 +02:00
vsrs
08b3b2a56d
Fix lint
2023-07-18 18:06:20 +07:00
vsrs
3468b093bd
Platform specific runnables env
2023-07-18 17:51:57 +07:00
Tetsuharu Ohzeki
f7823f3106
editor/code: Re-apply code format
2023-07-13 22:44:29 +09:00
Tetsuharu Ohzeki
445b4fc27f
editor/code: Sort the style to import types
...
see:
- https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-type-imports.md
- https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-import-type-side-effects.md
2023-07-11 06:12:00 +09:00
Tetsuharu Ohzeki
444bc5b3ba
editor/code: Enable TypeScript's --useUnknownInCatchVariables
option
...
see: https://www.typescriptlang.org/tsconfig#useUnknownInCatchVariables
2023-07-10 23:13:36 +09:00
Tetsuharu Ohzeki
a66b7e3eba
editor/code: Remove unused sendRequestWithRetry
2023-07-10 23:13:36 +09:00
Tetsuharu Ohzeki
fd31006646
editor/code: Assert types in catch in sendRequestWithRetry()
properly
2023-07-10 23:13:36 +09:00
Adenine
1dd54eb44a
change viewMemoryLayoutParams to be textPositionParams
2023-07-08 12:25:54 -04:00
Adenine
4d5c66986e
cleanup + docs + tests
2023-07-07 23:12:09 -04:00
Adenine
c43cfefdd8
fix typescript return path warning
2023-07-07 23:09:41 -04:00
Adenine
de5e3cf745
fix incorrect committed rust and run prettier
2023-07-07 23:09:41 -04:00
Adenine
cfa15d49aa
implement first pass of memory layout viewer
2023-07-07 23:09:41 -04:00
bors
09f666b51b
Auto merge of #15227 - DropDemBits:indent-on-blank-line, r=lnicola
...
fix: Indent after pressing enter on a blank line
Regressed after https://github.com/rust-lang/rust-analyzer/pull/13975 (whoops).
2023-07-07 09:06:56 +00:00
DropDemBits
ebaf8c8135
fix: Indent after pressing enter on a blank line
2023-07-06 23:25:02 -04:00
Tetsuharu Ohzeki
f70845305f
editor/code: Enable noPropertyAccessFromIndexSignature
ts option
2023-07-06 16:17:02 +09:00
Tetsuharu Ohzeki
72a3883a71
editor/code: Enable noUncheckedIndexedAccess
ts option
...
https://www.typescriptlang.org/tsconfig#noUncheckedIndexedAccess
2023-07-06 16:17:02 +09:00
Alex Kladov
832a64e290
feat: don't add panics to error jump list by default
...
To re-enable this, use
"rust-analyzer.runnables.problemMatcher": [
"$rustc",
"$rust-panic"
],
setting.
closes : #14977
2023-06-30 22:23:13 +01:00
bors
d7f4c21950
Auto merge of #15138 - mohsen-alizadeh:13583-rename-runnableEnv-to-runnables-extraEnv, r=Veykril
...
13583 rename runnable env to runnables extra env
closes #13583
2023-06-29 07:18:57 +00:00
Mohsen Alizadeh
3f70117d69
fallback to old key
2023-06-28 21:24:28 -07:00
Tetsuharu Ohzeki
8e0efbc2a7
editor/code: Enable noImplicitOverride
ts option
2023-06-28 17:40:27 +09:00
Mohsen Alizadeh
6c3e15aaa0
13583 rename runnable env to runnables extra env
2023-06-25 17:26:04 -07:00
David Barsky
7dfef85be6
fix: add a toggle to disable the dependency explorer.
2023-05-26 11:50:07 -04:00
Lukas Wirth
0028e73927
fix: Force disable augmentsSyntaxTokens capability on VSCode
2023-05-18 08:26:16 +02:00
Aleksey Kladov
7bc60f512e
feat: define problem matcher for panics in VS Code
...
Now in VS Code "go to next error" (`F8`) will bring you to the source of
a panic.
2023-05-06 16:49:42 +01:00
Erik Steiger
91b4a169cd
Fix formatting
2023-05-05 14:49:42 +02:00
Erik Steiger
06cfeb47b2
Sort rust dependencies in tree view
2023-05-05 14:41:03 +02:00
Bruno Ortiz
0aed507f16
fixing TS linting, removing import
2023-05-02 11:06:28 -03:00
Bruno Ortiz
bcb21311ea
Accepting review suggestions
2023-05-02 11:06:25 -03:00
Bruno Ortiz
072f69e4c1
fixing ts linting and rust test
2023-05-02 11:01:53 -03:00
Bruno Ortiz
bd2160f014
final rabasing fixes
2023-05-02 11:01:53 -03:00
Bruno Ortiz
66fe84d936
accepting review suggestions
2023-05-02 11:01:41 -03:00
Bruno Ortiz
fe7874af90
reveal only when tree is visible
2023-05-02 10:59:31 -03:00
Bruno Ortiz
a3081a6774
Adding crate_root_path to crate_graph
2023-05-02 10:59:31 -03:00
Bruno Ortiz
8e687f7afb
improving code to work with multi-workspaces
2023-05-02 10:59:31 -03:00
Bruno Ortiz
1b8288ff96
Fixing naming from graph to list
2023-05-02 10:59:29 -03:00
Bruno Ortiz
061940dad9
running prettier
2023-05-02 10:56:47 -03:00