Skip to content

mattblackdev/meteor-package-intellisense

Repository files navigation

meteor-package-intellisense

A VS Code extension that enables IntelliSense for local meteor packages by teaching VS Code where your 'meteor/package-name' imports are coming from.

Commands

Meteor Package IntelliSense will modify (or create) your jsconfig.json file with required mapping of imports to file location. For example:

// packages/vulcan-forms/package.js
Package.describe({
  name: "vulcan:forms",
});

Package.onUse(function(api) {
  api.mainModule("lib/client/main.js", ["client"]);
  api.mainModule("lib/server/main.js", ["server"]);
});

Will generate:

// jsconfig.json
{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "meteor/vulcan:forms": [
        "packages/vulcan-forms/lib/client/main.js",
        "packages/vulcan-forms/lib/server/main.js"
      ]
    }
  }
}

Requirements

Anytime you modify packages' names, folder names or mainModule paths, you should re-run the command.

Known Issues

  • Only works for a single workspace

Release Notes

Users appreciate release notes as you update your extension.

1.1.0

Now creates your jsconfig file if it doesn't exist

About

Enables IntelliSense for local meteor packages by teaching VS Code where your 'meteor/package-name' imports are coming from.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors