RandomFractals / geo-data-viewer

Geo Data Analytics tool for VSCode IDE with kepler.gl support to generate and view maps πŸ—ΊοΈ without any Python 🐍, IPyWidgets βš™οΈ, pandas 🐼, Jupyter notebooks πŸ“š, or ReactJS βš›οΈ app code.
https://marketplace.visualstudio.com/items?itemName=RandomFractalsInc.geo-data-viewer
Apache License 2.0
408 stars 44 forks source link

add gistpad.viewers contribs to package.json #54

Closed RandomFractals closed 4 years ago

RandomFractals commented 4 years ago

for gist pad to default to geo data viewer for keplergl maps and configs display from those gists.

per @LostInTangent directiives, this is what needs to be added:

"contributes": {
   "gistpad.viewers": [
      {
        "filenames": [
          "keplergl.json"
        ],
        "command": "map.view"
      }
    ]
}
RandomFractals commented 4 years ago

@LostInTangent this works for explicit filenames only ...

geo-data-viewer-gistpad-opengist

making it work for the rest would be nice!

"gistpad.viewers": [
      {
        "filenames": [
          ".geo.json",
          ".geojson",
          ".kgl.json",
          "keplergl.json",
          "keplergl_time.json",
          ".map.json"
        ],
        "command": "map.view"
      }
    ]

I think you should handle it on your end with better file names & ext's pattern matching approach ...