Giter VIP home page Giter VIP logo

gml-support's Introduction

The project has stopped maintenance, please use Stitch for VSCode instead.

GML Support

GameMaker Language Support in Visual Studio Code.
Visual Studio Code version should be higher than 1.8.0.

GitHub: https://github.com/LiarOnce/gml-support
Offical Website: https://gmlsupport.liaronce.com

Report an issue: https://github.com/LiarOnce/gml-support/issues

GameMaker Language对Visual Studio Code的支持。
Visual Studio Code版本需高于1.8.0。

Contributing

https://gmlsupport.liaronce.com/#/Contribute

Other

You can also follow me on Twitter (need verification) : @LiarOnce1062  
Twitter Channel: #GML_Support
Telegram Channel: https://t.me/gmlsupport

Thanks

https://gmlsupport.liaronce.com/#/?id=credits

gml-support's People

Contributors

jabsatz avatar laspencer91 avatar liaronce 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gml-support's Issues

[Feature] Tasks.json for Debugger (Testing)

This is the tasks.json template, you need create it in .vscode folder in your workspace root.

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Build Game",
            "type": "shell",
            "command": "rubber ."
        }
    ]
}

The src/debug folder‘s codes is still not available at this time.

Syntax highlighting is not behaving as expected.

Describe the bug
Syntax highlighting isn't behaving like in Gms2.
Tried GM 8.1, GM:S, and GM:S2 syntax options and they all behave the same.

Expected behavior
var variables should be different colors than object variables.
some gms2 functions are highlighting and others are not.
some strings are being colored... others are not.

Screenshots
image

Desktop

  • OS: Windows 10 v19041
  • Extension Version:

intellisense should work for variables in current file, open files and / or all GML files in folder

Is your feature request related to a problem? Please describe.
whenever, I'm reusing a variable that was declared in the current file, it's frustrating there's intellisense / auto-complete doesn't kick in.

However function names do appear when a . is typed. Which is great. Thanks

Describe the solution you'd like

  1. Best option: gml-support could check all variables in GML files in current folder & subfolders
  2. 2nd best option: extension checks all variable declarations in open files in VSCode
  3. 3rd best option: extension checks all variable declarations in current file

Describe alternatives you've considered
Right now, I manually search for variable names that I use, and retype it in the current file.

Also, GML Bundle (extension) for Sublime Text 3 does show local variables.

It's possible this is an out of box feature for ST3, and not implemented as part of GML Bundle

Additional context
Here's a GIF of it in action where new_astroid variable was previously declared, but intellisense isn't kicking in

VSCode GML Extension - Intellisense suggestion

Add toggle to disable single-quote string highlighting

Is your feature request related to a problem? Please describe.
When using object_event_add(ind, evtype, evnumb, codestr) syntax highlighting treats everything inside codestr as a string, disabling single quote string highlighting would fix this

Describe the solution you'd like
Add a toggle in the settings (if possible) to disable single-quote string highlighting

Describe alternatives you've considered
No alternatives are available

Additional context
Imgur

Add Auto Formatter

Can you add Auto Formatting (Ctrg,+Shift+F)
should be the same as in javasriptish?

Thank you

Error message related to robertohuertasm.vscode-icons

Last version of vscode-icons 8.7.0 by VSCode Icons Team is installed but still get the following error message :

Cannot activate the 'GML Support' extension because it depends on an unknown 'robertohuertasm.vscode-icons' extension .

Begin and end keywords (+ Linguist?)

Is your feature request related to a problem? Please describe.
Yes — there is no support for the begin and end keywords. end is highlighted in green, begin is not highlighted at all. While the majority of GML users use curly braces to denote blocks, begin and end are still valid in the language and used.

image
image

Describe the solution you'd like
Highlighting for the begin and end keywords.

Describe alternatives you've considered
Not sure what I would have to type here, but I suppose it's worth mentioning that I have forked the repo and added begin and end myself. I tested them through Lightshow and received this result:

image

If you want me to, I can make a PR.

Additional context
This is unrelated to the begin and end keywords, but I would like to request that you consider adding this syntax (ideally with the begin and end keywords) to github/linguist. This is the central repository that manages all syntax highlighting for GitHub code files. GML is not currently supported by it and it instead uses a grammar made for the programming language C, leading to a partial result:

image
image

Et cetera.

With your grammar:

image
image

(The difference in syntax colours is because the partial results are screenshotted from GitHub itself, whereas the ones with the syntax working correctly are from GitHub Lightshow [A grammar tester], where I have a custom stylesheet running in my browser)

Hoping to hear from you soon.

Functions do not highlight!

syntax does not highlight, like builtin functions/variables
What do you mean by.... "may require theme support".. do I have to install anything else?
I am on a MAC OSX, can this be the problem?

无法激活扩展

问题描述:无法激活"GML Support"扩展,因为他依赖于未知的"robertohuertas.vscode-icons"扩展。
VSCode版本:x64 1.35.0
OS:Ubuntu 19.04 Disco with kernel "x86_64 Linux 5.0.0-16-generic"
尝试:找到robertohuertasm的主页,并且安装了主页的vscode-icons插件(版本8.7.0),并且在vscode中设置图标主题为"VSCode Icons",重启vscode扔无法加载插件。

function info doesn't show up

in the screenshot it shows information on the function when you highlight it like what arguments the function takes. When I use it no information shows up, just the function name.
Am I missing something?

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.