Skip to content

complete function snippets #701

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

Merged
merged 3 commits into from
Jan 19, 2023
Merged

complete function snippets #701

merged 3 commits into from
Jan 19, 2023

Conversation

zth
Copy link
Collaborator

@zth zth commented Jan 18, 2023

This completes function snippets in positions where a function is expected. I think this is a cool feature that can be quite useful.

@zth zth requested a review from cristianoc January 18, 2023 19:47
@@ -1119,7 +1119,7 @@ function onMessage(msg: p.Message) {
renameProvider: { prepareProvider: true },
documentSymbolProvider: true,
completionProvider: {
triggerCharacters: [".", ">", "@", "~", '"', "="],
triggerCharacters: [".", ">", "@", "~", '"', "=", "("],
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this more as a test. I think we can leave it on in the pre-release version and see what people say. Easy to remove if it's annoying because it triggers completion quite often.

@zth zth mentioned this pull request Jan 18, 2023
24 tasks
@zth zth merged commit 4ca71e8 into master Jan 19, 2023
@zth zth deleted the complete-function-snippet branch January 19, 2023 16:34
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

Successfully merging this pull request may close these issues.

2 participants