question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support allCommitCharacters even if the client announces commit characters per item.

See original GitHub issue

'm using the client library here for LSP support in a VS Code extension. My server is sending a dynamic registration that includes commit characters like this:

{
	"id": "3",
	"method": "textDocument/completion",
	"registerOptions": {
		"documentSelector": [
			{
				"language": "dart",
				"scheme": "file"
			}
		],
		"triggerCharacters": [
			".",
			"=",
			"(",
			"$"
		],
		"allCommitCharacters": [
			".",
			"("
		],
		"resolveProvider": true
	}
},

However pressing the commit characters doesn’t seem to have any effect. It’s enabled in VS Code and it works as expected for TypeScript. Is there anything else I need to do?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
DanTupcommented, Oct 21, 2020

btw, in the spec it has this:

	 * If a server provides both `allCommitCharacters` and commit characters on an individual
	 * completion item the ones on the completion item win.

This reads like it’s reasonable to provide both, and that the client would fall back to allCommitCharacters if it’s not set on the completion (otherwise it wouldn’t really make sense to send both).

0reactions
dbaeumercommented, Sep 24, 2020

Technically there is nothing that prevents us from implementing it. It is simply not done.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Language Server Protocol Specification - 3.17
A development tool and the language server announce their supported ... be used if clients don't support individual commit characters per * completion...
Read more >
How to write a commit message that will make your mom proud
Learn how to style and format a commit message for optimal readability, especially if using GitHub to host your git repository.
Read more >
How to Write the Perfect Commit Message | Tower Blog
These actions are much easier to perform when you are using a visual Git client like Tower, available for macOS and Windows. Here's...
Read more >
Git commit messages for the bold and the daring - Nulab
If you want to make sure that what ends up in the repository is exactly how you want, then you might want to...
Read more >
How to write a Git commit message properly with examples
Developers can waste too much time when they search for git commits. Follow these git commit message guidelines to consistently write good ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found