mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-19 18:41:56 +03:00
This reverts commit 96a1af7b0f
from
https://github.com/zed-industries/zed/pull/9738 since it doesn't seem to
do anything. See:
https://github.com/zed-industries/zed/issues/9648#issuecomment-2025132087
Release Notes:
- N/A
This commit is contained in:
parent
cb7c53bc52
commit
5da951ce29
@ -277,9 +277,6 @@ impl LspAdapter for EsLintLspAdapter {
|
|||||||
let use_flat_config = Self::FLAT_CONFIG_FILE_NAMES
|
let use_flat_config = Self::FLAT_CONFIG_FILE_NAMES
|
||||||
.iter()
|
.iter()
|
||||||
.any(|file| workspace_root.join(file).is_file());
|
.any(|file| workspace_root.join(file).is_file());
|
||||||
let working_directories = eslint_user_settings
|
|
||||||
.get("workingDirectories")
|
|
||||||
.unwrap_or(&Value::Null);
|
|
||||||
|
|
||||||
json!({
|
json!({
|
||||||
"": {
|
"": {
|
||||||
@ -295,7 +292,6 @@ impl LspAdapter for EsLintLspAdapter {
|
|||||||
},
|
},
|
||||||
"problems": {},
|
"problems": {},
|
||||||
"codeActionOnSave": code_action_on_save,
|
"codeActionOnSave": code_action_on_save,
|
||||||
"workingDirectories": working_directories,
|
|
||||||
"experimental": {
|
"experimental": {
|
||||||
"useFlatConfig": use_flat_config,
|
"useFlatConfig": use_flat_config,
|
||||||
},
|
},
|
||||||
|
@ -85,19 +85,3 @@ You can configure ESLint's `nodePath` setting (requires Zed `0.127.0`):
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Configure ESLint's `workingDirectories`:
|
|
||||||
|
|
||||||
You can configure ESLint's `workingDirectories` setting (requires Zed `0.130.x`):
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"lsp": {
|
|
||||||
"eslint": {
|
|
||||||
"settings": {
|
|
||||||
"workingDirectories": ["./client", "./server"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
Loading…
Reference in New Issue
Block a user