Skip to content

Commit

Permalink
fix eslint lsp config that workspace config requires full settings
Browse files Browse the repository at this point in the history
  • Loading branch information
braineo committed Oct 30, 2023
1 parent 8763b3a commit 59a8e97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/lspserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import subprocess
import threading
import traceback
import copy
from subprocess import PIPE
from sys import stderr
from typing import TYPE_CHECKING, Dict
Expand Down Expand Up @@ -510,6 +511,7 @@ def handle_workspace_configuration_request(self, name, request_id, params):
sessionSettings = settings.get(section, {})

if self.server_info["name"] == "vscode-eslint-language-server":
sessionSettings = copy.copy(settings)
sessionSettings["workspaceFolder"] = {
"name": self.project_name,
"uri": path_to_uri(self.project_path),
Expand Down

0 comments on commit 59a8e97

Please sign in to comment.