Skip to content

Commit

Permalink
Merge branch 'main' into skip-entry-paths
Browse files Browse the repository at this point in the history
  • Loading branch information
zobo authored Jul 26, 2023
2 parents 6774588 + 1d76e1f commit 77c19b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 27 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

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

21 changes: 0 additions & 21 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ProviderResult<vscode.EvaluatableExpression>> {
// 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) => {
Expand Down

0 comments on commit 77c19b2

Please sign in to comment.