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

[#132] Remove InitialUri interface and its usages #133

Closed
wants to merge 1 commit into from

Conversation

ruspl-afed
Copy link
Member

Remove InitialUri and use UriResource query

Remove `InitialUri` and use `UriResource` query
private IWorkspace workspace;

@Override
public FallbackFlags getFallbackFlagsFromInitialUri(URI root) {
if (isWindows) {
return uri.find(root)//
return Optional.ofNullable(root)//
.flatMap(new UriResource(workspace))//
Copy link
Contributor

Choose a reason for hiding this comment

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

This won't work since the rootURI form LSP4E is the URI of the initial project. We need the URI of the initial file.

We can apply the changes of this PR when LSP4E has accepted my PR #692

Copy link
Member Author

Choose a reason for hiding this comment

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

We need the URI of the initial file.

Why IProject is not sufficient for us?

Copy link
Member Author

Choose a reason for hiding this comment

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

As I can see it, what we do next is get IProject from IResource (or IFile), isn't it?

@ruspl-afed ruspl-afed marked this pull request as draft September 13, 2023 15:07
@ruspl-afed
Copy link
Member Author

Became outdated

@ruspl-afed ruspl-afed closed this May 29, 2024
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.

None yet

2 participants