From 317a53d8fa19ca40af6773033b74dee09fb4bee8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 19 Jul 2023 21:44:11 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4. - [Release notes](https://github.com/jonschlinkert/word-wrap/releases) - [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4) --- updated-dependencies: - dependency-name: word-wrap dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2c5116aa..1c37648c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10927,9 +10927,9 @@ "dev": true }, "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.4.tgz", + "integrity": "sha512-2V81OA4ugVo5pRo46hAoD2ivUJx8jXmWXfUkY4KFNw0hEptvN0QfH3K4nHiwzGeKl5rFKedV48QVoqYavy4YpA==", "dev": true, "engines": { "node": ">=0.10.0" @@ -19247,9 +19247,9 @@ "dev": true }, "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.4.tgz", + "integrity": "sha512-2V81OA4ugVo5pRo46hAoD2ivUJx8jXmWXfUkY4KFNw0hEptvN0QfH3K4nHiwzGeKl5rFKedV48QVoqYavy4YpA==", "dev": true }, "wordwrap": { From 1d76e1fa2be6524166fccd492ebec39be2c95efd Mon Sep 17 00:00:00 2001 From: Damjan Cvetko Date: Wed, 26 Jul 2023 14:52:28 +0200 Subject: [PATCH 2/2] fix: Remove EvaluatableExpression Provider as it should never have been part of the debugger extension. (#918) [skip ci] --- src/extension.ts | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index e24846cc..0e81aeeb 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -70,27 +70,6 @@ export function activate(context: vscode.ExtensionContext) { }, }) ) - context.subscriptions.push( - vscode.languages.registerEvaluatableExpressionProvider('php', { - // eslint-disable-next-line @typescript-eslint/require-await - async provideEvaluatableExpression( - document: vscode.TextDocument, - position: vscode.Position, - token: CancellationToken - ): Promise> { - // see https://www.php.net/manual/en/language.variables.basics.php - // const wordRange = document.getWordRangeAtPosition(position, /\$([a-zA-Z_\x80-\xff][a-zA-Z0-9_\x80-\xff]*)((->(?1))|\[(\d+|'[^']+'|"[^"]+"|(?0))\])*/) - const wordRange = document.getWordRangeAtPosition( - position, - /\$[a-zA-Z_\x80-\xff][a-zA-Z0-9_\x80-\xff]*(->[a-zA-Z_\x80-\xff][a-zA-Z0-9_\x80-\xff]*)*/ - ) - if (wordRange) { - return new vscode.EvaluatableExpression(wordRange) - } - return undefined // nothing evaluatable found under mouse - }, - }) - ) context.subscriptions.push( vscode.commands.registerCommand('php.debug.debugPhpFile', async (uri: vscode.Uri) => {