Code Monkey home page Code Monkey logo

gml-tools-langserver's People

Contributors

sanbox-irl avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

gml-tools-langserver's Issues

Signature help fails if it can't find the "startId" of undefined

Steps to reproduce:

Type:

show_debug_message/*WHY*/()

Signature support will appear without error.
Hitting delete with the caret between "(" and ")", deleting open and closed parentheses, causes:

[Error - 8:48:55 AM] Request textDocument/signatureHelp failed.
  Message: Request textDocument/signatureHelp failed with message: Cannot read property 'startIdx' of undefined
  Code: -32603

Optional paramaters shows as required paramaters

functions like instance_destroy() take a variable amount of paramaters (0 - 2), but the lang server marks an error if you do not provide all.

**reproduce: ** type instance_destroy(); in a gml file.

REQUEST: Allow inline functions with script injection

The following syntax in an object's create event:

#lambda damagePlayer(dmg) {
  hp -= dmg;
}

will instruct gml-tools to create (or update) a "private" script on compile. The scripts would be stored in scripts/lambdas/obj_name_here/function_name_here, or alternatively, could all be stored in a view not connected to the visible resource tree.

Additionally, all generated functions could have:
if (object_index != <lambda object owner here>) return;
at the top of their code.

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.