mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-01 14:15:11 +00: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
2 changed files with 0 additions and 20 deletions
|
@ -277,9 +277,6 @@ impl LspAdapter for EsLintLspAdapter {
|
|||
let use_flat_config = Self::FLAT_CONFIG_FILE_NAMES
|
||||
.iter()
|
||||
.any(|file| workspace_root.join(file).is_file());
|
||||
let working_directories = eslint_user_settings
|
||||
.get("workingDirectories")
|
||||
.unwrap_or(&Value::Null);
|
||||
|
||||
json!({
|
||||
"": {
|
||||
|
@ -295,7 +292,6 @@ impl LspAdapter for EsLintLspAdapter {
|
|||
},
|
||||
"problems": {},
|
||||
"codeActionOnSave": code_action_on_save,
|
||||
"workingDirectories": working_directories,
|
||||
"experimental": {
|
||||
"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 a new issue