🚨 解决Qodana报错

This commit is contained in:
目棃
2024-09-06 09:24:36 +08:00
parent 6b4b1c0b25
commit 8acdebebf2
14 changed files with 699 additions and 829 deletions

View File

@@ -701,6 +701,7 @@
"identifier": "default",
"description": "Default permissions for the plugin.",
"permissions": [
"allow-get-all-webviews",
"allow-webview-position",
"allow-webview-size",
"allow-internal-toggle-devtools"
@@ -717,6 +718,11 @@
"description": "Enables the create_webview_window command without any pre-configured scope.",
"commands": { "allow": ["create_webview_window"], "deny": [] }
},
"allow-get-all-webviews": {
"identifier": "allow-get-all-webviews",
"description": "Enables the get_all_webviews command without any pre-configured scope.",
"commands": { "allow": ["get_all_webviews"], "deny": [] }
},
"allow-internal-toggle-devtools": {
"identifier": "allow-internal-toggle-devtools",
"description": "Enables the internal_toggle_devtools command without any pre-configured scope.",
@@ -777,6 +783,11 @@
"description": "Denies the create_webview_window command without any pre-configured scope.",
"commands": { "allow": [], "deny": ["create_webview_window"] }
},
"deny-get-all-webviews": {
"identifier": "deny-get-all-webviews",
"description": "Denies the get_all_webviews command without any pre-configured scope.",
"commands": { "allow": [], "deny": ["get_all_webviews"] }
},
"deny-internal-toggle-devtools": {
"identifier": "deny-internal-toggle-devtools",
"description": "Denies the internal_toggle_devtools command without any pre-configured scope.",
@@ -836,6 +847,7 @@
"identifier": "default",
"description": "Default permissions for the plugin.",
"permissions": [
"allow-get-all-windows",
"allow-scale-factor",
"allow-inner-position",
"allow-outer-position",
@@ -897,6 +909,11 @@
"description": "Enables the destroy command without any pre-configured scope.",
"commands": { "allow": ["destroy"], "deny": [] }
},
"allow-get-all-windows": {
"identifier": "allow-get-all-windows",
"description": "Enables the get_all_windows command without any pre-configured scope.",
"commands": { "allow": ["get_all_windows"], "deny": [] }
},
"allow-hide": {
"identifier": "allow-hide",
"description": "Enables the hide command without any pre-configured scope.",
@@ -1222,6 +1239,11 @@
"description": "Denies the destroy command without any pre-configured scope.",
"commands": { "allow": [], "deny": ["destroy"] }
},
"deny-get-all-windows": {
"identifier": "deny-get-all-windows",
"description": "Denies the get_all_windows command without any pre-configured scope.",
"commands": { "allow": [], "deny": ["get_all_windows"] }
},
"deny-hide": {
"identifier": "deny-hide",
"description": "Denies the hide command without any pre-configured scope.",
@@ -1989,451 +2011,451 @@
"identifier": "scope-app",
"description": "This scope permits access to all files and list content of top level directories in the `$APP`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$APP/*" }] }
"scope": { "allow": [{ "path": "$APP" }, { "path": "$APP/*" }] }
},
"scope-app-index": {
"identifier": "scope-app-index",
"description": "This scope permits to list all files and folders in the `$APP`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$APP/" }] }
"scope": { "allow": [{ "path": "$APP" }] }
},
"scope-app-recursive": {
"identifier": "scope-app-recursive",
"description": "This scope permits recursive access to the complete `$APP` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$APP/**" }] }
"scope": { "allow": [{ "path": "$APP" }, { "path": "$APP/**" }] }
},
"scope-appcache": {
"identifier": "scope-appcache",
"description": "This scope permits access to all files and list content of top level directories in the `$APPCACHE`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$APPCACHE/*" }] }
"scope": { "allow": [{ "path": "$APPCACHE" }, { "path": "$APPCACHE/*" }] }
},
"scope-appcache-index": {
"identifier": "scope-appcache-index",
"description": "This scope permits to list all files and folders in the `$APPCACHE`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$APPCACHE/" }] }
"scope": { "allow": [{ "path": "$APPCACHE" }] }
},
"scope-appcache-recursive": {
"identifier": "scope-appcache-recursive",
"description": "This scope permits recursive access to the complete `$APPCACHE` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$APPCACHE/**" }] }
"scope": { "allow": [{ "path": "$APPCACHE" }, { "path": "$APPCACHE/**" }] }
},
"scope-appconfig": {
"identifier": "scope-appconfig",
"description": "This scope permits access to all files and list content of top level directories in the `$APPCONFIG`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$APPCONFIG/*" }] }
"scope": { "allow": [{ "path": "$APPCONFIG" }, { "path": "$APPCONFIG/*" }] }
},
"scope-appconfig-index": {
"identifier": "scope-appconfig-index",
"description": "This scope permits to list all files and folders in the `$APPCONFIG`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$APPCONFIG/" }] }
"scope": { "allow": [{ "path": "$APPCONFIG" }] }
},
"scope-appconfig-recursive": {
"identifier": "scope-appconfig-recursive",
"description": "This scope permits recursive access to the complete `$APPCONFIG` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$APPCONFIG/**" }] }
"scope": { "allow": [{ "path": "$APPCONFIG" }, { "path": "$APPCONFIG/**" }] }
},
"scope-appdata": {
"identifier": "scope-appdata",
"description": "This scope permits access to all files and list content of top level directories in the `$APPDATA`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$APPDATA/*" }] }
"scope": { "allow": [{ "path": "$APPDATA" }, { "path": "$APPDATA/*" }] }
},
"scope-appdata-index": {
"identifier": "scope-appdata-index",
"description": "This scope permits to list all files and folders in the `$APPDATA`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$APPDATA/" }] }
"scope": { "allow": [{ "path": "$APPDATA" }] }
},
"scope-appdata-recursive": {
"identifier": "scope-appdata-recursive",
"description": "This scope permits recursive access to the complete `$APPDATA` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$APPDATA/**" }] }
"scope": { "allow": [{ "path": "$APPDATA" }, { "path": "$APPDATA/**" }] }
},
"scope-applocaldata": {
"identifier": "scope-applocaldata",
"description": "This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$APPLOCALDATA/*" }] }
"scope": { "allow": [{ "path": "$APPLOCALDATA" }, { "path": "$APPLOCALDATA/*" }] }
},
"scope-applocaldata-index": {
"identifier": "scope-applocaldata-index",
"description": "This scope permits to list all files and folders in the `$APPLOCALDATA`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$APPLOCALDATA/" }] }
"scope": { "allow": [{ "path": "$APPLOCALDATA" }] }
},
"scope-applocaldata-recursive": {
"identifier": "scope-applocaldata-recursive",
"description": "This scope permits recursive access to the complete `$APPLOCALDATA` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$APPLOCALDATA/**" }] }
"scope": { "allow": [{ "path": "$APPLOCALDATA" }, { "path": "$APPLOCALDATA/**" }] }
},
"scope-applog": {
"identifier": "scope-applog",
"description": "This scope permits access to all files and list content of top level directories in the `$APPLOG`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$APPLOG/*" }] }
"scope": { "allow": [{ "path": "$APPLOG" }, { "path": "$APPLOG/*" }] }
},
"scope-applog-index": {
"identifier": "scope-applog-index",
"description": "This scope permits to list all files and folders in the `$APPLOG`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$APPLOG/" }] }
"scope": { "allow": [{ "path": "$APPLOG" }] }
},
"scope-applog-recursive": {
"identifier": "scope-applog-recursive",
"description": "This scope permits recursive access to the complete `$APPLOG` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$APPLOG/**" }] }
"scope": { "allow": [{ "path": "$APPLOG" }, { "path": "$APPLOG/**" }] }
},
"scope-audio": {
"identifier": "scope-audio",
"description": "This scope permits access to all files and list content of top level directories in the `$AUDIO`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$AUDIO/*" }] }
"scope": { "allow": [{ "path": "$AUDIO" }, { "path": "$AUDIO/*" }] }
},
"scope-audio-index": {
"identifier": "scope-audio-index",
"description": "This scope permits to list all files and folders in the `$AUDIO`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$AUDIO/" }] }
"scope": { "allow": [{ "path": "$AUDIO" }] }
},
"scope-audio-recursive": {
"identifier": "scope-audio-recursive",
"description": "This scope permits recursive access to the complete `$AUDIO` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$AUDIO/**" }] }
"scope": { "allow": [{ "path": "$AUDIO" }, { "path": "$AUDIO/**" }] }
},
"scope-cache": {
"identifier": "scope-cache",
"description": "This scope permits access to all files and list content of top level directories in the `$CACHE`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$CACHE/*" }] }
"scope": { "allow": [{ "path": "$CACHE" }, { "path": "$CACHE/*" }] }
},
"scope-cache-index": {
"identifier": "scope-cache-index",
"description": "This scope permits to list all files and folders in the `$CACHE`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$CACHE/" }] }
"scope": { "allow": [{ "path": "$CACHE" }] }
},
"scope-cache-recursive": {
"identifier": "scope-cache-recursive",
"description": "This scope permits recursive access to the complete `$CACHE` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$CACHE/**" }] }
"scope": { "allow": [{ "path": "$CACHE" }, { "path": "$CACHE/**" }] }
},
"scope-config": {
"identifier": "scope-config",
"description": "This scope permits access to all files and list content of top level directories in the `$CONFIG`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$CONFIG/*" }] }
"scope": { "allow": [{ "path": "$CONFIG" }, { "path": "$CONFIG/*" }] }
},
"scope-config-index": {
"identifier": "scope-config-index",
"description": "This scope permits to list all files and folders in the `$CONFIG`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$CONFIG/" }] }
"scope": { "allow": [{ "path": "$CONFIG" }] }
},
"scope-config-recursive": {
"identifier": "scope-config-recursive",
"description": "This scope permits recursive access to the complete `$CONFIG` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$CONFIG/**" }] }
"scope": { "allow": [{ "path": "$CONFIG" }, { "path": "$CONFIG/**" }] }
},
"scope-data": {
"identifier": "scope-data",
"description": "This scope permits access to all files and list content of top level directories in the `$DATA`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$DATA/*" }] }
"scope": { "allow": [{ "path": "$DATA" }, { "path": "$DATA/*" }] }
},
"scope-data-index": {
"identifier": "scope-data-index",
"description": "This scope permits to list all files and folders in the `$DATA`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$DATA/" }] }
"scope": { "allow": [{ "path": "$DATA" }] }
},
"scope-data-recursive": {
"identifier": "scope-data-recursive",
"description": "This scope permits recursive access to the complete `$DATA` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$DATA/**" }] }
"scope": { "allow": [{ "path": "$DATA" }, { "path": "$DATA/**" }] }
},
"scope-desktop": {
"identifier": "scope-desktop",
"description": "This scope permits access to all files and list content of top level directories in the `$DESKTOP`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$DESKTOP/*" }] }
"scope": { "allow": [{ "path": "$DESKTOP" }, { "path": "$DESKTOP/*" }] }
},
"scope-desktop-index": {
"identifier": "scope-desktop-index",
"description": "This scope permits to list all files and folders in the `$DESKTOP`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$DESKTOP/" }] }
"scope": { "allow": [{ "path": "$DESKTOP" }] }
},
"scope-desktop-recursive": {
"identifier": "scope-desktop-recursive",
"description": "This scope permits recursive access to the complete `$DESKTOP` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$DESKTOP/**" }] }
"scope": { "allow": [{ "path": "$DESKTOP" }, { "path": "$DESKTOP/**" }] }
},
"scope-document": {
"identifier": "scope-document",
"description": "This scope permits access to all files and list content of top level directories in the `$DOCUMENT`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$DOCUMENT/*" }] }
"scope": { "allow": [{ "path": "$DOCUMENT" }, { "path": "$DOCUMENT/*" }] }
},
"scope-document-index": {
"identifier": "scope-document-index",
"description": "This scope permits to list all files and folders in the `$DOCUMENT`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$DOCUMENT/" }] }
"scope": { "allow": [{ "path": "$DOCUMENT" }] }
},
"scope-document-recursive": {
"identifier": "scope-document-recursive",
"description": "This scope permits recursive access to the complete `$DOCUMENT` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$DOCUMENT/**" }] }
"scope": { "allow": [{ "path": "$DOCUMENT" }, { "path": "$DOCUMENT/**" }] }
},
"scope-download": {
"identifier": "scope-download",
"description": "This scope permits access to all files and list content of top level directories in the `$DOWNLOAD`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$DOWNLOAD/*" }] }
"scope": { "allow": [{ "path": "$DOWNLOAD" }, { "path": "$DOWNLOAD/*" }] }
},
"scope-download-index": {
"identifier": "scope-download-index",
"description": "This scope permits to list all files and folders in the `$DOWNLOAD`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$DOWNLOAD/" }] }
"scope": { "allow": [{ "path": "$DOWNLOAD" }] }
},
"scope-download-recursive": {
"identifier": "scope-download-recursive",
"description": "This scope permits recursive access to the complete `$DOWNLOAD` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$DOWNLOAD/**" }] }
"scope": { "allow": [{ "path": "$DOWNLOAD" }, { "path": "$DOWNLOAD/**" }] }
},
"scope-exe": {
"identifier": "scope-exe",
"description": "This scope permits access to all files and list content of top level directories in the `$EXE`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$EXE/*" }] }
"scope": { "allow": [{ "path": "$EXE" }, { "path": "$EXE/*" }] }
},
"scope-exe-index": {
"identifier": "scope-exe-index",
"description": "This scope permits to list all files and folders in the `$EXE`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$EXE/" }] }
"scope": { "allow": [{ "path": "$EXE" }] }
},
"scope-exe-recursive": {
"identifier": "scope-exe-recursive",
"description": "This scope permits recursive access to the complete `$EXE` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$EXE/**" }] }
"scope": { "allow": [{ "path": "$EXE" }, { "path": "$EXE/**" }] }
},
"scope-font": {
"identifier": "scope-font",
"description": "This scope permits access to all files and list content of top level directories in the `$FONT`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$FONT/*" }] }
"scope": { "allow": [{ "path": "$FONT" }, { "path": "$FONT/*" }] }
},
"scope-font-index": {
"identifier": "scope-font-index",
"description": "This scope permits to list all files and folders in the `$FONT`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$FONT/" }] }
"scope": { "allow": [{ "path": "$FONT" }] }
},
"scope-font-recursive": {
"identifier": "scope-font-recursive",
"description": "This scope permits recursive access to the complete `$FONT` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$FONT/**" }] }
"scope": { "allow": [{ "path": "$FONT" }, { "path": "$FONT/**" }] }
},
"scope-home": {
"identifier": "scope-home",
"description": "This scope permits access to all files and list content of top level directories in the `$HOME`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$HOME/*" }] }
"scope": { "allow": [{ "path": "$HOME" }, { "path": "$HOME/*" }] }
},
"scope-home-index": {
"identifier": "scope-home-index",
"description": "This scope permits to list all files and folders in the `$HOME`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$HOME/" }] }
"scope": { "allow": [{ "path": "$HOME" }] }
},
"scope-home-recursive": {
"identifier": "scope-home-recursive",
"description": "This scope permits recursive access to the complete `$HOME` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$HOME/**" }] }
"scope": { "allow": [{ "path": "$HOME" }, { "path": "$HOME/**" }] }
},
"scope-localdata": {
"identifier": "scope-localdata",
"description": "This scope permits access to all files and list content of top level directories in the `$LOCALDATA`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$LOCALDATA/*" }] }
"scope": { "allow": [{ "path": "$LOCALDATA" }, { "path": "$LOCALDATA/*" }] }
},
"scope-localdata-index": {
"identifier": "scope-localdata-index",
"description": "This scope permits to list all files and folders in the `$LOCALDATA`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$LOCALDATA/" }] }
"scope": { "allow": [{ "path": "$LOCALDATA" }] }
},
"scope-localdata-recursive": {
"identifier": "scope-localdata-recursive",
"description": "This scope permits recursive access to the complete `$LOCALDATA` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$LOCALDATA/**" }] }
"scope": { "allow": [{ "path": "$LOCALDATA" }, { "path": "$LOCALDATA/**" }] }
},
"scope-log": {
"identifier": "scope-log",
"description": "This scope permits access to all files and list content of top level directories in the `$LOG`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$LOG/*" }] }
"scope": { "allow": [{ "path": "$LOG" }, { "path": "$LOG/*" }] }
},
"scope-log-index": {
"identifier": "scope-log-index",
"description": "This scope permits to list all files and folders in the `$LOG`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$LOG/" }] }
"scope": { "allow": [{ "path": "$LOG" }] }
},
"scope-log-recursive": {
"identifier": "scope-log-recursive",
"description": "This scope permits recursive access to the complete `$LOG` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$LOG/**" }] }
"scope": { "allow": [{ "path": "$LOG" }, { "path": "$LOG/**" }] }
},
"scope-picture": {
"identifier": "scope-picture",
"description": "This scope permits access to all files and list content of top level directories in the `$PICTURE`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$PICTURE/*" }] }
"scope": { "allow": [{ "path": "$PICTURE" }, { "path": "$PICTURE/*" }] }
},
"scope-picture-index": {
"identifier": "scope-picture-index",
"description": "This scope permits to list all files and folders in the `$PICTURE`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$PICTURE/" }] }
"scope": { "allow": [{ "path": "$PICTURE" }] }
},
"scope-picture-recursive": {
"identifier": "scope-picture-recursive",
"description": "This scope permits recursive access to the complete `$PICTURE` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$PICTURE/**" }] }
"scope": { "allow": [{ "path": "$PICTURE" }, { "path": "$PICTURE/**" }] }
},
"scope-public": {
"identifier": "scope-public",
"description": "This scope permits access to all files and list content of top level directories in the `$PUBLIC`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$PUBLIC/*" }] }
"scope": { "allow": [{ "path": "$PUBLIC" }, { "path": "$PUBLIC/*" }] }
},
"scope-public-index": {
"identifier": "scope-public-index",
"description": "This scope permits to list all files and folders in the `$PUBLIC`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$PUBLIC/" }] }
"scope": { "allow": [{ "path": "$PUBLIC" }] }
},
"scope-public-recursive": {
"identifier": "scope-public-recursive",
"description": "This scope permits recursive access to the complete `$PUBLIC` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$PUBLIC/**" }] }
"scope": { "allow": [{ "path": "$PUBLIC" }, { "path": "$PUBLIC/**" }] }
},
"scope-resource": {
"identifier": "scope-resource",
"description": "This scope permits access to all files and list content of top level directories in the `$RESOURCE`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$RESOURCE/*" }] }
"scope": { "allow": [{ "path": "$RESOURCE" }, { "path": "$RESOURCE/*" }] }
},
"scope-resource-index": {
"identifier": "scope-resource-index",
"description": "This scope permits to list all files and folders in the `$RESOURCE`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$RESOURCE/" }] }
"scope": { "allow": [{ "path": "$RESOURCE" }] }
},
"scope-resource-recursive": {
"identifier": "scope-resource-recursive",
"description": "This scope permits recursive access to the complete `$RESOURCE` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$RESOURCE/**" }] }
"scope": { "allow": [{ "path": "$RESOURCE" }, { "path": "$RESOURCE/**" }] }
},
"scope-runtime": {
"identifier": "scope-runtime",
"description": "This scope permits access to all files and list content of top level directories in the `$RUNTIME`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$RUNTIME/*" }] }
"scope": { "allow": [{ "path": "$RUNTIME" }, { "path": "$RUNTIME/*" }] }
},
"scope-runtime-index": {
"identifier": "scope-runtime-index",
"description": "This scope permits to list all files and folders in the `$RUNTIME`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$RUNTIME/" }] }
"scope": { "allow": [{ "path": "$RUNTIME" }] }
},
"scope-runtime-recursive": {
"identifier": "scope-runtime-recursive",
"description": "This scope permits recursive access to the complete `$RUNTIME` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$RUNTIME/**" }] }
"scope": { "allow": [{ "path": "$RUNTIME" }, { "path": "$RUNTIME/**" }] }
},
"scope-temp": {
"identifier": "scope-temp",
"description": "This scope permits access to all files and list content of top level directories in the `$TEMP`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$TEMP/*" }] }
"scope": { "allow": [{ "path": "$TEMP" }, { "path": "$TEMP/*" }] }
},
"scope-temp-index": {
"identifier": "scope-temp-index",
"description": "This scope permits to list all files and folders in the `$TEMP`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$TEMP/" }] }
"scope": { "allow": [{ "path": "$TEMP" }] }
},
"scope-temp-recursive": {
"identifier": "scope-temp-recursive",
"description": "This scope permits recursive access to the complete `$TEMP` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$TEMP/**" }] }
"scope": { "allow": [{ "path": "$TEMP" }, { "path": "$TEMP/**" }] }
},
"scope-template": {
"identifier": "scope-template",
"description": "This scope permits access to all files and list content of top level directories in the `$TEMPLATE`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$TEMPLATE/*" }] }
"scope": { "allow": [{ "path": "$TEMPLATE" }, { "path": "$TEMPLATE/*" }] }
},
"scope-template-index": {
"identifier": "scope-template-index",
"description": "This scope permits to list all files and folders in the `$TEMPLATE`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$TEMPLATE/" }] }
"scope": { "allow": [{ "path": "$TEMPLATE" }] }
},
"scope-template-recursive": {
"identifier": "scope-template-recursive",
"description": "This scope permits recursive access to the complete `$TEMPLATE` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$TEMPLATE/**" }] }
"scope": { "allow": [{ "path": "$TEMPLATE" }, { "path": "$TEMPLATE/**" }] }
},
"scope-video": {
"identifier": "scope-video",
"description": "This scope permits access to all files and list content of top level directories in the `$VIDEO`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$VIDEO/*" }] }
"scope": { "allow": [{ "path": "$VIDEO" }, { "path": "$VIDEO/*" }] }
},
"scope-video-index": {
"identifier": "scope-video-index",
"description": "This scope permits to list all files and folders in the `$VIDEO`folder.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$VIDEO/" }] }
"scope": { "allow": [{ "path": "$VIDEO" }] }
},
"scope-video-recursive": {
"identifier": "scope-video-recursive",
"description": "This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files.",
"commands": { "allow": [], "deny": [] },
"scope": { "allow": [{ "path": "$VIDEO/**" }] }
"scope": { "allow": [{ "path": "$VIDEO" }, { "path": "$VIDEO/**" }] }
},
"write-all": {
"identifier": "write-all",
@@ -3543,8 +3565,13 @@
"additionalProperties": false,
"description": "A variable that is set while calling the command from the webview API.",
"properties": {
"raw": {
"default": false,
"description": "Marks the validator as a raw regex, meaning the plugin should not make any modification at runtime.\n\nThis means the regex will not match on the entire string by default, which might be exploited if your regex allow unexpected input to be considered valid. When using this option, make sure your regex is correct.",
"type": "boolean"
},
"validator": {
"description": "[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\n[regex]: https://docs.rs/regex/latest/regex/#syntax",
"description": "[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\nThe regex string is by default surrounded by `^...$` to match the full string. For example the `https?://\\w+` regex would be registered as `^https?://\\w+$`.\n\n[regex]: <https://docs.rs/regex/latest/regex/#syntax>",
"type": "string"
}
},

View File

@@ -2458,6 +2458,11 @@
"type": "string",
"enum": ["core:webview:allow-create-webview-window"]
},
{
"description": "core:webview:allow-get-all-webviews -> Enables the get_all_webviews command without any pre-configured scope.",
"type": "string",
"enum": ["core:webview:allow-get-all-webviews"]
},
{
"description": "core:webview:allow-internal-toggle-devtools -> Enables the internal_toggle_devtools command without any pre-configured scope.",
"type": "string",
@@ -2518,6 +2523,11 @@
"type": "string",
"enum": ["core:webview:deny-create-webview-window"]
},
{
"description": "core:webview:deny-get-all-webviews -> Denies the get_all_webviews command without any pre-configured scope.",
"type": "string",
"enum": ["core:webview:deny-get-all-webviews"]
},
{
"description": "core:webview:deny-internal-toggle-devtools -> Denies the internal_toggle_devtools command without any pre-configured scope.",
"type": "string",
@@ -2608,6 +2618,11 @@
"type": "string",
"enum": ["core:window:allow-destroy"]
},
{
"description": "core:window:allow-get-all-windows -> Enables the get_all_windows command without any pre-configured scope.",
"type": "string",
"enum": ["core:window:allow-get-all-windows"]
},
{
"description": "core:window:allow-hide -> Enables the hide command without any pre-configured scope.",
"type": "string",
@@ -2933,6 +2948,11 @@
"type": "string",
"enum": ["core:window:deny-destroy"]
},
{
"description": "core:window:deny-get-all-windows -> Denies the get_all_windows command without any pre-configured scope.",
"type": "string",
"enum": ["core:window:deny-get-all-windows"]
},
{
"description": "core:window:deny-hide -> Denies the hide command without any pre-configured scope.",
"type": "string",
@@ -5121,8 +5141,13 @@
"type": "object",
"required": ["validator"],
"properties": {
"raw": {
"description": "Marks the validator as a raw regex, meaning the plugin should not make any modification at runtime.\n\nThis means the regex will not match on the entire string by default, which might be exploited if your regex allow unexpected input to be considered valid. When using this option, make sure your regex is correct.",
"default": false,
"type": "boolean"
},
"validator": {
"description": "[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\n[regex]: https://docs.rs/regex/latest/regex/#syntax",
"description": "[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\nThe regex string is by default surrounded by `^...$` to match the full string. For example the `https?://\\w+` regex would be registered as `^https?://\\w+$`.\n\n[regex]: <https://docs.rs/regex/latest/regex/#syntax>",
"type": "string"
}
},

View File

@@ -2458,6 +2458,11 @@
"type": "string",
"enum": ["core:webview:allow-create-webview-window"]
},
{
"description": "core:webview:allow-get-all-webviews -> Enables the get_all_webviews command without any pre-configured scope.",
"type": "string",
"enum": ["core:webview:allow-get-all-webviews"]
},
{
"description": "core:webview:allow-internal-toggle-devtools -> Enables the internal_toggle_devtools command without any pre-configured scope.",
"type": "string",
@@ -2518,6 +2523,11 @@
"type": "string",
"enum": ["core:webview:deny-create-webview-window"]
},
{
"description": "core:webview:deny-get-all-webviews -> Denies the get_all_webviews command without any pre-configured scope.",
"type": "string",
"enum": ["core:webview:deny-get-all-webviews"]
},
{
"description": "core:webview:deny-internal-toggle-devtools -> Denies the internal_toggle_devtools command without any pre-configured scope.",
"type": "string",
@@ -2608,6 +2618,11 @@
"type": "string",
"enum": ["core:window:allow-destroy"]
},
{
"description": "core:window:allow-get-all-windows -> Enables the get_all_windows command without any pre-configured scope.",
"type": "string",
"enum": ["core:window:allow-get-all-windows"]
},
{
"description": "core:window:allow-hide -> Enables the hide command without any pre-configured scope.",
"type": "string",
@@ -2933,6 +2948,11 @@
"type": "string",
"enum": ["core:window:deny-destroy"]
},
{
"description": "core:window:deny-get-all-windows -> Denies the get_all_windows command without any pre-configured scope.",
"type": "string",
"enum": ["core:window:deny-get-all-windows"]
},
{
"description": "core:window:deny-hide -> Denies the hide command without any pre-configured scope.",
"type": "string",
@@ -5121,8 +5141,13 @@
"type": "object",
"required": ["validator"],
"properties": {
"raw": {
"description": "Marks the validator as a raw regex, meaning the plugin should not make any modification at runtime.\n\nThis means the regex will not match on the entire string by default, which might be exploited if your regex allow unexpected input to be considered valid. When using this option, make sure your regex is correct.",
"default": false,
"type": "boolean"
},
"validator": {
"description": "[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\n[regex]: https://docs.rs/regex/latest/regex/#syntax",
"description": "[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\nThe regex string is by default surrounded by `^...$` to match the full string. For example the `https?://\\w+` regex would be registered as `^https?://\\w+$`.\n\n[regex]: <https://docs.rs/regex/latest/regex/#syntax>",
"type": "string"
}
},