Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS Code extension lints files outside of workspace root. #587

Open
alterae opened this issue Feb 27, 2024 · 2 comments
Open

VS Code extension lints files outside of workspace root. #587

alterae opened this issue Feb 27, 2024 · 2 comments

Comments

@alterae
Copy link

alterae commented Feb 27, 2024

Expected Behavior

Selene's VS Code extension should only lint files present in the workspace root. IE: given a workspace with the root ~/code/factorio/chunk-power the extension should only lint files under that directory.

Actual Behavior

The extension lints workspace files, but also lints files such as ~/.vscode/extensions/sumneko.lua-3.7.4-darwin-arm64/server/meta/Lua 5.2 en-us utf8/basic.lua and ~/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents/data/base/scenarios/freeplay/freeplay.lua when other extensions use those files to aid static analysis.

@chriscerie
Copy link
Collaborator

To clarify, is this what's happening?

  1. Open ~/code/factorio/chunk-power in vscode
  2. Open an external file like ~/Library/**/*.lua
  3. External file gets linted

@alterae
Copy link
Author

alterae commented Mar 26, 2024

no, external files are getting linted without me directly opening them (tho the files it lints seem to be ones the lua LSP is aware of/using for type-checking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants