AdguardTeam / VscodeAdblockSyntax

Comprehensive extension to manage Adblock Syntax in VSCode: syntax highlighter, linter and much more. Available on the VSCode Marketplace.
https://marketplace.visualstudio.com/items?itemName=adguard.adblock
MIT License
74 stars 8 forks source link

Detecting installations by package managers #75

Closed scripthunter7 closed 1 year ago

scripthunter7 commented 1 year ago

Currently, the linter runs only in integrated mode (i.e. bundled into the VSCode plugin), which can lead to inconsistent results later if a different package version is installed in the project. Therefore, we need to implement a "shared mode" or something that detects if an AGLint package installed by NPM / PNPM / Yarn is available in the cwd (workspace). In this case, that package should be used instead of the integrated / bundled version.

@ameshkov I'm not sure about the name "shared mode", do you have a better idea?