Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / pas2js / 2021-01

Pas2JS-VSCode

18 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mgr. Janusz Chmiel
to heliosroots

Excellent programmers job. It is good idea to add Pas2js and Object Pascal language support to Visual studio by adding yours extension for Visual studio.

But I Am still very very sad, that I do not know, if you have released yours special GUi creation units for Pas2js. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20210127/9732965b/attachment.htm>

Reply by email

Michael Van Canneyt
to heliosroots: https://marketplace.visualstudio.com/items?itemName=heliosroots.pas2js-vscode Sent from:…
heliosroots wrote

Some questions:

1. Where are the sources of the ct binary ?

The plugin installs.
I tried to install on MacOS, but there is no ct binary for it, so it's unusable :(

2. The plugin is written in Javascript.
Any plans to write the plugin itself in pas2js ?

Michael.

Reply by email

Michael Van Canneyt
to heliosroots
heliosroots wrote
I'll try to generate an executable for Mac, but I can't test it. the sources I prefer to keep private for now .... Yes it is possible to convert the plugin to pas2js, I made it in js to be able to advance

OK.

And how long is 'for now' ?
We don't want to end up with a second omnipascal :-)

Michael.

Reply by email

Michael Van Canneyt
to heliosroots
heliosroots wrote
as soon as we publish Puma, CT sources will be available as well

Wonderful news !

I'm very interested in having your extension coded 100% in pas2js. Do you think this is possible ?

Michael.

Reply by email

Michael Van Canneyt
to heliosroots: Create or select a directory before, CTRL + O Then create the project .... Sent from:…
heliosroots wrote
Create or select a directory before, CTRL + O

CMD-O on mac ;-)

Then create the project ....

That seems to work, compiling also works, thanks !

Maybe the plugin can check if a workspace has been opened, if not, a window.showOpenDialog can be used to open a directory and with the returned URI

let success = await commands.executeCommand('vscode.openFolder', uri);

Something like it...

Michael.

Reply by email

Michael Van Canneyt
to heliosroots
heliosroots wrote
Ok, as soon as i can i will migrate

It's only 500 lines of code, now is the time before it gets too big ;-)

If you need help or some things are missing in nodejs or libvscode, let me know :-)

Michael.

Reply by email