Skip to content

Commit e217fde

Browse files
authored
V3.11.0 (#205)
* nextapiview work 12.14 * preview flag+langStart+oa tree clean 2 * post+put buttons on view item * ready for release
1 parent 7a6e06b commit e217fde

17 files changed

+732
-235
lines changed

.vscode/settings.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@
2323
"titleBar.activeForeground": "#e7e7e7",
2424
"titleBar.inactiveBackground": "#2e010a99",
2525
"titleBar.inactiveForeground": "#e7e7e799",
26-
"editorGroup.border": "#600215",
27-
"panel.border": "#600215",
2826
"sash.hoverBorder": "#600215",
29-
"sideBar.border": "#600215",
3027
"statusBarItem.remoteBackground": "#2e010a",
31-
"statusBarItem.remoteForeground": "#e7e7e7"
28+
"statusBarItem.remoteForeground": "#e7e7e7",
29+
"commandCenter.border": "#e7e7e799"
3230
},
3331
"peacock.remoteColor": "#2e010a",
3432
"peacock.color": "#2e010a",

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,23 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
1111

1212
---
1313

14+
## [3.11.0] - (03-22-2022)
15+
16+
- Setup preview features flag
17+
- moved openapi/next work to preview
18+
- start basic language for tmos/tcl configs
19+
- "f5-tcl"
20+
- heavily influenced by vscode-irule/vscode-iapp
21+
- currently provides easy commenting, bracket closing and line folding
22+
- improved openapi/next browser view
23+
- setup filter post/put switch
24+
- moved post/put options to inline buttons
25+
- tweak telemetry
26+
- Added Config Explorer Report
27+
- Includes XC diagnostics output when xc diagnostics is enabled
28+
29+
---
30+
1431
## [3.10.0] - (12-8-2022)
1532

1633
- Next api schema validation work initial

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ The best path is to install Visual Studio Code from: <https://code.visualstudio.
3333

3434
### VSCode Marketplace
3535

36-
- https://marketplace.visualstudio.com/items?itemName=F5DevCentral.vscode-f5
36+
- <https://marketplace.visualstudio.com/items?itemName=F5DevCentral.vscode-f5>
3737

3838
### Open Source Marketplace
3939

40-
- https://open-vsx.org/extension/F5DevCentral/vscode-f5
40+
- <https://open-vsx.org/extension/F5DevCentral/vscode-f5>
4141

4242
Then install the extension following the steps below:
4343

44-
Select the extensions view
44+
Select the extensions view
4545

4646
<img src="./images/vscode_extensions_icon.PNG" alt="drawing" width="5%"/>
4747

@@ -86,6 +86,7 @@ Right-click on the tenant in the AS3 view on the left, then select `Delete Tenan
8686
## Known Issues
8787

8888
HTTP/422 responses - Can happen for a handful of reasons:
89+
8990
- Getting DO declaration when device has settings DO can configure but device was not deployed with DO (it can't manage the settings that are already there)
9091
- Improperly formatted/wrong declaration
9192
- Sometimes this is from the '$schema' reference in the declaration
@@ -152,7 +153,7 @@ If you still need to install from vsix, they can be downloaded under the 'releas
152153

153154
Different ways to install vsix:
154155

155-
- https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix
156+
- <https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix>
156157
- <https://github.com/eamodio/vscode-gitlens/wiki/Installing-Prereleases-(vsix>)
157158

158159

diagRules/tmosXcRules.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@
113113
},
114114
{
115115
"code": "2671",
116-
"severity": "Hint",
117-
"title": "",
118-
"message": "",
119-
"regex": ""
116+
"severity": "Information",
117+
"title": "Default Redirect iRule Detected",
118+
"message": "The default http->https redirect irule has been detected.",
119+
"regex": "\/Common\/_sys_https_redirect"
120120
},
121121
{
122122
"code": "9929",

language-configuration.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"comments": {
3+
"lineComment": "#",
4+
"blockComment": ["/*", "*/"]
5+
},
6+
"brackets": [
7+
["{", "}"],
8+
["[", "]"],
9+
["(", ")"]
10+
],
11+
"autoClosingPairs": [
12+
{ "open": "{", "close": "}" },
13+
{ "open": "[", "close": "]" },
14+
{ "open": "(", "close": ")" },
15+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
16+
{ "open": "\"", "close": "\"", "notIn": ["string"] },
17+
{ "open": "`", "close": "`", "notIn": ["string", "comment"] },
18+
{ "open": "/**", "close": " */", "notIn": ["string"] }
19+
],
20+
"autoCloseBefore": ";:.,=}])>` \n\t",
21+
"surroundingPairs": [
22+
["{", "}"],
23+
["[", "]"],
24+
["(", ")"],
25+
["'", "'"],
26+
["\"", "\""],
27+
["`", "`"]
28+
],
29+
"folding": {
30+
"markers": {
31+
"start": "^\\s*//\\s*#?region\\b",
32+
"end": "^\\s*//\\s*#?endregion\\b"
33+
}
34+
},
35+
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)",
36+
"indentationRules": {
37+
"increaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$",
38+
"decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$"
39+
}
40+
}

