GithubHelp home page GithubHelp logo

fixedbit / lslint-for-vscode Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 1.0 264 KB

LSLint support for Microsoft Visual Studio Code

License: GNU General Public License v3.0

TypeScript 90.88% JavaScript 9.12%

lslint-for-vscode's People

Contributors

fixedbit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

wildwiz

lslint-for-vscode's Issues

Want to use problem view

Currently, the result of lslint is displayed in a pop-up in the lower right, but I would like to display this in the problem view.
I think it's a little inconvenient that you can't click to the corresponding line.

After investigating, I realized that it would be better to use the Diagnostic Collection.
Although it is a Japanese article, it seems that it can be output to the problem view by doing this.
https://blog.bonprosoft.com/1578/

Allow a custom execution of lslint

If I stick with regular LSL, this lslint and this plugin work great. When you get in to more advanced LSL, however, you really want to use a preprocessor to tighten up your code. For example, declaring a variable for each constant you want to have is expensive. It's far better to use a #define to give a friendly name to a number.

In order for me to use lslint, I've got to use the local C Preprocessor in order to generate code first. In Windows, I've installed cygwin, so I can use bash and g++. The script I use to call lslint is as follows:

#!/bin/bash

INCLUDE=/cygdrive/c/Users/Corysia/SecondLife/LSL
if [ "$1" == "" ]; then
        echo "Usage: $0 <filename>";
        exit 1;
fi

cat $* | cpp -I"$INCLUDE" -E - | lslint -i

I'd really like to be able to configure the equivalent of that script in this plugin. But it has to be flexible enough for people who don't use a local preprocessor.

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.