Skip to content

Commit 21d16a4

Browse files
committed
Added sublime completions
1 parent dd6cdf9 commit 21d16a4

1 file changed

Lines changed: 45 additions & 12 deletions

File tree

completions/ColdBox.sublime-completions

Lines changed: 45 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"scope": "meta.name.interpolated.hash - string, source.cfscript - source.sql - text.html.cfm - string - meta - comment, source.cfscript.embedded.cfml - string, source.sql, text",
33
"completions":
44
[
5-
// Functions for: coldbox.system.Interceptor
5+
// Functions for: coldbox.Interceptor
66
{ "trigger": "appendToBuffer\tfn. (ColdBox Interceptor)", "contents": "appendToBuffer( str=${1:any} )" },
77
{ "trigger": "clearBuffer\tfn. (ColdBox Interceptor)", "contents": "clearBuffer()" },
88
{ "trigger": "getBufferObject\tfn. (ColdBox Interceptor)", "contents": "getBufferObject()" },
@@ -14,9 +14,9 @@
1414
{ "trigger": "setProperties\tfn. (ColdBox Interceptor)", "contents": "setProperties( properties=${1:{}} )" },
1515
{ "trigger": "setProperty\tfn. (ColdBox Interceptor)", "contents": "setProperty( property=${1:any}, value=${2:any} )" },
1616
{ "trigger": "unregister\tfn. (ColdBox Interceptor)", "contents": "unregister( state=${1:any} )" },
17-
// END Functions for: coldbox.system.Interceptor
17+
// END Functions for: coldbox.Interceptor
1818

19-
// Functions for: coldbox.system.Plugin
19+
// Functions for: coldbox.Plugin
2020
{ "trigger": "getpluginAuthor\tfn. (ColdBox Plugin)", "contents": "getpluginAuthor()" },
2121
{ "trigger": "getpluginAuthorURL\tfn. (ColdBox Plugin)", "contents": "getpluginAuthorURL()" },
2222
{ "trigger": "getPluginDescription\tfn. (ColdBox Plugin)", "contents": "getPluginDescription()" },
@@ -30,12 +30,45 @@
3030
{ "trigger": "setPluginDescription\tfn. (ColdBox Plugin)", "contents": "setPluginDescription( pluginDescription=${1:any} )" },
3131
{ "trigger": "setPluginName\tfn. (ColdBox Plugin)", "contents": "setPluginName( pluginName=${1:any} )" },
3232
{ "trigger": "setPluginVersion\tfn. (ColdBox Plugin)", "contents": "setPluginVersion( pluginVersion=${1:any} )" },
33-
// END Functions for: coldbox.system.Plugin
33+
// END Functions for: coldbox.Plugin
3434

35-
// Functions for: coldbox.system.EventHandler
35+
// Functions for: coldbox.EventHandler
3636
{ "trigger": "_actionExists\tfn. (ColdBox EventHandler)", "contents": "_actionExists( action=${1:any} )" },
3737
{ "trigger": "_privateInvoker\tfn. (ColdBox EventHandler)", "contents": "_privateInvoker( method=${1:any}, argCollection=${2:any} )" },
38-
// END Functions for: coldbox.system.EventHandler
38+
// END Functions for: coldbox.EventHandler
39+
40+
// Functions for: coldbox.testing.BaseSpec
41+
{ "trigger": "addAssertions\tfn. (ColdBox BaseSpec)", "contents": "addAssertions( assertions=${1:any} )" },
42+
{ "trigger": "addMatchers\tfn. (ColdBox BaseSpec)", "contents": "addMatchers( matchers=${1:any} )" },
43+
{ "trigger": "afterEach\tfn. (ColdBox BaseSpec)", "contents": "afterEach( body=${1:any} )" },
44+
{ "trigger": "assert\tfn. (ColdBox BaseSpec)", "contents": "assert( expression=${1:any}, message=${2:any} )" },
45+
{ "trigger": "beforeEach\tfn. (ColdBox BaseSpec)", "contents": "beforeEach( body=${1:any} )" },
46+
{ "trigger": "clearDebugBuffer\tfn. (ColdBox BaseSpec)", "contents": "clearDebugBuffer()" },
47+
{ "trigger": "closureStub\tfn. (ColdBox BaseSpec)", "contents": "closureStub()" },
48+
{ "trigger": "console\tfn. (ColdBox BaseSpec)", "contents": "console( var=${1:any}, top=${2:any} )" },
49+
{ "trigger": "createEmptyMock\tfn. (ColdBox BaseSpec)", "contents": "createEmptyMock( className=\"${1:}\", object=${2:any}, callLogging=${3:true,false} )" },
50+
{ "trigger": "createMock\tfn. (ColdBox BaseSpec)", "contents": "createMock( className=\"${1:}\", object=${2:any}, clearMethods=${3:true,false} )" },
51+
{ "trigger": "createStub\tfn. (ColdBox BaseSpec)", "contents": "createStub( callLogging=${1:true,false}, extends=\"${2:}\", implements=\"${3:}\" )" },
52+
{ "trigger": "debug\tfn. (ColdBox BaseSpec)", "contents": "debug( var=${1:any}, deepCopy=${2:true,false} )" },
53+
{ "trigger": "describe\tfn. (ColdBox BaseSpec)", "contents": "describe( title=\"${1:}\", body=${2:any}, labels=${3:any}, asyncAll=${4:true,false}, skip=${5:any} )" },
54+
{ "trigger": "expect\tfn. (ColdBox BaseSpec)", "contents": "expect( actual=${1:any} )" },
55+
{ "trigger": "expectedException\tfn. (ColdBox BaseSpec)", "contents": "expectedException( type=${1:any}, regex=${2:any} )" },
56+
{ "trigger": "fail\tfn. (ColdBox BaseSpec)", "contents": "fail( message=${1:any} )" },
57+
{ "trigger": "getDebugBuffer\tfn. (ColdBox BaseSpec)", "contents": "getDebugBuffer()" },
58+
{ "trigger": "getMockBox\tfn. (ColdBox BaseSpec)", "contents": "getMockBox( generationPath=\"${1:}\" )" },
59+
{ "trigger": "isExpectedException\tfn. (ColdBox BaseSpec)", "contents": "isExpectedException( exception=${1:any}, specName=${2:any}, runner=${3:any} )" },
60+
{ "trigger": "it\tfn. (ColdBox BaseSpec)", "contents": "it( title=\"${1:}\", body=${2:any}, labels=${3:any}, skip=${4:any} )" },
61+
{ "trigger": "makePublic\tfn. (ColdBox BaseSpec)", "contents": "makePublic( target=${1:any}, method=\"${2:}\", newName=\"${3:}\" )" },
62+
{ "trigger": "prepareMock\tfn. (ColdBox BaseSpec)", "contents": "prepareMock( object=${1:any}, callLogging=${2:true,false} )" },
63+
{ "trigger": "print\tfn. (ColdBox BaseSpec)", "contents": "print( message=${1:any} )" },
64+
{ "trigger": "println\tfn. (ColdBox BaseSpec)", "contents": "println( message=${1:any} )" },
65+
{ "trigger": "querySim\tfn. (ColdBox BaseSpec)", "contents": "querySim( queryData=${1:any} )" },
66+
{ "trigger": "runRemote\tfn. (ColdBox BaseSpec)", "contents": "runRemote( testSpecs=\"${1:}\", testSuites=\"${2:}\", debug=${3:true,false}, reporter=\"${4:}\" )" },
67+
{ "trigger": "runSpec\tfn. (ColdBox BaseSpec)", "contents": "runSpec( spec=${1:any}, suite=${2:any}, testResults=${3:any}, suiteStats=${4:any}, runner=${5:any} )" },
68+
{ "trigger": "runTest\tfn. (ColdBox BaseSpec)", "contents": "runTest( spec=${1:any}, testResults=${2:any}, suiteStats=${3:any}, runner=${4:any} )" },
69+
{ "trigger": "xdescribe\tfn. (ColdBox BaseSpec)", "contents": "xdescribe( title=\"${1:}\", body=${2:any}, labels=${3:any}, asyncAll=${4:true,false} )" },
70+
{ "trigger": "xit\tfn. (ColdBox BaseSpec)", "contents": "xit( title=\"${1:}\", body=${2:any}, labels=${3:any} )" },
71+
// END Functions for: coldbox.testing.BaseSpec
3972

4073
// Functions for: coldbox.system.FrameworkSupertype
4174
{ "trigger": "$abort\tfn. (ColdBox FrameworkSuperType)", "contents": "$abort()" },
@@ -60,7 +93,7 @@
6093
{ "trigger": "getMyPlugin\tfn. (ColdBox FrameworkSuperType)", "contents": "getMyPlugin( plugin=${1:any}, newInstance=${2:any}, module=${3:any}, init=${4:any} )" },
6194
{ "trigger": "getNewMail\tfn. (ColdBox FrameworkSuperType)", "contents": "getNewMail()" },
6295
{ "trigger": "getPlugin\tfn. (ColdBox FrameworkSuperType)", "contents": "getPlugin( plugin=${1:any}, customPlugin=${2:any}, newInstance=${3:any}, module=${4:any}, init=${5:any} )" },
63-
{ "trigger": "getResource\tfn. (ColdBox FrameworkSuperType)", "contents": "getResource( resource=${1:any}, default=${2:any}, locale=${3:any} )" },
96+
{ "trigger": "getResource\tfn. (ColdBox FrameworkSuperType)", "contents": "getResource( resource=${1:any}, default=${2:any}, locale=${3:any}, values=${4:any}, bundle=${5:any} )" },
6497
{ "trigger": "getSetting\tfn. (ColdBox FrameworkSuperType)", "contents": "getSetting( name=${1:any}, FWSetting=${2:true,false}, defaultValue=${3:any} )" },
6598
{ "trigger": "getSettingsBean\tfn. (ColdBox FrameworkSuperType)", "contents": "getSettingsBean( FWSetting=${1:true,false} )" },
6699
{ "trigger": "getSettingStructure\tfn. (ColdBox FrameworkSuperType)", "contents": "getSettingStructure( FWSetting=${1:true,false}, DeepCopyFlag=${2:true,false} )" },
@@ -157,17 +190,17 @@
157190
{ "trigger": "binder.getScopeRegistration\tfn. (ColdBox binder)", "contents": "getScopeRegistration()" },
158191
{ "trigger": "binder.getStopRecursions\tfn. (ColdBox binder)", "contents": "getStopRecursions()" },
159192
{ "trigger": "binder.inCacheBox\tfn. (ColdBox binder)", "contents": "inCacheBox( key=${1:any}, timeout=${2:any}, lastAccessTimeout=${3:any}, provider=${4:any} )" },
160-
{ "trigger": "binder.initArg\tfn. (ColdBox binder)", "contents": "initArg( name=${1:any}, ref=${2:any}, dsl=${3:any}, value=${4:any}, javaCast=${5:any} )" },
193+
{ "trigger": "binder.initArg\tfn. (ColdBox binder)", "contents": "initArg( name=${1:any}, ref=${2:any}, dsl=${3:any}, value=${4:any}, javaCast=${5:any}, required=${6:any} )" },
161194
{ "trigger": "binder.initWith\tfn. (ColdBox binder)", "contents": "initWith()" },
162195
{ "trigger": "binder.into\tfn. (ColdBox binder)", "contents": "into( scope=${1:any} )" },
163196
{ "trigger": "binder.listener\tfn. (ColdBox binder)", "contents": "listener( class=${1:any}, properties=${2:any}, name=${3:any} )" },
164197
{ "trigger": "binder.loadDataDSL\tfn. (ColdBox binder)", "contents": "loadDataDSL( rawDSL=${1:any} )" },
165198
{ "trigger": "binder.logBoxConfig\tfn. (ColdBox binder)", "contents": "logBoxConfig( config=${1:any} )" },
166199
{ "trigger": "binder.map\tfn. (ColdBox binder)", "contents": "map( alias=${1:any} )" },
167200
{ "trigger": "binder.mapAspect\tfn. (ColdBox binder)", "contents": "mapAspect( aspect=${1:any}, autoBinding=${2:true,false} )" },
168-
{ "trigger": "binder.mapDirectory\tfn. (ColdBox binder)", "contents": "mapDirectory( packagePath=${1:any}, include=${2:any}, exclude=${3:any}, influence=${4:any}, filter=${5:any} )" },
201+
{ "trigger": "binder.mapDirectory\tfn. (ColdBox binder)", "contents": "mapDirectory( packagePath=${1:any}, include=${2:any}, exclude=${3:any}, influence=${4:any}, filter=${5:any}, namespace=${6:any}, prepend=${7:any} )" },
169202
{ "trigger": "binder.mapDSL\tfn. (ColdBox binder)", "contents": "mapDSL( namespace=${1:any}, path=${2:any} )" },
170-
{ "trigger": "binder.mapPath\tfn. (ColdBox binder)", "contents": "mapPath( path=${1:any} )" },
203+
{ "trigger": "binder.mapPath\tfn. (ColdBox binder)", "contents": "mapPath( path=${1:any}, namespace=${2:any}, prepend=${3:any} )" },
171204
{ "trigger": "binder.mappingExists\tfn. (ColdBox binder)", "contents": "mappingExists( name=${1:any} )" },
172205
{ "trigger": "binder.mapScope\tfn. (ColdBox binder)", "contents": "mapScope( annotation=${1:any}, path=${2:any} )" },
173206
{ "trigger": "binder.match\tfn. (ColdBox binder)", "contents": "match()" },
@@ -180,7 +213,7 @@
180213
{ "trigger": "binder.parent\tfn. (ColdBox binder)", "contents": "parent( alias=${1:any} )" },
181214
{ "trigger": "binder.parentInjector\tfn. (ColdBox binder)", "contents": "parentInjector( injector=${1:any} )" },
182215
{ "trigger": "binder.processMappings\tfn. (ColdBox binder)", "contents": "processMappings()" },
183-
{ "trigger": "binder.property\tfn. (ColdBox binder)", "contents": "property( name=${1:any}, ref=${2:any}, dsl=${3:any}, value=${4:any}, javaCast=${5:any}, scope=${6:any} )" },
216+
{ "trigger": "binder.property\tfn. (ColdBox binder)", "contents": "property( name=${1:any}, ref=${2:any}, dsl=${3:any}, value=${4:any}, javaCast=${5:any}, scope=${6:any}, required=${7:any} )" },
184217
{ "trigger": "binder.propertyExists\tfn. (ColdBox binder)", "contents": "propertyExists( name=${1:any} )" },
185218
{ "trigger": "binder.providerMethod\tfn. (ColdBox binder)", "contents": "providerMethod( method=${1:any}, mapping=${2:any} )" },
186219
{ "trigger": "binder.removeScanLocations\tfn. (ColdBox binder)", "contents": "removeScanLocations( locations=${1:any} )" },
@@ -319,7 +352,7 @@
319352
{ "trigger": "event.paramValue\tfn. (ColdBox event)", "contents": "paramValue( name=${1:any}, value=${2:any}, private=${3:true,false} )" },
320353
{ "trigger": "event.removeEventCacheableEntry\tfn. (ColdBox event)", "contents": "removeEventCacheableEntry()" },
321354
{ "trigger": "event.removeValue\tfn. (ColdBox event)", "contents": "removeValue( name=\"${1:}\", private=${2:true,false} )" },
322-
{ "trigger": "event.renderData\tfn. (ColdBox event)", "contents": "renderData( type=\"${1:}\", data=${2:any}, contentType=\"${3:}\", encoding=\"${4:}\", statusCode=${5:numeric}, statusText=\"${6:}\", location=\"${7:}\", jsonCallback=\"${8:}\", jsonQueryFormat=\"${9:}\", jsonAsText=${10:true,false}, xmlColumnList=\"${11:}\", xmlUseCDATA=${12:true,false}, xmlListDelimiter=\"${13:}\", xmlRootName=\"${14:}\", pdfArgs=${15:{}}, formats=${16:any}, formatsView=${17:any} )" },
355+
{ "trigger": "event.renderData\tfn. (ColdBox event)", "contents": "renderData( type=\"${1:}\", data=${2:any}, contentType=\"${3:}\", encoding=\"${4:}\", statusCode=${5:numeric}, statusText=\"${6:}\", location=\"${7:}\", jsonCallback=\"${8:}\", jsonQueryFormat=\"${9:}\", jsonAsText=${10:true,false}, xmlColumnList=\"${11:}\", xmlUseCDATA=${12:true,false}, xmlListDelimiter=\"${13:}\", xmlRootName=\"${14:}\", pdfArgs=${15:{}}, formats=${16:any}, formatsView=${17:any}, isBinary=${18:true,false} )" },
323356
{ "trigger": "event.renderWithFormats\tfn. (ColdBox event)", "contents": "renderWithFormats()" },
324357
{ "trigger": "event.setDefaultLayout\tfn. (ColdBox event)", "contents": "setDefaultLayout( DefaultLayout=\"${1:}\" )" },
325358
{ "trigger": "event.setDefaultView\tfn. (ColdBox event)", "contents": "setDefaultView( DefaultView=\"${1:}\" )" },

0 commit comments

Comments
 (0)