Giter Site home page Giter Site logo

manticoregamesinc / vscode-core Goto Github PK

View Code? Open in Web Editor NEW
13.0 6.0 2.0 2.91 MB

A Visual Studio Code extension that adds support for the Core Games Lua API to the Lua Language Server.

Home Page: https://docs.coregames.com/extensions/

License: MIT License

TypeScript 1.17% Lua 98.83%
core coregames lua extension vscode vscode-extension autocomplete api api-documentation visual-studio autocomplete-support lua-api marketplace games visual-studio-code visual-studio-extension

vscode-core's Introduction

Core Lua API for VS Code

A Visual Studio Code extension that adds support for the Core Games Lua API to the Lua Language Server.

Open in VSCode Build Status Marketplace Version

Logo

As of version 1.0.0, this extension uses Sumneko's Lua Language Server with auto-generated EmmyLua annotations. The file in this repo is actually generated by using the manticore branch of this fork.

The extension itself does not come with any options. If you want to alter its behavior you have to change it in the Lua Language Server extension that gets installed automatically.

If you have previously been using vscode-core together with the Lua Coder Assist extension, make sure to uninstall that for the best results.

Sumneko's Lua extension also comes with it's own "Diagnostics" feature, so if you have been using other extensions that use Luacheck and a .luacheckrc file, you might want to either disable those extensions or the "Diagnostics" feature in Sumneko's.

Known Issues

  • There is currently no support for Core API operators.

Installation

  • Go to the Visual Studio Code Marketplace and click the "Install" button, that's it!

Related Repositories

Contributing

This project welcomes contributions and suggestions.

Releases

The CI is generating a new release for every tag on this repository and pushes it to the VSC marketplace.

To generate a new release you:

  • Increase the version in package.json according to SemVer.
  • Run npm install && npm run build
  • Commit the changes with the new version number as the commit note.
  • Create a tag but don't push it yet with the same name as the version number.
  • Run npm run changelog, amend the changes to the last commit, remove the tag on the old commit, add the same tag on the new amended one.
  • Push the commit with tag.

Community Contributors

  • @agincel
  • @SargntSprinkles

License

Licensed under the MIT license.

vscode-core's People

Contributors

agincel avatar dependabot-preview[bot] avatar dependabot[bot] avatar robert-wallis avatar stanzillamanticore avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

filloax grabthar

vscode-core's Issues

Chat.sendMessageHook definition missing

Describe the bug
A clear and concise description of what the bug is.
The Chat.sendMessageHook:Connect gives an undefined error in the VSCode editor, while it is a valid Core API definition.

To Reproduce
Steps to reproduce the behavior:

N/A

Expected behavior
No error

Screenshots
If applicable, add screenshots to help explain your problem.
image

Versions:

  • VSCode Version: 1.59.1
  • OS Version: Windows 10 19043.1165

Additional context
Add any other context about the problem here.

Class member function overloads of VSCode auto-completion are not being handled correctly

Describe the bug
Class member function overloads of VSCode auto-completion are not being handled correctly.

For example

To Reproduce
Steps to reproduce the behavior:

  1. Create a script and try to autocomplete

At the moment the definition of the overloads is in here and looks like this:

--- Sets the override Camera object for the Player.
--- @overload fun(camera: Camera, lerpTime: number)
--- @param camera Camera
function PlayerInstance:SetOverrideCamera(camera) end

The problem lies in @overload fun(camera: Camera, lerpTime: number) it is expecting a reference to the class itself

The suggested fix in this instance is to prepend self with the type of the class object to the overload.

Like:
@overload fun(self: Player, camera: Camera, lerpTime: number)

This seems to fix it for me.

Expected behavior
Expect to see all overloads correctly

Screenshots
image

Versions:

  • VSCode Version: 1.68.1
  • OS Version: N/A

variable script type

Issue:

Wrong type for the variable "script".
Exemple intellisense won't show some props script.context
It is set to it's parent type CoreObject instead of Script

Fix:

--- @type Script
script = nil

Here:

--- @type CoreObject

Test performed:

In core you can type:
print(script.type, script:IsA("CoreObject"))
then it return:

Script true

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.