Visual Studio Code Extension for PlayCanvas

We’re excited to announce the availability of the new Visual Studio Code Extension for PlayCanvas.

All the power of VS Code together with the power of the PlayCanvas Editor! :muscle:

Read all about it on the blog:

Help us spread the word by reposting us on X:

https://twitter.com/playcanvas/status/1780206341006520579

Let us know what you think!! :raised_hands:

16 Likes

I’m trying this for the first time today. Is VSCode search supposed to work across all script files in the PlayCanvas project? Currently, it only seems to be working on open files.

For example, I have a script named Materials.js. I’m able to edit the script and find the ‘material’ keyword if I search for it:

However, after I close Materials.js, no results are returned:

VSCode’s little blue search progress indictator is moving left to right like it’s trying to execute the search, but it never returns any results. VSCode isn’t showing any error in the output window.

3 Likes

Thanks for testing. Yes, we’re aware of this existing limitation, and will see what can be done here as this is certainly a must have feature.
@yak32

1 Like

@yak32 We should have a note about this on the User Manual page covering the extension, IMHO.

When adding a new script in the web editor it doesn’t automatically show up in VSCode. Is it supposed to?

And doing the “Playcanvas: Pull Latest” gives me:

Command 'PlayCanvas: Pull Latest' resulted in an error
Cannot read properties of undefined (reading 'path')

@yak32

thanks for reporting this - do you have v0.1.5 of the extension? Any special steps to reproduce? To sync a project in VS Code, you need to pull latest, yes (at least for now)

@yak32 yes this is v0.1.5 installed from within VSCode. Here is a video to show what happens, I basically just add a project and do pull right away: https://youtu.be/i62v84m3WS4

I have the latest vscode. I’m on the latest MacOS.
Other extensions I have enabled: Github Copilot, Go, HashiCorp Terraform, Cucumber (Gherkin) Full Support, Docker, Github Copilot Chat, Live Share, Playwrite Test for VSCode, Polacode.

ok, I see what’s happening … building a fix

2 Likes

meanwhile you can right click on the project in the explorer view and select “Pull Latest…” from there

1 Like

This is quite awesome!

2 Likes

Was this added yet?

Find in Files is still not yet implemented. cc @yak32

Hi, I’m experiencing problems with this extension. I get the message that I can’t save most times.

Also, when I enter my API key it immediately disappears from the input field in settings. Perhaps expected?

Pull command has no effect.

  • Björn

Hello,
we actually updated the extension yesterday, could you please check your issue with the latest version?
Iakov

I see. When I search for it it lists this version

But I can’t see an update button so I jusst assumed I was on the latest one?

Followup, I’m behind a corporate proxy from Zscaler, and when enabled I can not pull up the projects with Playcanvas: Add Project in the search bar. However, if I temporary disable it I can. (this goes for VS code insiders. In Cursor (https://www.cursor.com/) I can pull the projects list, and open but often fail when saving.

Zscaler sometimes has problems with SSL injection. If you could describe more which hosts this extension communicate with perhaps I can have them whitelisted.

the first host is AWS CloudFront in eu-west-1, hope this helps

Results of nslookup

Server: 10.118.7.241
Address: 10.118.7.241#53

Non-authoritative answer:
Name: playcanvas.com
Address: 18.245.187.28
Name: playcanvas.com
Address: 18.245.187.88
Name: playcanvas.com
Address: 18.245.187.105
Name: playcanvas.com
Address: 18.245.187.99

thanks, I suspect this might be subject to change?

Seems to have solved it now by excluding some domains from SSL injection. Thanks!

1 Like