Giter Site home page Giter Site logo

zbecknell / asp-classic-support Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 6.0 1.47 MB

A VS Code extension for ASP Classic that includes syntax highlighting, intellisense, and code navigation for VBScript inside Active Server Pages (ASP) files.

License: MIT License

Classic ASP 46.66% TypeScript 52.93% CSS 0.03% HTML 0.38%

asp-classic-support's People

Contributors

almaraubel avatar m-bilgi avatar robert-dejong avatar theodorejb avatar zbecknell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

asp-classic-support's Issues

Docs bug out when changed

Hmm, this seems to not be happening anymore (could've been some sort of VSC bug?).

Going to keep a look out.

Include Virtual

I was browsing extensions for classic ASP and so glad that I found this. Does this work for "nclude virtual"? I have many pages using "include virtual" instead. That would be wonderful if it works for "include virtual".
<!--#include virtual="include/utilities.asp" -->

Thank you,

Intellisense not working

Sorry for such a newbie question @zbecknell , but I can't for the life of me work how to enable the intellisense feature of your extension to work.

I have the extension installed:
Screenshot 2022-02-17 at 15 40 54

I have associated file extensions
Screenshot 2022-02-17 at 15 41 17

I do get some sort of code prompt to auto-complete existing included functions:
Screenshot 2022-02-17 at 15 49 38

Screenshot 2022-02-17 at 15 43 18

Hover doesn't seem to do anything, or right click just generates:

Screenshot 2022-02-17 at 15 44 10

If go to change Select Language Mode:

Screenshot 2022-02-17 at 15 45 12

It seems to want to associate asp files with html.

I need this type of functionality sooo bad! If you can fix this for me, free beers on me!

Tested on both Mac and Windows:


Version: 1.64.2 (Universal)
Commit: f80445acd5a3dadef24aa209168452a3d97cc326
Date: 2022-02-09T22:00:58.347Z (1 wk ago)
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin x64 19.2.0
Version: 1.64.2 (user setup)
Commit: f80445acd5a3dadef24aa209168452a3d97cc326
Date: 2022-02-09T22:02:28.252Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19043

Formatting documents

Hello

First of all thanks for a great extension :) It have helped me lots.

Might be offtopic but... I was wondering if it is possible to add a formatter for asp files in this extension?

It's a pain when you can't press shift+ctrl + F to format the document that is 90% html.

Thanks again for a great extension!

Setting Option for highlight background color for ASP

I started using your extension now and really like it.
One Enhancement Request:
Currently, the code within the <% %> will be highlighted with background color. Please give user the setting option to change it.

Thank you,

Snippets is not working

Adding the code below to package.json solves the problem.

"snippets": [{ "language": "html", "scopeName": "text.html.asp", "path": "./snippets/asp.json" }],

Symbols are disappearing

When I have the following files
a.asp (includes b)
b.asp (includes c)
c.asp

file a.asp

<!-- #include virtual="/b.asp" -->
<%
B(1)
%>

file b.asp

<!-- #include virtual="/c.asp" -->
<%
Function B(foo)
        C(1)
	B= foo
End Function
%>

file b.asp

<%
Function C(foo)
     	C= foo
End Function
%>

When I go to definition in file a.asp to function B and go back to file a every thing is perfect. But when I go from a.asp to function B and then go to function C (in c.asp) and then back to file a.asp it could not find function B any more.

It's looks like that provideDocumentSymbols only is executed after opening the file or changing the file. provideDocumentSymbols calls currentDocSymbols.clear(); which clears all for the previous file

Intellisense not working

Hi Zachary!!

Great work, and thank you for considering the improvement of nested includes!

Now I've found that intellisense is not showing functions from "file" type includes when there is also in the same document "virtual" type includes..

Best regards!

No definition found for... / TypeError: Cannot read properties of undefined (reading 'length')

Hello,

Is anyone facing the "No definition found for..." issue when trying to click to follow function?

I'm using includes like this <!--#include file="../inc/func.asp" --> but it seems that ASP-Classic-Support can't find the function defined in the other file. It only works if I open the file where the function is, but after a while it stops working again.

Also in the output I'm getting the following log right after restarting the VSCode:

Extension activated
TypeError: Cannot read properties of undefined (reading 'length')

And ever time that a file is opened the output gets a new TypeError: Cannot read properties of undefined (reading 'length')

Nested includes support

Hi Zachary!

I'm Jorge from Spain ; )

You did a great job with this extension! You bring hope to those developers who still have to deal with big Classic ASP projects.

We have several projects where we are using nested includes to organize better all of the functions and subs we use, for instance:

  • main.inc -> functions.inc -> types.inc
  • main.inc -> functions.inc -> crypto.inc
  • main.inc -> functions.inc -> xml.inc

But right now the extension only gathers data from the include on the first level. Do you think there is a way to work with all of the includes.

Thank you again for your great work Zachary!

Best regards,

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.