GithubHelp home page GithubHelp logo

luncher91 / vbscript-vscode Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 5.0 253 KB

A vscode extension for VBScript language support

License: MIT License

TypeScript 99.80% Batchfile 0.20%
symbols vbscript vscode vscode-extension

vbscript-vscode's People

Contributors

darfka avatar kevinsproles avatar luncher91 avatar worldmaker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vbscript-vscode's Issues

Multi-Dim support

decleration of multiple variables at once are not recognized!

Example:
Dim a, b, c

intellisense support

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.

how to install?

hello,

newbie with VSCODE I don't know how to install your module...can you explain ?

thanks

Support symbols from includes

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.

Parameters as symbols

The extension should list the parameters of a function as symbols to provide some kind of code completion feature.

ASP file support

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.

Underline seperation

A multiline (seperated by an underscore _ ) definition will not be recognized.

Create an ANTLR grammar

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.

Got slow with 0.0.7

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.

Symbols not parsed correctly before a function/sub is closed.

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_keypress

After extra keypress (in this case I hit return) the symbols on the right sort themselves out correctly:

after_keypress:

after_keypress

VB6 Parameters

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.

  • All parameters pick up the "As" keyword as their name rather than their actual name
  • Types of parameters with dots in them keep function/subs from showing at all

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.

VBA - Visibilité liste structure + proposition variable en cours de frappe

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 property

Default properties are not recognized!

line 8032 is the end of the default property:
ERROR - line 8032: There is no property to end!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.