LSP: Keep using trigger characters, or start using selectors?

For some reason the final commit_completion command re-triggers the completion panel “forever”. I need to esc to hide it.

Animation

Settings are

	"auto_complete": true,
	"auto_complete_commit_on_tab": true,
	"auto_complete_with_fields": true,

_Originally posted by @deathaxe in https://github.com/sublimelsp/LSP/pull/866#issuecomment-603466761_

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (13 by maintainers)

Most upvoted comments

Automatic configuration based on nothing but triggerCharacters from the LSP server is already impossible, if taken at face value it’s entirely brain dead. Showing AC after every " or : character in JSON would give a terrible UX.

Just ignore it, it’s a broken part of the LSP protocol.

If you don’t want to ignore it, then use heuristics or settings to translate trigger characters into selectors.

The dot receives a punctuation.accessor scope only after typing another character, say an i:

That is definitely not ideal behavior. Would you mind opening an issue for that on the Packages repo so it isn’t forgotten?