Otiel / vscode-xyplorer

XYplorer language support for VS Code
https://marketplace.visualstudio.com/items?itemName=Otiel.vscode-xyplorer
MIT License
8 stars 1 forks source link

Sending scripts to XYplorer run scripts ? #1

Open SheepDomination opened 6 years ago

SheepDomination commented 6 years ago

I was wondering whether it can be added whereas, you can send the script to XYplorer > Scripting > Run Script and vise versa ?

Otiel commented 6 years ago

There may be a possibility since we can use the following command line to run a script:

"C:\Program Files (x86)\XYplorer\XYplorer.exe" /feed=Test.xys

That would require some testing to validate the behavior on XYplorer side. I'm not fluent with VS code extensions authoring, so any help or PR would be appreciated.

What do you mean by "vice-versa" ?

SheepDomination commented 6 years ago

What do you mean by PR ?

When I mentioned "vise-versa" I meant; not just sending the script from visual studio code to XYplorer > run script; also sending what code that is within the run script command back to visual studio code for further editing.
Rather then copying and pasting the code into XYplorer run script, you would trigger to send the script to XYplorer run script from within the visual studio code extension, then if you should so happen to edit the script within XYplorer run script you could send that back to the tab which you are working on the XYplorer script within visual studio code.

Otiel commented 6 years ago

PR = pull request.

Oh, my bad, I didn't understand what you meant. I thought you wanted to run a script directly from VS code.

What you're looking for (copy-pasting from one window to another window) falls out of VS code extensions scope. You should look for doing this using an automation software, like AutoHotkey or AutoIt.

SheepDomination commented 6 years ago

I originally wanted to run a script directly from VSCode, not sure if that is possible ?

Otiel commented 6 years ago

I think it is, per what I wrote on my first comment, but the script will be automatically executed: it won't be sent to the "debug" window of XYplorer.

SheepDomination commented 6 years ago

One would always have to re-start XY and feed it the /feed=Test.xys flag for the script which you want XY to execute ?

Otiel commented 6 years ago

Not at all. The goal would be to create a VS code command that would execute this command line:

"C:\Program Files (x86)\XYplorer\XYplorer.exe" /feed=Test.xys

That would not restart XYplorer (see the Help file, chapter "Command Line Switches"); that would only execute the script in the existing XYplorer instance.

SheepDomination commented 6 years ago

What VS code command would have to be executed, or is this command what you'd add to the extension ?

Otiel commented 6 years ago

is this command what you'd add to the extension ?

Correct.

SheepDomination commented 6 years ago

is this command what you'd add to the extension ?

Correct.

I look forward to the update 👍

SheepDomination commented 1 year ago

Any update and for code be sent to the debug window ?

Otiel commented 1 year ago

No sorry, I won't have time to work on this in the near future. 🙁

SheepDomination commented 1 year ago

If you ever decide to start it up; this is the only feature request I'd like to see ;)