sublimelsp / LSP-eslint

ESLint support for Sublime LSP plugin
MIT License
34 stars 5 forks source link

Add support for resolving workspaceDirectories #30

Closed rchl closed 3 years ago

rchl commented 3 years ago

Implements code for parsing user-supplied "workspaceDirectories" setting into "workingDirectory" that server receives. The relevant code from vscode-eslint extension is here: https://github.com/microsoft/vscode-eslint/blob/a296a01afc79089c49a4f5c9c2b75831a03494b0/client/src/extension.ts#L1183-L1255

Configuring "workspaceDirectories" using patterns (rather than paths) is not supported as there is some crazy parsing code that is required for that and I didn't feel like converting that to python: https://github.com/microsoft/vscode-eslint/blob/a296a01afc79089c49a4f5c9c2b75831a03494b0/client/src/utils.ts#L77-L228

Resolves #18