File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,6 +107,29 @@ stmt() {
107107 sfdx force:apex:execute -u " ${1} " -f /dev/stdin<<< " $apexCommand" # Execute the statement inside a system.debug(). execute expects a file, so use <<< trick to make it seem like a file
108108}
109109
110+
111+ # TODO doesn't do anything, was editing string thing below and might have to
112+ # build a dynamic soql query to do it
113+ dumpsinmytruck () {
114+ read -r -d ' ' VAR << EOM
115+ String ((Id)'${2} ').getSObjectType().getDescribe().getName()
116+ List<Map<String, String>> lstfieldname = new List<Map<String, String>>();
117+ Map <String, Schema.SObjectType> schemaMap = Schema.getGlobalDescribe();
118+ Map <String, Schema.SObjectField> fieldMap = schemaMap.get('Task').getDescribe().fields.getMap();
119+ for(Schema.SObjectField sfield : fieldMap.Values()) {
120+ schema.describefieldresult dfield = sfield.getDescribe();
121+ Map<String, String> field = new Map<String, String>();
122+ field.put(
123+ dfield.getName(),
124+ dfield.getType() + ' : ' + dfield.getLabel()
125+ );
126+ lstfieldname.add(field);
127+ }
128+ System.debug('lstfieldname');
129+ System.debug(lstfieldname);
130+ EOM
131+ }
132+
110133alias orgls=' open https://grhc.lightning.force.com/lightning/setup/DataManagementCreateTestInstance/home'
111134alias orgids=' open https://grhc.lightning.force.com/lightning/setup/DataManagementCreateTestInstance/home'
112135
Original file line number Diff line number Diff line change 4949 "command" : " extension.runFileSpecs" ,
5050 "when" : " editorTextFocus"
5151 },
52+ // Open keybindings.json file, since there's no default shortcut for it (LOL)
53+ {
54+ "key" : " cmd+k cmd+k" ,
55+ "command" : " workbench.action.openGlobalKeybindingsFile"
56+ },
5257 // Clear notifications
5358 {
5459 "key" : " cmd+k cmd+n" ,
55- "command" : " notifications.clearAll" ,
56- "when" : " editorTextFocus"
60+ "command" : " macros.clearOutputAndNotifications"
5761 },
5862 // Rerun last apex test class
5963 {
6064 "key" : " cmd+k cmd+x" ,
61- "command" : " macros.runLastApexTestClass" ,
62- "when" : " editorTextFocus"
65+ "command" : " macros.runLastApexTestClass"
6366 },
6467 // Rerun last apex test
6568 {
6669 "key" : " cmd+k cmd+t" ,
67- "command" : " macros.runLastApexTestMethod" ,
68- "when" : " editorTextFocus"
70+ "command" : " macros.runLastApexTestMethod"
6971 },
70- // Jump around in vim
72+ // Jump between change history
7173 {
7274 "key" : " cmd+]" ,
7375 "command" : " workbench.action.editor.nextChange" ,
Original file line number Diff line number Diff line change 3030 ],
3131 "description" : " Debug string"
3232 },
33- "Console Log String" : {
33+ "Debug Labeled String" : {
3434 "scope" : " apex,apex-anon" ,
3535 "prefix" : " d," ,
3636 "body" : [
37- " System.debug('➡➡➡ $1 ⬅⬅⬅');" ,
38- " System.debug(${1});"
37+ " System.debug('${1/'//g}: ' + String.valueOf(${1:}$0));"
3938 ],
40- "description" : " Console log string "
39+ "description" : " Debug Labeled String "
4140 }
4241}
You can’t perform that action at this time.
0 commit comments