Jump to content

Recommended Posts

Posted

Another interesting and legitimate future possibility here would be to distribute/fork VSCodium (truly open-source VSCode) and bundle the AutoIt-related extensions plus the bundling of AutoIt3Wrapper, SciTE4AutoIt3 full, etc.

Posted (edited)
4 hours ago, Danp2 said:

FWIW, I have both of these extensions installed / enabled at the same time, and it's working ok for me.

Look at your current selected language mode: image.png.446b2ce9fe30fdf7f5e39500a089c56a.png
If it says "AutoIt" then it's Damien.autoit, if it says "AutoIt3" then it's my extension running.

I just tested it myself, and it does not seem like any functionality overlap between the extensions, because of this.

 

3 hours ago, Jos said:

How does that exactly work in VSCode as I assume(d) only one can be active

2 hours ago, SOLVE-SMART said:

they can coexist without any problems

Multiple extensions can be active at the same time, even for the same language. It requires that the same activation requirements are met, like the language mode. It can however introduce unexpected issues. Some functionality might be merged (like suggestions), but others depend on the order, the extensions are loaded and register features/events with the extension. Mostly it's best to stick with one, when it comes to things like IntelliSense, to avoid inconsistent user experience.

Edited by genius257
Posted

In the meantime, until @LoganCH gets in touch: Could you imagine @genius257, that some members of the community support your VSCode extension on GitHub, expand it, etc.? I know you're open to contributions, but you certainly have (as you described) very clear ideas about what the extension should look like.

Do you see this as an opportunity or more as a challenge?

I really want to support yours and Logan's great work as far as I can 😇 .

Best regards
Sven

Stay innovative!

Spoiler

🌍 Au3Forums

🎲 AutoIt (en) Cheat Sheet

📊 AutoIt limits/defaults

💎 Code Katas: [...] (comming soon)

🎭 Collection of GitHub users with AutoIt projects

🐞 False-Positives

🔮 Me on GitHub

💬 Opinion about new forum sub category

📑 UDF wiki list

✂ VSCode-AutoItSnippets

📑 WebDriver FAQs

👨‍🏫 WebDriver Tutorial (coming soon)

Posted
1 hour ago, SOLVE-SMART said:

Could you imagine @genius257, that some members of the community support your VSCode extension on GitHub, expand it, etc.? I know you're open to contributions, but you certainly have (as you described) very clear ideas about what the extension should look like.

Do you see this as an opportunity or more as a challenge?

That is tough for me to answer clearly. I am always 100% open for discussions, suggestions and feedback.
For contributions in regards to my code, i am torn. My code is mostly very unorganized, and currently no automatic linting or general contribution guidelines exists. This means that bigger code contributions will have a lot of unnecessary back and forth, because currently it's all on my local setup and in my head (more or less).
Of course I want to welcome anyone to contribute, but without the issues mentioned above is fixed, I'd advise would be contributors to start with an issue, describing the wanted fix/feature first, before implementing something that may end up being discarded (A waste of work would be bad for you and sad for me).

But via conversations, and an agreed direction, leading to pull request, i see no issue in getting more people involved :)

I do have big wants for the future of my extension, but am stuck in a lot of experimental and exploratory development, making a concrete vision problematic 😅

Posted (edited)

it ain't that different for me

Spoiler

image.thumb.png.2b8e4cedaad1396483d6c4969c5ed465.png

..the keymapping is different but pretty much the same.

...so many questions.
1) When I install an extension (, and I installed both ), which one is the one responding/acting on the action ?, I press "Ctrl + F7", who did it ?
2) I mapped "Ctrl + Alt + T" for Tidy. What did I just mapped ?, why does it work ?
3) How do I set bookmarks ? ( F2 , Ctrl + F2  in SciTE )

Please answer in a way a single threaded brain would understand :)

Edited by argumentum

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted (edited)

@argumentum

Spoiler

Why do you often portray yourself as a low brainer even though you are clever? Of course it's funny but I want to say, at least this one time:
You achieved a lot which can be seen in the forum here 😇 . So thanks for several good stuff you put out here 🤝 .

It's not easy to answer you questions without having to explain intentions around VSCode, the extension ecosystem and so on (at least for me).

I hope you will get a better answers by other persons here, but my suggestion is to walk through https://code.visualstudio.com/api/get-started/your-first-extension , watch some tutorials/docs or even ask AI to summarize it (because it's mainly a non strict related AutoIt topic). Or maybe we open another Thread for "VSCode and VSCode extension fundamentals" 🤔 😀 ?

Best regards
Sven

Edited by SOLVE-SMART

