Skip to content

Commit

Permalink
Allow shorthand .ds
Browse files Browse the repository at this point in the history
  • Loading branch information
ajthinking committed Jan 26, 2025
1 parent ff1da29 commit 5a5cef1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 7 additions & 2 deletions packages/ds-ext/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@
{
"id": "diagramJson",
"aliases": [
"Diagram JSON"
"Diagram JSON",
"Data Story"
],
"extensions": [
".diagram.json"
".diagram.json",
".ds"
],
"configuration": "./language-configuration.json"
}
Expand All @@ -42,6 +44,9 @@
"selector": [
{
"filenamePattern": "*.diagram.json"
},
{
"filenamePattern": "*.ds"
}
]
}
Expand Down
7 changes: 5 additions & 2 deletions packages/ds-ext/themes/file-icon-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
}
},
"fileExtensions": {
"diagram.json": "diagramIcon"
"diagram.json": "diagramIcon",
"ds": "diagramIcon"
},
"fileNames": {},
"languageIds": {}
"languageIds": {
"diagramJson": "diagramIcon"
}
}

0 comments on commit 5a5cef1

Please sign in to comment.