sublimelsp / LSP-eslint

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

Failed using workspaces with multiple folders #28

Closed andremacola closed 4 years ago

andremacola commented 4 years ago

Is LSP-eslint works with multiple folders workspace?

Failed to load plugin '@wordpress/eslint-plugin' declared in 'public/app/themes/paper/.eslintrc.js':

When using multiple folders

Captura de Tela 2020-08-04 às 08 40 14

Single folder is working fine.

andremacola commented 4 years ago

This fails:

[
 {
  "path": "/Users/andremacola/Work/Onyx/Paper/app/public/app/themes/paper",
 },
 {
  "path": "/Users/andremacola/Work/Onyx/Paper/app/",
 },
]

Now if I have a workspace with multiple folders like this: When the second folder is not the parent/root folder of the first one. LSP-Eslint works fine.

[
 {
  "path": "/Users/andremacola/Work/Onyx/Paper/app/public/app/themes/paper",
 },
 {
  "path": "/Users/andremacola/Work/Onyx/Hugo",
 },
]