vscode-map-preview icon indicating copy to clipboard operation
vscode-map-preview copied to clipboard

Running the contributed command:'map.preview' failed.

Open smcardle opened this issue 5 years ago • 3 comments

Opening a GeoJSON file then selecting map preview causes the following error to display

Running the contributed command:'map.preview' failed.

The GeoJSON file is 103.5 MB and was exported from mapshaper.org

Steve

smcardle avatar Dec 13 '18 23:12 smcardle

The GeoJSON file is 103.5 MB

o_O

I don't think this extension was designed to preview files of that size

jumpinjackie avatar Dec 14 '18 00:12 jumpinjackie

same problem, my file is 139 MB

netotz avatar Nov 17 '20 22:11 netotz

Same problem. My file is 1.32GB

szewah avatar Feb 24 '21 16:02 szewah

Sorry, but VSCode's extension APIs will not cooperate with us when working with files over a certain limit (currently 50MB). Such files we cannot get important information about the open document to initiate a map preview.

Until VSCode improves their extension API support around large files, there is nothing I can do here: https://github.com/microsoft/vscode/issues/31078

For the next 0.6.0 release, we will show the error message This file is too big to be previewed if attempting to map preview such a large file.

jumpinjackie avatar Sep 11 '23 17:09 jumpinjackie