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

Improve completion based on grammar with snippets #1468

Open
angelozerr opened this issue Jan 27, 2023 · 2 comments
Open

Improve completion based on grammar with snippets #1468

angelozerr opened this issue Jan 27, 2023 · 2 comments

Comments

@angelozerr
Copy link
Contributor

It should be nice to provide the capability to override completion item based on grammar with snippets.

Here a demo with dependency completion with pom.xml:

  • the first completion item comes from LemMinx
  • the second completion item comes from vscode-maven

MavenCompletionDependency

The goal of this issue is to provide the same completion item of vscode-maven. The idea is to write a JSON snippet for dependency and use it to override the basic dependency completion item.

@tbazant
Copy link

tbazant commented Feb 24, 2023

+1 as that idea would improve the user experience that my 'DocBook snippet' extension for VSCode offers - see https://github.com/openSUSE/suse-vscode-doc/blob/main/extensions/docbook-snippets/snippets/snippets.code-snippets

@oscarlevin
Copy link

This would be great. In the mean time, I've done something similar for pretext-tools, although not on the LSP server side, which would probably be faster. See oscarlevin/pretext-tools#67

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

No branches or pull requests

3 participants