Stay innovative!

Spoiler

🌍 Au3Forums

🎲 AutoIt (en) Cheat Sheet

📊 AutoIt limits/defaults

💎 Code Katas: [...] (comming soon)

🎭 Collection of GitHub users with AutoIt projects

🐞 False-Positives

🔮 Me on GitHub

💬 Opinion about new forum sub category

📑 UDF wiki list

✂ VSCode-AutoItSnippets

📑 WebDriver FAQs

👨‍🏫 WebDriver Tutorial (coming soon)

Posted
3 hours ago, SOLVE-SMART said:

..or even ask AI to summarize it..

WOW. The world of VSCode !. I don't think AI can summarize it. ..and if it did, it would be a no-answer. Am now getting an idea, ( faint idea, ) of the issue with extensions.
Haven't look into extensions code yet, just extensions.
For the type of .., pain in the ass ?, that I am, ..I'd become a VSCode coder, just to use it in a way that I feel at home with having what can be had. But then I would not code my project because I would get lost in an extension or another of my fancy :lol:


- 3) How do I set bookmarks ? ( F2 , Ctrl + F2  in SciTE )
.. add an extension, remap the key association and feel at home again.


I guess I'll wait for y'all to settle on something ( extensions wise ) because, I spoke with my psychologist ( just me advising me ) and ( I myself ) told me to stay away from new stuff too involved for my attention span.
And I agree with me. I have stuff I never finished because of this nature of mine. 🙄

So I'll watch from the sidelines the game development of the AutoIt extension adventure :) 

 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted (edited)

The power of VS Code is in extensions. You want bookmarks ? Install Bookmarks. Or maybe you would like a "session" system just like in SciTE ? Install Save and restore tabs.

You also can open .csv files, and color them with Rainbow CSV for a better reading experience, or even use Git(hub/lab) straight into it. Copilot can help too, and since it reads your open files, we have to admit that it works pretty well.

These are some extensions I am using, I hope it will be useful for someone. :)

Edited by ValentinM

May the force be with you.

Open AutoIt Documentation within VS Code

Posted
Spoiler
16 minutes ago, argumentum said:

For the type of .., pain in the ass ?, that I am, ..I'd become a VSCode coder, just to use it in a way that I feel at home with having what can be had. But then I would not code my project because I would get lost in an extension or another of my fancy :lol:

🤣

 

16 minutes ago, argumentum said:

I spoke with my psychologist ( just me advising me ) and ( I myself ) told me to stay away from new stuff too involved for my attention span.
And I agree with me.

🤣 I'm glad to read that you agree with yourself. Evidence of a healthy mind 👌 .

 

 

Stay innovative!

Spoiler

🌍 Au3Forums

🎲 AutoIt (en) Cheat Sheet

📊 AutoIt limits/defaults

💎 Code Katas: [...] (comming soon)

🎭 Collection of GitHub users with AutoIt projects

🐞 False-Positives

🔮 Me on GitHub

💬 Opinion about new forum sub category

📑 UDF wiki list

✂ VSCode-AutoItSnippets

📑 WebDriver FAQs

👨‍🏫 WebDriver Tutorial (coming soon)

Posted
7 minutes ago, SOLVE-SMART said:

🤣 I'm glad to read that you agree with yourself.

...at times ( quite often ), I do disagree with the better angels of my nature and, pay the price 😭
But, 60 years later am slowly identifying the pattern and can say, that am starting to be more mindful of the advisor.
If I continue paying good attention, I figure I'll be wise at about the age of 120 :D

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted

Hi folks, hi @Jos 👋 ,

what do you think guys, how should we proceed here? I mean Jos opened this Thread 7 days ago (which is not old, I know), but should we wait for an statement of @LoganCH . As I said before, for me it would be interesting to get an assessment by him regarding the future of his VSCode extension, plans, ideas etc. Unfortunately, he is not easy to reach or may be on vacation, stressed or something else. I hope he's doing well 🍀 .

Any suggestions?

Best regards
Sven

Stay innovative!

Spoiler

🌍 Au3Forums

🎲 AutoIt (en) Cheat Sheet

📊 AutoIt limits/defaults

💎 Code Katas: [...] (comming soon)

🎭 Collection of GitHub users with AutoIt projects

🐞 False-Positives

🔮 Me on GitHub

💬 Opinion about new forum sub category

📑 UDF wiki list

✂ VSCode-AutoItSnippets

📑 WebDriver FAQs

👨‍🏫 WebDriver Tutorial (coming soon)

  • Developers
Posted (edited)

