Skip to content

Commit

Permalink
0.0.3 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLetslook committed Sep 10, 2017
1 parent f207f80 commit 0df64ca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
20 changes: 3 additions & 17 deletions snippets/lua.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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} )",
Expand Down Expand Up @@ -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}] )",
Expand Down Expand Up @@ -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"
},
Expand Down

0 comments on commit 0df64ca

Please sign in to comment.