luncher91 / vbscript-vscode Goto Github PK
View Code? Open in Web Editor NEWA vscode extension for VBScript language support
License: MIT License
A vscode extension for VBScript language support
License: MIT License
decleration of multiple variables at once are not recognized!
Example:
Dim a, b, c
It would be great to have some kind of intellisense support such that symbols will be listed while typing.
The first step will be to list them independent of the scope.
hello,
newbie with VSCODE I don't know how to install your module...can you explain ?
thanks
It would be nice to have symbols loading from external files like
<!-- #include virtual = "/lib/lib.asp" -->
I have not created a extension for vscode before but i would like to help with this issue, but i dont know where to start.
I would like to see vscode debugging VBScript code. The API on the script host side is documented here:
https://docs.microsoft.com/en-us/scripting/winscript/active-script-debugging-overview
I would appreaciate any help or contributions on this topic.
The extension should list the parameters of a function as symbols to provide some kind of code completion feature.
Commenter Scott Chapman on the Marketplace suggested ASP file support.
To fully support ASP files it is needed to detect the script parts of the ASP file.
A multiline (seperated by an underscore _ ) definition will not be recognized.
Does not find symbols in files associated with the built-in "vb" language mode.
Since VBScript and VBA have some slight differences, there are extensions that target one or the other. It would be nice to be able to configure in user settings which language modes or file extensions this processes.
At the least, add "vb", "vba", "vbscript" to this line for the built-in, VSCode VBA, and VBScript language modes.
With the experience of the first versions of the plugin I like to create a ANTLR grammar to get an abstract syntax tree for further improvements of symbols and quicker file scanning so we can provide things like workspace wide symbols and syntax checks.
A abstract syntax tree will make it easy to implement much more language server features and the support for every plugin user.
This issue can be used to collect any suggestions and information on creating an ANTLR grammar for VBScript.
The symbol search got very slow by the update on 0.0.7.
A script file with 25000 lines of code took about 6 seconds to be analyzed.
Another file with 35000 lines of code took about 9 seconds.
The symbols get out of wack when a sub/function doesn't have the end function keyword, and once they do it doesn't recalculate until the keypress after you type end function/end sub. the two screen shots below illustrate this.
Before extra keypress the symbols in the outline are incorrect:
before_keypress:
After extra keypress (in this case I hit return) the symbols on the right sort themselves out correctly:
after_keypress:
This is probably out of scope, but I've been desperate to get whatever Outline/symbols support I can get for a large pile of VB6 code in VSCode and this extension was the best out of the box for that of all the ones I've tried. There's just a couple of issues I've found.
Most of my issues seem to be parameter problems.
For instance of that bigger second issue:
' This Sub won't show up in the outline at all because of the . in ADOX.Catalog
Sub CreateSomeDbTable(ByRef Cat As ADOX.Catalog)
Public Sub
I found the RegEx to adjust to try to fix these and might try to fork and PR a fix for it myself, but often find it best to file the issue first rather than build the PR first. Especially in a case like this where it is possibly out of scope and maybe not more generally useful.
I need an icon for this extension!
Type: Feature Request
Bonjour,
J'avais trouvé une extension pour code VBA qui permettait d'avoir la visibilité sur la liste "Strucutre" et qui proposait les noms de variables existantes en cours de frappe.
Depuis quelques temps, cette extension n'est plus disponible. J'ai bien trouvé l'extension "VBScript symbols v1.1.0" qui permet d'afficher la liste "Structure" mais quand cette extension est active, la proposition des noms de variables existantes en cours de frappe ne fonctionne plus. Du coup c'est soit l'un soit l'autre mais pas les deux.
Est-ce qu'il y a moyen de corriger le problème?
Extension version: 1.1.0
VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:57:04.379Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Default properties are not recognized!
line 8032 is the end of the default property:
ERROR - line 8032: There is no property to end!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.