Skip to content

Commit

Permalink
Add example to the vscode setting "initTemplatesUrls" (#5754)
Browse files Browse the repository at this point in the history
From user feedback, it's not easy to figure out how to use the setting
"initTemplatesUrls". The doc in changelog and intellisense in json is
not that visible. So add example to the vscode setting page for
"initTemplatesUrls" so that user can understand how to configure it
easily.
  • Loading branch information
RodgeFu authored Jan 28, 2025
1 parent 67d284c commit 8e7dd77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: fix
packages:
- typespec-vscode
---

Add example to the vscode setting "initTemplatesUrls"
2 changes: 1 addition & 1 deletion packages/typespec-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"typespec.initTemplatesUrls": {
"type": "array",
"default": [],
"description": "List of URLs to fetch templates from when creating a new project.",
"description": "List of URLs to fetch templates from when creating a new project.\n\nExample:\n\"typespec.initTemplatesUrls\": [{\n\"name\": \"displayName\",\n\"url\": \"https://urlToTheFileContainsTemplates\"\n}],",
"scope": "machine-overridable",
"items": {
"type": "object",
Expand Down

0 comments on commit 8e7dd77

Please sign in to comment.