Browse Source

Add .vega and .vegalite file extension support (#3597)

David Anthoff 7 năm trước cách đây
mục cha
commit
fb72b5bbc1
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      packages/vega2-extension/src/index.ts

+ 2 - 2
packages/vega2-extension/src/index.ts

@@ -154,7 +154,7 @@ const extension: IRenderMime.IExtension = {
     name: 'vega',
     displayName: 'Vega File',
     fileFormat: 'text',
-    extensions: ['.vg', '.vg.json'],
+    extensions: ['.vg', '.vg.json', '.vega'],
     iconClass: 'jp-MaterialIcon jp-VegaIcon',
   },
   {
@@ -162,7 +162,7 @@ const extension: IRenderMime.IExtension = {
     name: 'vega-lite',
     displayName: 'Vega-Lite File',
     fileFormat: 'text',
-    extensions: ['.vl', '.vl.json'],
+    extensions: ['.vl', '.vl.json', '.vegalite'],
     iconClass: 'jp-MaterialIcon jp-VegaIcon',
   }]
 };