Any news about script editor improvments?

Any news about this feature request ?

2 Likes

If I remember correctly, at the most recent ICC Developer Panel, they were talking about exposing the underlying script files to the end user and then they could be opened in your favorite text editor. I may be way off here, I just remember something like that being said.

1 Like

If I could use VS Code, I’d be very happy

1 Like

There’s an in-progress ticket to update the editor component and use it everywhere that a code editor is displayed but I don’t know if it includes any of the improvements mentioned in the feature request.

@PGriffith might know more.

Paul has shared progress before. Maybe a sabbatical is in order to finish up? @PGriffith ?

3 Likes

Right now, updating the built-in editors is in progress (awaiting QA). It’s far from complete, but it adds a lot of ‘smarts’ to basic stuff. Some of what I’d like to add will have to wait for 8.2, because of limitations in APIs such as third party scripting modules.

I would love to make the designer an LSP client, which would allow offloading a lot of tasks to external editors; but to do that we’d have to push designer-local resources to disk somewhere, and there’s some tricky complications there.

Similar complications exist for pushing files to disk and opening in external editors; in addition, opening an external editor such as VS Code wouldn’t work perfectly without some doing because: 1. you wouldn’t have your project scripts in the right spots, and 2. you wouldn’t have autocompletion for any system functions, and 3. you wouldn’t have autocompletion for any Java libraries.
Doing that properly might require the designer acting as an LSP server, which is also a big task.

1 Like

@PGriffith
IMHO, script editor most eagerly awaited reasonable improvements are as follow:

  • Auto complete for user package
  • function/block code folding
  • generate comments for function/method (like in PyCharm)
  • scope selector
  • more color highlight (#TODO, …)
  • add multiselection for tag and property in script code windows, to insert a list of paths