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

[Request] Completion #10

Closed
angelozerr opened this issue Jun 29, 2018 · 2 comments
Closed

[Request] Completion #10

angelozerr opened this issue Jun 29, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@angelozerr
Copy link
Contributor

No description provided.

@angelozerr angelozerr self-assigned this Jun 29, 2018
@angelozerr angelozerr changed the title [Request] Auto Complete Tags [Request] Completion Jun 30, 2018
@fbricon fbricon added the enhancement New feature or request label Jul 9, 2018
@NikolasKomonen
Copy link
Contributor

Need to check if the current editor supports snippets at eg: item.setInsertTextFormat(InsertTextFormat.Snippet)

@angelozerr
Copy link
Contributor Author

@NikolasKomonen I have started to write more test for completion and clean compeltion participant API (not finished). To tests that I have created the JUNit https://github.com/angelozerr/lsp4xml/blob/master/org.eclipse.lsp4xml/src/test/java/org/eclipse/lsp4xml/services/HTMLCompletionExtensionsTest.java which has the same test than vscode html language service. To test HTML tags, I have created HTMLPluginCompletion which supports HTML tags (for test).

In other words, HTMLCompletionExtensionsTest provides:

  • test for extension completion participant
  • have the same test than vscode html language service.

There were a lot of bugs that I have fixed since now I have the same test than vscode html language service (bugs with range). The bad news is that I have disabled your feature https://github.com/angelozerr/lsp4xml/blob/master/org.eclipse.lsp4xml/src/test/java/org/eclipse/lsp4xml/services/XMLCompletionTest.java#L62 because I'm not sure it's a good idea to provide too many XML elements completion. For instance you test with hello causes problem with XML Schema (you can have an hello element but not in a child of hello).

If you are not OK with me, please create a new issue to have this feature. For the moment I would like to clean the API and have the same tests than vscode html language service to be sure that completion works well.

Hope you will understand my choice. But as I say you, I'm totally aware to re-enablz it, if you think it's important. Siorry it's my fault when I review your code, I have not seen this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants