From 9191d0ecdd86c8fa92da284f2a79a04352627b93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=AF=85?= Date: Fri, 13 Aug 2021 10:58:15 +0800 Subject: [PATCH 1/2] Supported workspace trust --- README.md | 2 +- package.json | 7 ++++++- src/block/function.ts | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4cc6ba8..f14948c 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,7 @@ and can be triggered by typing @ then another characted (Provided your vscode se | @abstract | @abstract | | @after | @after | | @afterClass | @afterClass | -| @author | @author ${1:{{name}}} <${2:{{email}}}> | +| @author | @author \${1:name} <${2:email}> | | @backupGlobals | @backupGlobals ${1:switch} | | @backupStaticAttributes | @backupStaticAttributes ${1:switch} | | @before | @before | diff --git a/package.json b/package.json index 276f674..4a20bbc 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,11 @@ "bugs": { "url": "https://github.com/neild3r/vscode-php-docblocker/issues" }, + "capabilities": { + "untrustedWorkspaces": { + "supported": true + } + }, "icon": "images/logo.png", "main": "./out/src/extension.js", "contributes": { @@ -39,7 +44,7 @@ ], "configuration": { "type": "object", - "title": "PHP DocBlocker configuration", + "title": "PHP DocBlocker", "properties": { "php-docblocker.gap": { "type": "boolean", diff --git a/src/block/function.ts b/src/block/function.ts index 94f9578..18ebd3b 100644 --- a/src/block/function.ts +++ b/src/block/function.ts @@ -16,7 +16,7 @@ export default class FunctionBlock extends Block /** * @inheritdoc */ - protected pattern:RegExp = /^\s*((.*)(protected|private|public))?(.*)?\s*function\s+&?([A-Za-z0-9_]+)\s*\(([^{;]*)/m; + protected pattern:RegExp = /^\s*((.*)(protected|private|public))?(.*)?\s*function\s+&?([a-z0-9_]+)\s*\(([^{;]*)/im; /** * @inheritdoc From fe54afd546bfd05f84bdce162d2929fba1d6129b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=AF=85?= Date: Fri, 13 Aug 2021 11:00:06 +0800 Subject: [PATCH 2/2] Supported workspace trust --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 773c7c7..e0b5b77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Change Log All notable changes to the "php-docblocker" extension will be documented in this file. +## [2.2.1] - 2021-10-13 +- Supported workspace trust ## [2.2.0] - 2021-10-11 - Use esbundle to improve startup performance