Giter VIP home page Giter VIP logo

vscode-mtalua's Introduction

vscode-mta-sa-lua-logo

MTA:SA Lua

⚠️ Due to an issue with Microsoft / Visual Studio Marketplace I'm unable to upload new versions to it. See this comment ⚠️

MTA:SA Lua is a VS Code extension to add syntax highlighting, code completion and other useful functions for MTA San Andreas LUA to VS Code.

Table of contents

Preview Images

Code Completion

Code Completion shows what functions are available

CodeCompletion

Syntax Highlighting

Server only Function

Server only functions will be highlighted in orange

Server Function

Client only Function

Client only functions will be highlighted in red

Server Function

Shared Function

Shared functions will be highlighted in blue

Shared Function

Generate files Manage resources

Easy way to generate meta.xml and script files

Generate Files

Generated Meta

Reference Link Provider

Easy way to access documentation on the MTA Wiki

Document Link

VSDark

Server

Server Syntax Highlighting

Client

Client Syntax Highlighting

Monokai (Unsupported)

Monokai

Configuration Options

mtalua-http.enabled

Enable the WebAdmin Http Functionality for restarting/starting/stopping resources

mtalua-http.enable_restart_on_save

Enable automagically restarting resources when saving

mtalua-http.enable_search_hinting

Enable search hinting when restarting resources (Requires http whitelisting this ip)

mtalua-http.uri

URL to the MTA Http Server

mtalua-http.username

Authentication username for the MTA Http Server required for restarting/starting/stopping resources

mtalua-http.password

Authentication password for the MTA Http Server restarting/starting/stopping resources

mtalua-generate.author

Allows you to set a custom author when generating new resources (meta.xml -> info -> author)

mtalua-generate.watermarking

Enable or disable watermarking of meta files (will place a comment with a notice that the meta was generated by this extension)

mtalua-generate.meta_default_version

Default version when generating new resources (meta.xml -> info -> version)

mtalua-generate.meta_default_type

Default type of new resources (script, gamemode, map, misc)

mtalua-generate.shared_prefix

Custom suffix/prefix for shared files (Default is g_ prefix) This will treat files named g_test or test_g as shared files

mtalua-generate.shared_extension

Custom extension for shared files (Default is lua) This will treat files named test.glua as shared files

mtalua-generate.shared_prefix_type

If the shared is a prefix (true) or a suffix (false) (Prefix g_test Suffix test_g)

mtalua-generate.client_prefix

Custom suffix/prefix for client files (Default is c_ prefix) This will treat files named c_test or test_c as client files

mtalua-generate.client_extension

Custom extension for client files (Default is lua) This will treat files named test.clua as client files

mtalua-generate.client_prefix_type

If the client is a prefix (true) or a suffix (false) (Prefix c_test Suffix test_c)

mtalua-generate.server_prefix

Custom suffix/prefix for server files (Default is s_ prefix) This will treat files named s_test or test_s as server files

mtalua-generate.server_extension

Custom extension for server files (Default is lua) This will treat files named test.slua as server files

mtalua-generate.server_prefix_type

If the server is a prefix (true) or a suffix (false) (Prefix s_test Suffix test_s)

mtalua-generate.activate_client_file_generation

When activated generates a client file when using generate new resource

mtalua-generate.default_client_content

Allows you to set custom content that should be placed in the newly generated client file

mtalua-generate.activate_server_file_generation

When activated generates a server file when using generate new resource

mtalua-generate.default_server_content

Allows you to set custom content that should be placed in the newly generated server file

mtalua-generate.activate_shared_file_generation

When activated generates a shared file when using generate new resource

mtalua-generate.default_shared_content

Allows you to set custom content that should be placed in the newly generated shared file

mtalua-generate.modify_meta

When adding new client/server-side files should the meta.xml automagically be modified?

mtalua-generate.filesrc_extensions

Extensions which are declated as file

mtalua-sense.activate_signature_help_parentheses

