tini-app-jsapi-plugin
v1.0.2
Published
Tini App JSApi Plugin is a typescript server plugin that adds intellisense to Tini App JSApi.
Downloads
5
Maintainers
Readme
Tini App JSApi Plugin
Tini App JSApi Plugin is a typescript server plugin that adds intellisense to Tini App JSApi.
Features
- Syntax highlight
- Code completion
- Hover information
- Error checking
Usage
This plugin requires TypeScript 2.4 or later. It can provide intellisense in both JavaScript and TypeScript files within any editor that uses TypeScript to power their language features. This includes VS Code, Sublime with the TypeScript plugin, Atom with the TypeScript plugin, Visual Studio, and others.
With VS Code
Install the plugin along side the version of TypeScript in your workspace:
npm install --save-dev tini-app-jsapi-plugin
Or
yarn add --dev tini-app-jsapi-plugin
Then add a plugins
section to your tsconfig.json
or jsconfig.json
{
"compilerOptions": {
"plugins": [
{
"name": "tini-app-jsapi-plugin"
}
]
}
}
Finally, run the Select TypeScript version
command in VS Code to switch to use the workspace version of TypeScript for VS Code's JavaScript and TypeScript language support. You can find more information about managing typescript versions in the VS Code documentation.
With Sublime
This plugin works with the Sublime TypeScript plugin.
First install the plugin and a copy of TypeScript in your workspace:
npm install --save-dev tini-app-jsapi-plugin typescript
Or
yarn add --dev tini-app-jsapi-plugin typescript
And configure Sublime to use the workspace version of TypeScript by setting the typescript_tsdk
setting in Sublime:
{
"typescript_tsdk": "${YOUR_PROJECT}/node_modules/typescript/lib"
}
Finally add a plugins
section to your tsconfig.json
or jsconfig.json
and restart Sublime.
{
"compilerOptions": {
"plugins": [
{
"name": "tini-app-jsapi-plugin"
}
]
}
}
With Atom
This plugin works with the Atom TypeScript plugin.
First install the plugin and a copy of TypeScript in your workspace:
npm install --save-dev tini-app-jsapi-plugin typescript
Or
yarn add --dev tini-app-jsapi-plugin typescript
Then add a plugins
section to your tsconfig.json
or jsconfig.json
and restart Atom.
{
"compilerOptions": {
"plugins": [
{
"name": "tini-app-jsapi-plugin"
}
]
}
}
With Visual Studio
This plugin works Visual Studio 2017 using the TypeScript 2.5+ SDK.
First install the plugin in your project:
npm install --save-dev tini-app-jsapi-plugin
Or
yarn add --dev tini-app-jsapi-plugin
Then add a plugins
section to your tsconfig.json
.
{
"compilerOptions": {
"plugins": [
{
"name": "tini-app-jsapi-plugin"
}
]
}
}
Then reload your project to make sure the plugin has been loaded properly. Note that jsconfig.json
projects are currently not supported in VS.