Coder Social home page Coder Social logo

hennamann / extendscript-for-visual-studio-code Goto Github PK

View Code? Open in Web Editor NEW
31.0 5.0 4.0 284 KB

Extension that adds Adobe ExtendScript support to Visual Studio Code

License: MIT License

TypeScript 100.00%
visual-studio-code-extension extendscript syntax-highlighter jsx jsxinc typescript visual-studio

extendscript-for-visual-studio-code's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

extendscript-for-visual-studio-code's Issues

Missing support for symbols

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.

Add document formatting + bugfix it

When right-clicking in a jsx file, the useful "Format Document" feature is missing.

I believe it should be possible to instruct the extension to use the JavaScript formatter in the manifest but I haven't read too deeply into it.

For reference, this is what I'm referring to:
image

Stopped working Win 11 VSC 1.62

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

Code containing multiple consecutive double quotes gives error 25

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..

Autocomplete doesn't work

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

Select the target application" is not displayed.

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.

Bug: This extension disables my snippet shortcuts. (editor.action.insertSnippet) in keybindings.json

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

Breakpoints.

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?

intellisense works?

Im kinda new to all this.. git, visual code... does this shows intellisense for Extendscript?!

Preprocessor directive errors

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.

Language Server crashing repeatedly

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.