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

Snippets should not be returned unless client supports them #10

Closed
puremourning opened this issue Jul 25, 2019 · 1 comment
Closed

Snippets should not be returned unless client supports them #10

puremourning opened this issue Jul 25, 2019 · 1 comment

Comments

@puremourning
Copy link

According to LSP, snippet support is optional (a client capability).

If the client does not declare support for them, the server should not return them.

From the protocol:

			/**
			 * The client supports snippets as insert text.
			 *
			 * A snippet can define tab stops and placeholders with `$1`, `$2`
			 * and `${3:foo}`. `$0` defines the final tab stop, it defaults to
			 * the end of the snippet. Placeholders with equal identifiers are linked,
			 * that is typing in one will update others too.
			 */
			snippetSupport?: boolean;
@iamcco iamcco closed this as completed in 0aae459 Jul 26, 2019
@puremourning
Copy link
Author

Thanks. Though I was sorta hoping to get plaintext completions rather than just suppressing them.

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

1 participant