hennamann / extendscript-for-visual-studio-code Goto Github PK
View Code? Open in Web Editor NEWExtension that adds Adobe ExtendScript support to Visual Studio Code
License: MIT License
Extension that adds Adobe ExtendScript support to Visual Studio Code
License: MIT License
The syntax highlighting seems to work correctly, but functions are not recognized as such.
"Go To Symbol in File" does not work for ExtendScript files.
Setting jsx files to Javascript without this extension enables symbols and works for the most part. The major exception is E4X.
FWIW, I've discovered that setting the type as ActionScript using the NextGenActionScript extension results in similar results to this.
If there's some way to enable symbols and keeping the syntax highlighting including E4X, that would make this extension really useful.
Windows 11
VSC 1.62
Noticed it stopped working for me on Windows 11 using Visual Studio Code v1.62. I dont see any Syntax Highlight appear.
On OSX 10.11.6, i believe ive got older VSC, it still works
ExtendScript Toolkit 4.0 renders a particular piece of code as:
actionDescriptor1.putString ( idassetRef, """{"local_id" :"urn:uid:local:22998ae8-23c9-4278-bc6c-c2b11783caf2","path" :"""+filename2SaveInDirectory+""","display_name" :"""+filename2Save+"""}""" ); //[All on one line - and it works]
However, ExtendScript Debugger v2.0.3 renders the code as:
actionDescriptor1.putString(idassetRef, ""
"{"
local_id " :"
urn: uid: local: 22998 ae8 - 23 c9 - 4278 - bc6c - c2b11783caf2 ","
path " :"
"" + filename2SaveInDirectory + ""
","
display_name " :"
"" + filename2Save + ""
"}"
""); //[On separate lines - and it gives error 25]
Error 25: Expected: ).
Line nnnn
-> "{"
I.e., the second line above.
This behaviour affects other code containing multiple consecutive double quotes, and gives error 25.
The code was copied from ScriptListener, and forms part of the PS code to save in the Cloud..
I just installed the extension and noticed some strange behaviour.
If I open my existing script (.jsx) autocomplete works.
If I create a new .jsx file it doesn't.
What am I doing wrong?
Regards,
Michael
I'm using a macbook pro (M1 / arm64).
I have installed "ExtendScript" but I don't see "select the target application" on the toolbar.
I tried it on another mac (intel chipset) and it is displayed there.
I haven't tested with other shortcuts, but ExtendScript definitely disables/conflicts with my shortcut Ctrl+Q
that I use to insert a predefined logging snippet. If I enable ES, it doesn't work. If I disable it, it works again.
I don't know what the cause is, but I can try other shortcuts to see how widespread the error is and possibly give you steps to reproduce.
Here is an excerpt from my keybindings.json
file:
{
"key": "ctrl+q",
"command": "editor.action.insertSnippet",
"args": { "name": "JSX Quick Log" },
"when": "editorTextFocus && editorLangId == javascriptreact",
},
Here's the snippet definition in snippets.code-snippets
{
"JSX Quick Log": {
"prefix": "log",
"body": [
"alert(\"$TM_SELECTED_TEXT: \" + \"\\\"\" + $TM_SELECTED_TEXT + \"\\\"\");"
],
"description": "JSX Quick Log"
}
}
Would appreciate a fix if you can find the conflict!
Thanks,
Jay
I can't add breakpoints to my code. If i change the language to javascript, i can add them. Is this a problem on my side, or just general?
Im kinda new to all this.. git, visual code... does this shows intellisense for Extendscript?!
Attempting to use an #include statement in a script results in two errors.
Lines starting with # trigger error ts(1127) "Invalid character."
I'm also getting ts(1005) "';' Expected" because VSC thinks "include" is a variable name.
In ESTK, the syntax is as follows:
#include "somescript.jsx"
It's pretty low priority as it doesn't prevent the debugger from working correctly, but the red lines are distracting.
Sorry, I don't have many details to provide, but I'm getting no auto-complete suggestions at all. Syntax highlighting is fine.
Am I missing something?
Installed this extension today and an error notice popped up:
The ExtendScript Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.