-
Notifications
You must be signed in to change notification settings - Fork 30k
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] Support snippet contribution on a specific file #3125
Comments
I think an additional |
@dbaeumer This is about completion in task.json, right? |
@aeschli it's not about default values for keys, it's for entire snippets, for example an entire task configuration for a build task that a language extension can contribute. Or simply snippets that only show up in specific files, see my examples. |
@aeschli I would for example like to insert the following lines: "version": "0.1.0",
"command": "tsc",
"isShellCommand": true,
"showOutput": "silent",
"args": ["-p", "."],
"problemMatcher": "$tsc" How would I do that with default values and how would I provide more than one default value the user can pick from ? |
@dbaeumer Schemas now support a 'defaultSnippets' property. Let me know if that suits your needs. |
👍 |
I started using the default snippet support from the JSON schema. |
I would like to contribute snippets to .vscode/tasks.json. However currently I can only contribute snippets using the snippet extension point on a language mode.
The text was updated successfully, but these errors were encountered: