language: Allow support for ESLint working directories (#43677)
Closes #9648 #9755 Release Notes: - Added way to configure ESLint's working directories in settings. For example: `{"lsp":{"eslint":{"settings":{"workingDirectories":["./client","./server"]}}}}` --------- Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
This commit is contained in:
1 parent
478bcea6d3
commit
7c967b8d1a
14 files changed
+837
-260
No files matched your search
@@ -10,8 +10,8 @@ use language::{ContextLocation, LanguageToolchainStore, LspInstaller};
|
||||
use language::{ContextProvider, LspAdapter, LspAdapterDelegate};
|
||||
use language::{LanguageName, ManifestName, ManifestProvider, ManifestQuery};
|
||||
use language::{Toolchain, ToolchainList, ToolchainLister, ToolchainMetadata};
|
||||
use lsp::LanguageServerBinary;
|
||||
use lsp::LanguageServerName;
|
||||
use lsp::{LanguageServerBinary, Uri};
|
||||
use node_runtime::{NodeRuntime, VersionStrategy};
|
||||
use pet_core::Configuration;
|
||||
use pet_core::os_environment::Environment;
|
||||
@@ -206,6 +206,7 @@ impl LspAdapter for TyLspAdapter {
|
||||
self: Arc<Self>,
|
||||
delegate: &Arc<dyn LspAdapterDelegate>,
|
||||
toolchain: Option<Toolchain>,
|
||||
_: Option<Uri>,
|
||||
cx: &mut AsyncApp,
|
||||
) -> Result<Value> {
|
||||
let mut ret = cx
|
||||
@@ -517,6 +518,7 @@ impl LspAdapter for PyrightLspAdapter {
|
||||
self: Arc<Self>,
|
||||
adapter: &Arc<dyn LspAdapterDelegate>,
|
||||
toolchain: Option<Toolchain>,
|
||||
_: Option<Uri>,
|
||||
cx: &mut AsyncApp,
|
||||
) -> Result<Value> {
|
||||
cx.update(move |cx| {
|
||||
@@ -1593,6 +1595,7 @@ impl LspAdapter for PyLspAdapter {
|
||||
self: Arc<Self>,
|
||||
adapter: &Arc<dyn LspAdapterDelegate>,
|
||||
toolchain: Option<Toolchain>,
|
||||
_: Option<Uri>,
|
||||
cx: &mut AsyncApp,
|
||||
) -> Result<Value> {
|
||||
cx.update(move |cx| {
|
||||
@@ -1884,6 +1887,7 @@ impl LspAdapter for BasedPyrightLspAdapter {
|
||||
self: Arc<Self>,
|
||||
adapter: &Arc<dyn LspAdapterDelegate>,
|
||||
toolchain: Option<Toolchain>,
|
||||
_: Option<Uri>,
|
||||
cx: &mut AsyncApp,
|
||||
) -> Result<Value> {
|
||||
cx.update(move |cx| {
|
||||
|
||||
Reference in new issue
Block a user