Skip to content

Conversation

@olafurpg
Copy link
Contributor

I found the snippets to be distracting, especially because the
suggestions appear in positions where the resulting code is invalid.
Snippets should belong in separate vscode packages with the category
"snippets". That is how it's done for TypeScript:
https://marketplace.visualstudio.com/search?term=typescript&target=VSCode&category=Snippets&sortBy=Relevance

Note that a snippet plugin can be located in the same github repo as the
syntax.

I found the snippets to be distracting, especially because the
suggestions appear in positions  where the resulting code is invalid.
Snippets should belong in separate vscode packages with the category
"snippets". That is how it's done for TypeScript:
https://marketplace.visualstudio.com/search?term=typescript&target=VSCode&category=Snippets&sortBy=Relevance

Note that a snippet plugin can be located in the same github repo as the
syntax.
@olafurpg
Copy link
Contributor Author

Note, a language server is able to provide smarter snippet completions based on the position of the cursor. Given that this package is expected to be shared for all Scala-related vscode plugins, I think it should do only syntax highlighting.

@olafurpg
Copy link
Contributor Author

Superseded by #3, which splits the snippets into a separate package.

@olafurpg olafurpg closed this Apr 16, 2018
@olafurpg olafurpg deleted the keyword-snippets branch April 16, 2018 11:39
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.

1 participant