NativeScript

Submit and vote on ideas for the NativeScript framework and NativeScript plugins

Intellisense for Javascript native APIs on VisualStudio Code

Right now when you are programming with the native APIs for iOS and Android there is no intellisense on the available classes or the methods they provide, it would be a nice to have.

For example if I type "PH" that suggest me that there is a class PHAsset on iOS Photo framework, and if I type "PHAsset." that shows me the methods it contains.

  • Ignacio Larranaga
  • Dec 13 2016
Link to GitHub issue https://github.com/NativeScript/nativescript-vscode-extension/issues/103
  • Attach files
  • Ignacio Larranaga commented
    December 13, 2016 09:59

    Just for reference you have to add the dependency to tns-platform-declarations (`npm install tns-platform-declarations --save-dev`) ot your project and latter add the following to references.d.ts:
    ```
    /// <reference path="node_modules/tns-platform-declarations/android.d.ts" />
    /// <reference path="node_modules/tns-platform-declarations/ios.d.ts" />
    ```

  • Gravatar
  • Gravatar
  • Gravatar
  • Gravatar