File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -70,27 +70,6 @@ export function activate(context: vscode.ExtensionContext) {
7070 } ,
7171 } )
7272 )
73- context . subscriptions . push (
74- vscode . languages . registerEvaluatableExpressionProvider ( 'php' , {
75- // eslint-disable-next-line @typescript-eslint/require-await
76- async provideEvaluatableExpression (
77- document : vscode . TextDocument ,
78- position : vscode . Position ,
79- token : CancellationToken
80- ) : Promise < ProviderResult < vscode . EvaluatableExpression > > {
81- // see https://www.php.net/manual/en/language.variables.basics.php
82- // const wordRange = document.getWordRangeAtPosition(position, /\$([a-zA-Z_\x80-\xff][a-zA-Z0-9_\x80-\xff]*)((->(?1))|\[(\d+|'[^']+'|"[^"]+"|(?0))\])*/)
83- const wordRange = document . getWordRangeAtPosition (
84- position ,
85- / \$ [ a - z A - Z _ \x80 - \xff ] [ a - z A - Z 0 - 9 _ \x80 - \xff ] * ( - > [ a - z A - Z _ \x80 - \xff ] [ a - z A - Z 0 - 9 _ \x80 - \xff ] * ) * /
86- )
87- if ( wordRange ) {
88- return new vscode . EvaluatableExpression ( wordRange )
89- }
90- return undefined // nothing evaluatable found under mouse
91- } ,
92- } )
93- )
9473
9574 context . subscriptions . push (
9675 vscode . commands . registerCommand ( 'php.debug.debugPhpFile' , async ( uri : vscode . Uri ) => {
You can’t perform that action at this time.
0 commit comments