Skip to content

Commit

Permalink
Merge pull request #376 from ajthinking/shorthand-extension
Browse files Browse the repository at this point in the history
Allow shorthand .ds
  • Loading branch information
ajthinking authored Jan 26, 2025
2 parents ff1da29 + 5a5cef1 commit dc4d583
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 dc4d583

Please sign in to comment.