I am not in any rush here as I have already published a new Beta for SciTE4AutoIt3 containing all stuff I mentioned here.
After a short period in which people can comment on that Beta, I will release it and then go into hiding for a month. 😅

The reason for starting a discussion here is to see whether there is anything I could do in the current packages used by the extensions in VSCode, and was curious about people's opinions what the "best" extension is to use.  

Couple of things I have been wondering since using VSCode & the Damien version for the AutoIt3 extension are:

  • Is there a reason not having shortcuts for Tidy / Au3Stripper?
  • $VARIABLES & @MACROs aren't shown with a different color. Any reason for that or did I miss something?
  • Is there any logic in the extension to fix some of the auto indent quirks, or is everybody just livening with it? (I know all about them having messed with the LUA code for that and still not have it perfect)

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

I was wondering, if the transition does take place from Scite to VSCode, for those wishing to still use custom helper LUA scripts, in order to duplicate their function, would they need to be re-written in Java/typescript? And if so, are you then essentially creating your own extension? Or would you be using VSCode tasks? Or some other function of VSCode ?

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

Spoiler

"Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions."

 

Posted (edited)

IMHO

damien.autoit

Pros: Suggestions work, F5 launches the script and returns proper console, it has Tidy under the command pallet. VSCode is understanding and makes excellent suggestions.

Cons: I'm not sure how to compile or where the compilation options are for my script, though. If you click Debug, it acts like it's missing the extension. Random indent issues (which I've always used Tidy to fix, even in ScITE)

Edited by BinaryBrother

SIGNATURE_0X800007D NOT FOUND

  • Developers
Posted
4 minutes ago, BinaryBrother said:

I'm not sure how to compile or where the compilation options are for my script, though.

F7 & Ctrl+F7 as in SciTE?
Options are defines by #AutoIt3Wrappper_* directives.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted
3 minutes ago, Jos said:

F7 & Ctrl+F7 as in SciTE?
Options are defines by #AutoIt3Wrappper_* directives.

Ahh, I see. I completely forgot about the Wrapper directives... Whoops.

SIGNATURE_0X800007D NOT FOUND

Posted
4 hours ago, donnyh13 said:

I was wondering, if the transition does take place from Scite to VSCode, for those wishing to still use custom helper LUA scripts, in order to duplicate their function, would they need to be re-written in Java/typescript? And if so, are you then essentially creating your own extension? Or would you be using VSCode tasks? Or some other function of VSCode ?

I'm not familiar with what kind of custom LUA scripts you're referring to, but i really depends on the task required.
The solutions could be one or a combination of: vscode features, existing extensions, external CLI tools or you own custom extension.

Posted (edited)
2 hours ago, genius257 said:

I'm not familiar with what kind of custom LUA scripts

In general I mean the scripts one would put in the "PersonalTools.lua" script (found in C:\Users\Name\AppData\Local\AutoIt v3\SciTE), and assign a hotkey for in SciTEUser.properties, to call in Scite. Generally where you are able to tie into the editor, get the current selected word, etc.

Specifically, for one, I have a tool that scans a script for func declarations and lists each func name in a specific spot at the top, in the order found (For UDF header lists). Or my spell checker. Though VSCode has a few spell checker options, I do like some of my current features, and wondered about making it available in VSCode also.

Thanks for the suggestions.

Edited by donnyh13

LibreOffice UDF  ; Scite4AutoIt Spell-Checker Using LibreOffice

Spoiler

"Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions."

 

Posted

Edit: @genius257

Spoiler

made a copy: "SampleControls - Copy.au3" and added ">AutoIt: Trace: add..". It does add a line with "@@ (20) :(48:22) _Example()" but DClicking does nothing in VSCode.

..ok, that "Problems" tab is for the extension. It shows:

[{
    "resource": "/C:/Users/Admin/.vscode/extensions/genius257.autoit-1.7.0/.github/workflows/publish-extension.yml",
    "owner": "_generated_diagnostic_collection_name_#3",
    "severity": 4,
    "message": "Context access might be invalid: vsce_token",
    "startLineNumber": 20,
    "startColumn": 21,
    "endLineNumber": 20,
    "endColumn": 44
},{
    "resource": "/C:/Users/Admin/.vscode/extensions/genius257.autoit-1.7.0/.github/workflows/publish-extension.yml",
    "owner": "_generated_diagnostic_collection_name_#3",
    "severity": 4,
    "message": "Context access might be invalid: ovsx_token",
    "startLineNumber": 23,
    "startColumn": 21,
    "endLineNumber": 23,
    "endColumn": 44
}]

I should have posted elsewhere but I started here.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...