Skip to content

Ignore 'UndefinedObject' + 'UndefinedNamespace' problem code action should appear only if LSP client can support update configuration.#862

Merged
angelozerr merged 1 commit intoredhat-developer:masterfrom
angelozerr:provide-undefinedobject-codeaction-ifclient-support
Apr 22, 2023
Merged

Ignore 'UndefinedObject' + 'UndefinedNamespace' problem code action should appear only if LSP client can support update configuration.#862
angelozerr merged 1 commit intoredhat-developer:masterfrom
angelozerr:provide-undefinedobject-codeaction-ifclient-support

Conversation

@angelozerr
Copy link
Copy Markdown
Contributor

Ignore 'UndefinedObject' problem code action should appear only if LSP client can support update configuration.

In IJ Quarkus, it doesn't support the capability to update configuration on client side. In otherwise the Ignore 'UndefinedObject' problem should not appear:

image

This PR checks that LSP client can support the command which update LSP client settings.

@angelozerr angelozerr requested a review from datho7561 April 20, 2023 09:15
@angelozerr angelozerr added this to the 0.15.0 milestone Apr 20, 2023
@datho7561
Copy link
Copy Markdown
Contributor

This causes the tests to fail, since in the tests we expect the code action to appear, and it doesn't

Copy link
Copy Markdown
Contributor

@datho7561 datho7561 left a comment

Choose a reason for hiding this comment

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

Once the tests are fixed, I think this will be good to merge

@angelozerr angelozerr force-pushed the provide-undefinedobject-codeaction-ifclient-support branch from c3fa97b to 3b3f879 Compare April 20, 2023 14:10
@angelozerr
Copy link
Copy Markdown
Contributor Author

Once the tests are fixed, I think this will be good to merge

Indeed I need to fix tests.

@angelozerr angelozerr force-pushed the provide-undefinedobject-codeaction-ifclient-support branch 2 times, most recently from 3576bda to 105d289 Compare April 20, 2023 17:40
@angelozerr angelozerr changed the title Ignore 'UndefinedObject' problem code action should appear only if LSP client can support update configuration. Ignore 'UndefinedObject' + 'UndefinedNamespace' problem code action should appear only if LSP client can support update configuration. Apr 20, 2023
@angelozerr
Copy link
Copy Markdown
Contributor Author

@datho7561 tests should be fixed and I missed to do the same thing for UndefinedNamespace.

@angelozerr angelozerr force-pushed the provide-undefinedobject-codeaction-ifclient-support branch from 105d289 to 0a70bf1 Compare April 20, 2023 17:44
@angelozerr
Copy link
Copy Markdown
Contributor Author

@datho7561
Copy link
Copy Markdown
Contributor

it seems that there is a problem with snapshot

Right, we need to point to lsp4mp 0.8.0-SNAPSHOT, since the snapshots for 0.7.0 are deleted after a certain amount of time.

Copy link
Copy Markdown
Contributor

@datho7561 datho7561 left a comment

Choose a reason for hiding this comment

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

This PR is good. Thanks, Angelo! I'll raise a quick PR to fix the issue with the snapshots

@angelozerr angelozerr force-pushed the provide-undefinedobject-codeaction-ifclient-support branch from 0a70bf1 to 048ac03 Compare April 21, 2023 23:27
should appear only if LSP
client can support update configuration.

Signed-off-by: azerr <azerr@redhat.com>
@angelozerr angelozerr merged commit 1868736 into redhat-developer:master Apr 22, 2023
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