X Tutup
Skip to content

Multi-index / Workspace Folders etc.#2816

Open
dantleech wants to merge 1 commit intomasterfrom
indexer
Open

Multi-index / Workspace Folders etc.#2816
dantleech wants to merge 1 commit intomasterfrom
indexer

Conversation

@dantleech
Copy link
Collaborator

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

@mamazu
Copy link
Contributor

mamazu commented Jan 4, 2025

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
Copy link
Contributor

zobo commented Mar 28, 2025

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

override def completion(
params: CompletionParams
): CompletableFuture[CompletionList] =
getServiceFor(params.getTextDocument.getUri).completion(params)
Copy link
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.

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

X Tutup