Skip to content

Commit

Permalink
V3.11.0 (#205)
Browse files Browse the repository at this point in the history
* nextapiview work 12.14

* preview flag+langStart+oa tree clean 2

* post+put buttons on view item

* ready for release
  • Loading branch information
DumpySquare authored Mar 22, 2023
1 parent 7a6e06b commit e217fde
Show file tree
Hide file tree
Showing 17 changed files with 732 additions and 235 deletions.
6 changes: 2 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveBackground": "#2e010a99",
"titleBar.inactiveForeground": "#e7e7e799",
"editorGroup.border": "#600215",
"panel.border": "#600215",
"sash.hoverBorder": "#600215",
"sideBar.border": "#600215",
"statusBarItem.remoteBackground": "#2e010a",
"statusBarItem.remoteForeground": "#e7e7e7"
"statusBarItem.remoteForeground": "#e7e7e7",
"commandCenter.border": "#e7e7e799"
},
"peacock.remoteColor": "#2e010a",
"peacock.color": "#2e010a",
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,23 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how

---

## [3.11.0] - (03-22-2022)

- Setup preview features flag
- moved openapi/next work to preview
- start basic language for tmos/tcl configs
- "f5-tcl"
- heavily influenced by vscode-irule/vscode-iapp
- currently provides easy commenting, bracket closing and line folding
- improved openapi/next browser view
- setup filter post/put switch
- moved post/put options to inline buttons
- tweak telemetry
- Added Config Explorer Report
- Includes XC diagnostics output when xc diagnostics is enabled

---

## [3.10.0] - (12-8-2022)

- Next api schema validation work initial
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ The best path is to install Visual Studio Code from: <https://code.visualstudio.

### VSCode Marketplace

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

### Open Source Marketplace

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

Then install the extension following the steps below:

Select the extensions view
Select the extensions view

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

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

HTTP/422 responses - Can happen for a handful of reasons:

- 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)
- Improperly formatted/wrong declaration
- Sometimes this is from the '$schema' reference in the declaration
Expand Down Expand Up @@ -152,7 +153,7 @@ If you still need to install from vsix, they can be downloaded under the 'releas

Different ways to install vsix:

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


Expand Down
8 changes: 4 additions & 4 deletions diagRules/tmosXcRules.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@
},
{
"code": "2671",
"severity": "Hint",
"title": "",
"message": "",
"regex": ""
"severity": "Information",
"title": "Default Redirect iRule Detected",
"message": "The default http->https redirect irule has been detected.",
"regex": "\/Common\/_sys_https_redirect"
},
{
"code": "9929",
Expand Down
40 changes: 40 additions & 0 deletions language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"comments": {
"lineComment": "#",
"blockComment": ["/*", "*/"]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
{ "open": "{", "close": "}" },
{ "open": "[", "close": "]" },
{ "open": "(", "close": ")" },
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "`", "close": "`", "notIn": ["string", "comment"] },
{ "open": "/**", "close": " */", "notIn": ["string"] }
],
"autoCloseBefore": ";:.,=}])>` \n\t",
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["'", "'"],
["\"", "\""],
["`", "`"]
],
"folding": {
"markers": {
"start": "^\\s*//\\s*#?region\\b",
"end": "^\\s*//\\s*#?endregion\\b"
}
},
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)",
"indentationRules": {
"increaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$",
"decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$"
}
}
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

73 changes: 65 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
"displayName": "The F5 Extension",
"description": "Supercharge your F5 automation development",
"publisher": "F5DevCentral",
"version": "3.10.0",
"version": "3.11.0",
"keywords": [
"F5",
"F5Networks",
"AS3",
"FAST",
"NEXT",
"DO",
"TS",
"TCL",
Expand All @@ -19,7 +20,8 @@
"Snippets"
],
"engines": {
"vscode": "^1.63.0"
"vscode": "^1.63.0",
"node": "^16"
},
"bugs": {
"url": "https://github.com/f5devcentral/vscode-f5/issues"
Expand Down Expand Up @@ -109,6 +111,23 @@
"path": "./snippets/fastYamlSnippets.json"
}
],
"languages": [{
"id": "f5-tcl",
"extensions": [
".conf",
".tmos",
".f5"
],
"aliases": [ "f5-tcl", "tmos", "f5", "tcl", "f5-tmos"],
"configuration": "./language-configuration.json"
}],
"grammars": [
{
"language": "f5-tcl",
"scopeName": "source.tcl",
"path": "./tcl.tmGrammars.json"
}
],
"yamlValidation": [
{
"fileMatch": "*.fast.yml",
Expand Down Expand Up @@ -178,7 +197,8 @@
},
{
"id": "nxtApiView",
"name": "NEXT API"
"name": "NEXT API",
"when": "f5.preview"
},
{
"id": "fastView",
Expand Down Expand Up @@ -356,6 +376,12 @@
"scope": "resource",
"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"
},
"f5.preview": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "Enable Preview features"
},
"f5.logLevel": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -446,6 +472,11 @@
"category": "F5",
"icon": "$(run)"
},
{
"command": "f5.cfgExplore",
"title": "Explore TMOS Config",
"category": "F5"
},
{
"command": "f5.cfgExploreOnConnect",
"title": "Explore Config",
Expand All @@ -461,6 +492,12 @@
"title": "Show Apps",
"category": "F5"
},
{
"command": "f5.cfgExplore-report",
"title": "Report",
"category": "F5",
"icon": "$(output)"
},
{
"command": "f5.addHost",
"title": "Add Host",
Expand Down Expand Up @@ -494,11 +531,6 @@
"title": "Make HTTP Request",
"category": "F5"
},
{
"command": "f5.cfgExplore",
"title": "Explore TMOS Config",
"category": "F5"
},
{
"command": "f5-tcl.mergeTCL",
"title": "Merge TCL/TMOS",
Expand Down Expand Up @@ -826,6 +858,16 @@
"title": "TMOS -> XC diagnostics",
"category": "F5"
},
{
"command": "f5.oaiPost",
"title": "POST",
"category": "F5"
},
{
"command": "f5.oaiPut",
"title": "PUT",
"category": "F5"
},
{
"command": "f5.xc-diagRulesOpen",
"title": "TMOS -> XC diagnostics Open Rules",
Expand Down Expand Up @@ -1292,6 +1334,11 @@
"command": "f5.cfgExplore-show",
"when": "view == cfgTree && viewItem == cfgAppItem"
},
{
"command": "f5.cfgExplore-report",
"when": "view == cfgTree && viewItem == cfgHeader",
"group": "inline"
},
{
"command": "f5-tcl.deleteRule",
"when": "view == as3Tasks && viewItem == rule"
Expand Down Expand Up @@ -1324,6 +1371,16 @@
"command": "f5-fast.renderHtmlPreview",
"when": "view == fastView && viewItem == fastTemplate"
},
{
"command": "f5.oaiPost",
"group": "inline",
"when": "view == nxtApiView && viewItem =~ /^nextApiTreeItemPost(Put)?/"
},
{
"command": "f5.oaiPut",
"group": "inline",
"when": "view == nxtApiView && viewItem =~ /^nextApiTreeItem(Post)?Put/"
},
{
"command": "f5.xc-diagRulesOpen",
"group": "inline",
Expand Down
Loading

0 comments on commit e217fde

Please sign in to comment.