Esri / esri-loader

A tiny library to help load ArcGIS API for JavaScript modules in non-Dojo applications
Apache License 2.0
459 stars 79 forks source link

new `esri-loader-typings-helper` plugin for VS Code #266

Closed CalebM1987 closed 3 years ago

CalebM1987 commented 3 years ago

I do not really know where to advertise this, but I just built a handy new extension called esri-loader-typings-helper for VS Code to autogenerate the loadModules() syntax with JavaScript and TypeScript support. To use, simple write a list of modules to import, select the text and run the plugin:

["esri/Map", "esri/views/MapView", "esri/layers/FeatureLayer", "esri/config"]

Here is a preview of it in action: plugin-async

It will support both the async/await pattern as well as using a promise: plugin-promise

When used in JavaScript, it behaves the same except excludes the typings for the appropriate constructors: plugin-async-js

If you guys think this is worth mentioning in the README, feel free to advertise it. Otherwise, kindly ignore this enhancement request. The Github repo can be found here for anyone who is interested in contributing/improving.

tomwayson commented 3 years ago

This is awesome.

This is definitely worth including in the README. To me it fits well under the Advanced Usage section. I would gladly accept a PR for that.

CalebM1987 commented 3 years ago

Thanks @tomwayson.

I will create a PR that includes some quick info on it in the Advanced Usage section.