[config] add the possibility to include specific files / directories for scanning - #336
Open
joelwurtz wants to merge 1 commit into
Open
[config] add the possibility to include specific files / directories for scanning#336joelwurtz wants to merge 1 commit into
joelwurtz wants to merge 1 commit into
Conversation
joelwurtz
force-pushed
the
feat/include-paths
branch
from
August 11, 2026 10:42
75b369e to
28e6d96
Compare
…ries for scanning The workspace scan is gitignore-aware and skips hidden entries, which keeps it off vendor/, node_modules/, and build output. That same filtering hid first-party PHP living in a dotted directory, and generated stub files, which are gitignored as build artefacts yet are the only declaration of the symbols a project calls. Paths listed under `[indexing] include` are indexed after the workspace scan, so they fill gaps rather than displacing what it found. The default is unchanged.
joelwurtz
force-pushed
the
feat/include-paths
branch
from
August 31, 2026 10:11
28e6d96 to
bb7227f
Compare
Author
|
For the record, i rebase to try the "full" setting from 0.10 release but it seems it still does not look at gitignored files / hidden directory by default (so still need this) but maybe i'm wrong ? (did not look at the implementation) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I use this lsp for some times now, and i also use a lot this tool https://github.com/jolicode/castor/ which creates a
.castor.stub.phpat the root of your projects and we can also have a.castorwith php files inside.Those files / directories where currently ignored due to hidden / gitgnore skips in scanning. I added a config under
[indexing]that allow to include any file / directory we want.They are indexed after the workspace scan, so they fill gaps rather than displacing what it found. The default is unchanged.
Checklist
If applicable:
CHANGELOG.mdREADME.md,docs/,examples/)config-schema.json)how it works, how it's organized), including any code drafted by an LLM.
an eye towards deleting anything that is irrelevant, clarifying anything
that is confusing, and adding details that are relevant. This includes,
for example, commit descriptions, PR descriptions, and code comments.