Allows you to disable the signature help when using (

mtalua-sense.activate_signature_help

Allows you to disable the signature help completely

mtalua-sense.show_relevant_only

Only show relevant functions (A serverside script is open, only serverside & shared functions will show)

mtalua-sense.show_reference_links (v2.3.5 and up)

Make functions clickable which redirect directly to the MTA Wiki

Changelog

(2.4.0 (10. Nov 2020)

  • Updated packages
  • Implemented new MTA Functions
  • Removed old MTA Functions

v2.3.6 (19. Jan 2019)

  • Bugfix for dependency 'request'

v2.3.5 (13. Jan 2019)

  • Added ability to make document full of links to the MTA Wiki
  • More internal seperation of different types of functions (peds, vehicles, engine)
  • Bugfixes for functions

v2.3.2 (13. Jan 2019)

  • Added ability to only show relevant functions (Serverside only functions will only display in server lua files)
  • Removed duplicated functions
  • Scriptside will now show in completion items

v2.3.1 (11. Jan 2019)

  • Added 1.5.6 functions and deprecations
  • Search hinting for new resource manager
  • Added verification if resource exists

v2.3.0 (9. Jan 2019)

  • Added resource manager to start/stop/restart resources
  • Fixed existing files in generate classes will break extension
  • Fixed some missing information in some functions

v2.2.5 (8. Jan 2019)

  • Added more settings
  • Added the ability to modify existing meta files
  • Added the ability to customize file extensions, file prefix/suffixes
  • Added the ability to turn off watermarking
  • Fixed generating client files
  • Fixed extension upload

v2.2.0 (7. Jan 2019)

  • Added the ability to create meta/client/server files on the fly

References

  • Thanks to 50p for the sublime text syntax highlighter. Which inspired me to create the VSCode extension.

vscode-mtalua's People

Contributors

dependabot[bot] avatar loki214 avatar subtixx avatar vadya963 avatar

Stargazers

 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  avatar

vscode-mtalua's Issues

Autocomplete custom functions

Hi!

it's possible to detect and autocomplete custom functions using intellisense? Now i'm maintaining using snippets.

image

And i can't use Lua language support because i lose the autocomplete for MTA functions.

image

Thank you!

Show appropriate functions

Only show appropriate functions for the file currently opened.

This means showing only clientside and shared functions when in a clientside file. And only serverside and shared when in serverside file

color theme

hello, i'm new in the github and idk how the issues tab work, but i'm having trouble with the DarkMTA theme, when i choose it, the VSCode Give me this Error

"Unable to load file:///c%3A/Users/mlice/.vscode/extensions/subtixx.mtasa-lua-2.4.0/themes/Monokai-MTA-Edit.tmTheme: Problems loading tmTheme file file:///c%3A/Users/mlice/.vscode/extensions/subtixx.mtasa-lua-2.4.0/themes/Monokai-MTA-Edit.tmTheme: Unable to read file 'c:\Users\mlice.vscode\extensions\subtixx.mtasa-lua-2.4.0\themes\Monokai-MTA-Edit.tmTheme' (EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, open 'c:\Users\mlice.vscode\extensions\subtixx.mtasa-lua-2.4.0\themes\Monokai-MTA-Edit.tmTheme')
"

and it's strange cuz it was working fine weeks before, but yesterday i opened the lua file i was editing and it was on this weird color, and not with the blue color that i love ;-;.

print:

image

i tried everything and i can't fix it pls help ;-;

Add OOP Methods

Object Orientated Programming was introduced in MTA:SA 1.4

Missing definitions

Hey @Subtixx, I used to use MTALua on Sublime some time ago, I'm really happy to see it on VSCode as well. I've noticed there are some missing definitions you have documented in the defs files. Would you want some help with those?

events not work

Issue Type: Feature Request

fix it and thx for developement team

Extension version: 2.3.6
VS Code version: Code 1.37.0 (036a6b1d3ac84e5ca96a17a44e63a87971f8fcc8, 2019-08-08T02:33:50.993Z)
OS version: Windows_NT x64 10.0.18362

Parsing of custom functions

Hi,
Recently I switched from npp to vscode. I often use feature suggestions when i`m writing scripts, that's why I installed your extension. Unfortunately, after the install, the suggestions for words that are already in the file disappear.

image

image

After switching from "MTA Lua" to "Lua" the other suggestions keep coming back, but there's no MTA function.

image

I'd like to add that I've "Suggest: Show Words" set to true.
image
Is it possible to combine these two functionalities?

Completion for Events

Make event completions appear when in a function that supports it.

Example:

addEventHandler("

Extend to Meta files

Extend Syntax Highlighting / Code Completion / Hover Provider for Meta.xml files

Extension issue

  • Issue Type: Bug
  • Extension Name: mtasa-lua
  • Extension Version: 2.3.6
  • OS Version: Windows_NT x64 10.0.19042
  • VS Code version: 1.57.1

⚠️ We have written the needed data into your clipboard. Please paste! ⚠️

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.