Don't use ESLint for now

This commit is contained in:
Max Brunsfeld 2023-04-19 18:13:50 -07:00
parent 0ebe44bfd5
commit 960a2bc589
2 changed files with 10 additions and 20 deletions

View file

@ -89,26 +89,23 @@ pub fn init(
(
"tsx",
tree_sitter_typescript::language_tsx(),
vec![
adapter_arc(typescript::TypeScriptLspAdapter::new(node_runtime.clone())),
adapter_arc(typescript::EsLintLspAdapter::new(node_runtime.clone())),
],
vec![adapter_arc(typescript::TypeScriptLspAdapter::new(
node_runtime.clone(),
))],
),
(
"typescript",
tree_sitter_typescript::language_typescript(),
vec![
adapter_arc(typescript::TypeScriptLspAdapter::new(node_runtime.clone())),
adapter_arc(typescript::EsLintLspAdapter::new(node_runtime.clone())),
],
vec![adapter_arc(typescript::TypeScriptLspAdapter::new(
node_runtime.clone(),
))],
),
(
"javascript",
tree_sitter_typescript::language_tsx(),
vec![
adapter_arc(typescript::TypeScriptLspAdapter::new(node_runtime.clone())),
// adapter_arc(typescript::EsLintLspAdapter::new(node_runtime.clone())),
],
vec![adapter_arc(typescript::TypeScriptLspAdapter::new(
node_runtime.clone(),
))],
),
(
"html",

View file

@ -175,19 +175,12 @@ impl EsLintLspAdapter {
const SERVER_PATH: &'static str =
"node_modules/vscode-langservers-extracted/lib/eslint-language-server/eslintServer.js";
#[allow(unused)]
pub fn new(node: Arc<NodeRuntime>) -> Self {
EsLintLspAdapter { node }
}
}
// "workspaceFolder": {
// "name": "testing_ts",
// "uri": "file:///Users/julia/Stuff/testing_ts"
// },
// "workingDirectory": "file:///Users/julia/Stuff/testing_ts",
// "nodePath": "/opt/homebrew/opt/node@18/bin/node",
// "experimental": {},
#[async_trait]
impl LspAdapter for EsLintLspAdapter {
fn workspace_configuration(&self, _: &mut AppContext) -> Option<BoxFuture<'static, Value>> {