Comments (2)
Thanks for feedback.
@jxa/global-type's approach is same with Cypress that is a E2E framework.
- Intelligent Code Completion | Cypress Documentation
- JXA/packages/@jxa/global-type at master ยท JXA-userland/JXA
There are serveral pattern of usage.
TypeScript user
If you write JXA script as TypeScript project, you just import @jxa/global-type
file.ts:
import("@jxa/global-type");
JavaScript user
If you write JXA as JavaScript, you should do following steps:
- Create
package.json
$ npm init --yes
- Install
@jxa/global-type
$ npm install -D @jxa/global-type
- Adding
tsconfig.json
file with the following configuration should get intelligent code completion working.
tsconfig.json:
{
"compilerOptions": {
"allowJs": true,
"types": [
"@jxa/global-type"
]
},
"include": [
"**/*.js" // <= this scope is integrated with @jxa/global-type
]
}
- Write JXA code as JavaScript like
file.js
Also, I've created starter repository for JavaScript user.
git clone https://github.com/JXA-userland/editor-integrate-example
cd editor-integrate-example
vscode .
from jxa.
Thanks again for all the information you have provided.
I've tried many things but still can not get autocomplete of my JXA code to work.
Would it be possible to do a screen share some time, where you could walk me through this process?
If you would do that, then I would be happy to create a YouTube video showing users like me how to get this done.
from jxa.
Related Issues (18)
- sdef-to-dts is missing children elements HOT 1
- tsc v3.3.33 errors on dts @jxa/global-type HOT 2
- @jxa/run: update default max buffer to 100MB HOT 2
- Example passing args to run() HOT 1
- Application() breaks if `esModuleInterop` is `true`
- Need Instructions for Installing in Visual Studio Code HOT 1
- Automator integration
- Readme.md โย typo: "JSX" should be "JXA"
- Questions about @jxa/sdef-to-dts HOT 1
- npm Audit Issues with @jxa/sdef-to-dts
- How Do I Use System Events.sdef?
- $.NSWorkspace.sharedWorkspace.iconForFile() not work
- Typings for read-write variables HOT 1
- Support for non-core applications HOT 9
- app.systemInfo().IPv4Address is undifine, should be app.systemInfo().ipv4Address
- npx command for converting Script Definitions to Type Definitions
- Put types into DefinitelyTyped HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jxa.