Code Monkey home page Code Monkey logo

vala-code's Introduction

DEPRECATED

Use the vala extension


Vala Code

Vala Language Support for Visual Studio Code

Contributing

There are a few things I need help:

  • More code snippets.

  • Language Server:

    Preferably using libvala as most is already there. This is necessary for autocomplete and better formating.

If you wanna discuss any of them, feel free to send me a email or open a issue.

Vala Language useful links

Credits

This extension is strongly based on Vala-TMBundle by Matt Butcher.

The image icon comes from the Moka Icon Theme by Sam Hewitt.

vala-code's People

Contributors

benwaffle avatar btd1337 avatar dlech avatar laurenttreguier avatar thiagojedi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar

vala-code's Issues

Syntax highligth bug

When u write print(@"$a") everything is fine and a has a different color from the color of the string.
But if you write print(@"$(a.b)") (a.b) now have the same color.
image

problem matcher doesn't find deprecation warnings

the regexp ^(.*):(\\d+)\\.(\\d+)-(\\d+)\\.(\\d+):\\s+(warning|error):\\s+(.*)$ is doing fine for finding error messages from valac but it doesn't do so well at warnings. I got the the following warning about a deprecation and the format of the line is quite different: /home/singingbush/gtkproject/src/myapp-gtk.vala:22:2: warning: ‘gtk_color_button_set_rgba’ is deprecated: Use 'gtk_color_chooser_set_rgba' instead

the following should work in this scenario ^(.*):(\d+):(\d+):\s+(warning):\s+(.*)$

perhaps instead of just having a $valac problemMatcher there could be $valac-errors and $valac-warnings. That also gives the user more control about what they want to match on: "problemMatcher": [ "$valac-errors", "$valac-warnings" ]

How to use libvala

Hello im newbie in all this vls and vala, in the description of the plugin when installing it from extensions vs code states that it is better to use libvala for autocomplete and better forming.
So, how to do it?

Dim [Version ...]'s?

I'm not sure this is the right "level" to tackle this issue, please let me know if it's not.
In .vapi files you can have a lot of [Version ...] codes, which I think are usually a bit less important than the other code. They can make vapi files quite hard to read when there are a lot fo them. One example:

https://github.com/elementary/gala/blob/1024813560668152814a72fd93dc6a93b226eb04/vapi/mutter-clutter-1.0.vapi#L4715-L4730

Would there be a way to slightly dim (visually less important) these [Version ...] codes? A bit like what happens with comments for example?

Include VLS into the master

Hi,
i forked your repo and put it on work with vls and gvls they work both well (at least error, warnings and reference to declaration.

What do you think about merge one of them into the master?
of course the vls integration need more work but for now it could be enough.

problem matcher gets file not found

in vala-code/package.json the problemMatcher uses "fileLocation": "absolute" which ends up in file not found when clicking on the problem. I think it should be:

"fileLocation": ["relative", "${workspaceRoot}"],

Construct gobject field

Problem:
image

Code:

public class Person : Object {

    /* Construction properties */
    public string name { get; construct; }
    public int age { get; construct set; }

    public Person(string name) {
        Object(name: name);
    }

    public Person.with_age(string name, int years) {
        Object(name: name, age: years);
    }

    construct {
        // do anything else
        stdout.printf("Welcome %s\n", this.name);
    }
}

vala in studio code

happy to help - but just starting vala education after several other OO languages
will help where i can

any plans to add debugging via gdb

would need to add something like this to the contributes section of package.json and some code to sit between GDB and the vscode API.

https://code.visualstudio.com/docs/extensions/example-debuggers

"debuggers": [{
    "type": "gdb",
    "label": "GDB",
    "windows": {
        "program": "C:\\MinGw\\bin\\gdb.exe"
    },
    "osx": {
        "runtime": "gdb"
    },
    "linux": {
        "runtime": "gdb"
    }
}]

I realise it's probably a big job but it's certainly doable. The D plugin makes use of gdb so it may be possible to reuse some of its code:
https://github.com/WebFreak001/code-debug/blob/master/src/gdb.ts

cant build

after "Hit F5 in VS Code " i get that
image

and that
image

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.