package-lock.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 65 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
"displayName": "The F5 Extension",
44
"description": "Supercharge your F5 automation development",
55
"publisher": "F5DevCentral",
6-
"version": "3.10.0",
6+
"version": "3.11.0",
77
"keywords": [
88
"F5",
99
"F5Networks",
1010
"AS3",
1111
"FAST",
12+
"NEXT",
1213
"DO",
1314
"TS",
1415
"TCL",
@@ -19,7 +20,8 @@
1920
"Snippets"
2021
],
2122
"engines": {
22-
"vscode": "^1.63.0"
23+
"vscode": "^1.63.0",
24+
"node": "^16"
2325
},
2426
"bugs": {
2527
"url": "https://github.com/f5devcentral/vscode-f5/issues"
@@ -109,6 +111,23 @@
109111
"path": "./snippets/fastYamlSnippets.json"
110112
}
111113
],
114+
"languages": [{
115+
"id": "f5-tcl",
116+
"extensions": [
117+
".conf",
118+
".tmos",
119+
".f5"
120+
],
121+
"aliases": [ "f5-tcl", "tmos", "f5", "tcl", "f5-tmos"],
122+
"configuration": "./language-configuration.json"
123+
}],
124+
"grammars": [
125+
{
126+
"language": "f5-tcl",
127+
"scopeName": "source.tcl",
128+
"path": "./tcl.tmGrammars.json"
129+
}
130+
],
112131
"yamlValidation": [
113132
{
114133
"fileMatch": "*.fast.yml",
@@ -178,7 +197,8 @@
178197
},
179198
{
180199
"id": "nxtApiView",
181-
"name": "NEXT API"
200+
"name": "NEXT API",
201+
"when": "f5.preview"
182202
},
183203
{
184204
"id": "fastView",
@@ -356,6 +376,12 @@
356376
"scope": "resource",
357377
"description": "Prevent new editor tab from taking focus when opened or updated\n So, by default(disabled), each new editor that is opened and/or updated with also take focus"
358378
},
379+
"f5.preview": {
380+
"type": "boolean",
381+
"default": false,
382+
"scope": "resource",
383+
"description": "Enable Preview features"
384+
},
359385
"f5.logLevel": {
360386
"type": "string",
361387
"enum": [
@@ -446,6 +472,11 @@
446472
"category": "F5",
447473
"icon": "$(run)"
448474
},
475+
{
476+
"command": "f5.cfgExplore",
477+
"title": "Explore TMOS Config",
478+
"category": "F5"
479+
},
449480
{
450481
"command": "f5.cfgExploreOnConnect",
451482
"title": "Explore Config",
@@ -461,6 +492,12 @@
461492
"title": "Show Apps",
462493
"category": "F5"
463494
},
495+
{
496+
"command": "f5.cfgExplore-report",
497+
"title": "Report",
498+
"category": "F5",
499+
"icon": "$(output)"
500+
},
464501
{
465502
"command": "f5.addHost",
466503
"title": "Add Host",
@@ -494,11 +531,6 @@
494531
"title": "Make HTTP Request",
495532
"category": "F5"
496533
},
497-
{
498-
"command": "f5.cfgExplore",
499-
"title": "Explore TMOS Config",
500-
"category": "F5"
501-
},
502534
{
503535
"command": "f5-tcl.mergeTCL",
504536
"title": "Merge TCL/TMOS",
@@ -826,6 +858,16 @@
826858
"title": "TMOS -> XC diagnostics",
827859
"category": "F5"
828860
},
861+
{
862+
"command": "f5.oaiPost",
863+
"title": "POST",
864+
"category": "F5"
865+
},
866+
{
867+
"command": "f5.oaiPut",
868+
"title": "PUT",
869+
"category": "F5"
870+
},
829871
{
830872
"command": "f5.xc-diagRulesOpen",
831873
"title": "TMOS -> XC diagnostics Open Rules",
@@ -1292,6 +1334,11 @@
12921334
"command": "f5.cfgExplore-show",
12931335
"when": "view == cfgTree && viewItem == cfgAppItem"
12941336
},
1337+
{
1338+
"command": "f5.cfgExplore-report",
1339+
"when": "view == cfgTree && viewItem == cfgHeader",
1340+
"group": "inline"
1341+
},
12951342
{
12961343
"command": "f5-tcl.deleteRule",
12971344
"when": "view == as3Tasks && viewItem == rule"
@@ -1324,6 +1371,16 @@
13241371
"command": "f5-fast.renderHtmlPreview",
13251372
"when": "view == fastView && viewItem == fastTemplate"
13261373
},
1374+
{
1375+
"command": "f5.oaiPost",
1376+
"group": "inline",
1377+
"when": "view == nxtApiView && viewItem =~ /^nextApiTreeItemPost(Put)?/"
1378+
},
1379+
{
1380+
"command": "f5.oaiPut",
1381+
"group": "inline",
1382+
"when": "view == nxtApiView && viewItem =~ /^nextApiTreeItem(Post)?Put/"
1383+
},
13271384
{
13281385
"command": "f5.xc-diagRulesOpen",
13291386
"group": "inline",

0 commit comments

Comments
 (0)