From 0df64cad91c091a21ab06ae0597ac931dcee0e53 Mon Sep 17 00:00:00 2001 From: TheLetslook Date: Sun, 10 Sep 2017 06:52:56 +0300 Subject: [PATCH] 0.0.3 Update --- README.md | 4 ++++ package.json | 2 +- snippets/lua.json | 20 +++----------------- 3 files changed, 8 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 72d9477..a784b46 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,10 @@ ext install mtasasnippets ## Release Notes +### 0.0.3 + +Some fixes and additions from @Loki214 + ### 0.0.2 Added snippets to fill meta.xml diff --git a/package.json b/package.json index a2717e0..12732a4 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "mtasasnippets", "displayName": "MTA:SA Snippets", "description": "Lua snippets for MTA:SA", - "version": "0.0.2", + "version": "0.0.3", "publisher": "theletslook", "icon": "common/extension.png", "galleryBanner": { diff --git a/snippets/lua.json b/snippets/lua.json index b54f975..2dc0b51 100644 --- a/snippets/lua.json +++ b/snippets/lua.json @@ -1,8 +1,4 @@ { - // - // Main - // - "fori": { "prefix": "fori", "body": "for ${1:i},${2:v} in ipairs(${3:table_name}) do\n\t${0:print(i,v)}\nend", @@ -56,12 +52,7 @@ "body": "table.sort( ${1:tablename}${2:, sortfunction} )", "description": "table.sort", "scope": "source.lua" - } - - // - // Server-Side - // - + }, "aclCreate": { "prefix": "aclCreate", "body": "aclCreate( ${1:string aclName} )", @@ -4147,12 +4138,7 @@ "body": "xmlUnloadFile( ${1:xmlnode node} )", "description": "Server-side", "scope": "source.lua" - } - - // - // Client-Side - // - + }, "addCommandHandler": { "prefix": "addCommandHandler", "body": "addCommandHandler( ${1:string commandName}, ${2:function handlerFunction}, [${3:bool restricted = false}, ${4:bool caseSensitive = true}] )", @@ -7485,7 +7471,7 @@ }, "loadBrowserURL": { "prefix": "loadBrowserURL", - "body": "loadBrowserURL( ${1:browser webBrowser}, ${2:string url [}, ${3:string postData = ""}, ${4:bool urlEncoded = true} ] )", + "body": "loadBrowserURL( ${1:browser webBrowser}, ${2:string url [}, ${3:string postData = \"\"}, ${4:bool urlEncoded = true} ] )", "description": "Client-side", "scope": "source.lua" },