Skip to content

Multi-index / Workspace Folders etc. - #2816

Open
dantleech wants to merge 1 commit into
masterfrom
indexer
Open

dantleech wants to merge 1 commit into
masterfrom
indexer

Conversation

@dantleech

Copy link
Copy Markdown
Collaborator

Initial research into "multi index" and then how we probably don't even need that.

@mamazu

mamazu commented Jan 4, 2025

Copy link
Copy Markdown
Contributor

Yes this makes the most sense.
Having the stubs and the vendor directory marked as readonly indexes by default might also open up for optimizations (eg. no dirty tracking etc)

@zobo

zobo commented Mar 28, 2025

Copy link
Copy Markdown
Contributor

There's also an easier, far more ugly solution: Spawn one instance of Phpactor per workspace zobo/vscode-php-intellisense#34

Not recommending, just saying...

@dantleech

Copy link
Copy Markdown
Collaborator Author

that's not so different from the proposed solution, just instead of a new process it's just a new instance of the container

Comment thread doc/adr/0004-indexer.md
override def completion(
params: CompletionParams
): CompletableFuture[CompletionList] =
getServiceFor(params.getTextDocument.getUri).completion(params)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the problem with this approach does not allow cross workspace completions. Which means that would be incompatible with splitting off the stubs into it's own index.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

3 participants