Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Instructions for Installing in Visual Studio Code #22

Open
JMichaelTX opened this issue Apr 20, 2020 · 1 comment
Open

Need Instructions for Installing in Visual Studio Code #22

JMichaelTX opened this issue Apr 20, 2020 · 1 comment
Labels
Type: Question Further information is requested

Comments

@JMichaelTX
Copy link

Hi, your system looks great, but I can't get it work in Visual Studio Code.

I did the following:

  1. npm install @jxa/global-type -- successful
  2. Open VSC, and enter your sample code:
import "@jxa/global-type";

// your JXA application
var userName = Application("System Events").currentUser().name();

But as I type "App" I do not see the autocomplete as shown in your GIF, nor do I see it when I type "Application("Sys"

Can you please help me get your system running in VSC?

Thanks.

@azu azu added the Type: Question Further information is requested label Apr 23, 2020
@XYShaoKang
Copy link

Run the following command

mkdir jxa-demo
cd jxa-demo
npm init -y
npm i @jxa/global-type
touch index.js

Then open the index.js editor in vscode, you can get intellisense normally

demo

I suspect that some of your extensions or settings have prevented IntelliSense from functioning properly.

You can try to disable all extensions and settings, and edit to see if there will be intellisense?

My environment

vscode: 1.43.2
Node.js: 12.8.1

I am not an expert, I just hope I can help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants