From c7451c15d275fc422004c846ccc77056bb39580f Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Sun, 22 Nov 2015 16:38:36 +0100 Subject: [PATCH] PHP autocompletion: $_GET completes into $$_GET #86 --- extensions/php/src/phpMain.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extensions/php/src/phpMain.ts b/extensions/php/src/phpMain.ts index 9b39e6cb0ca..1367d33d571 100644 --- a/extensions/php/src/phpMain.ts +++ b/extensions/php/src/phpMain.ts @@ -20,4 +20,9 @@ export function activate(context: ExtensionContext): any { let validator = new PHPValidationProvider(); validator.activate(context.subscriptions); + + // need to set in the plugin host as well as the completion provider uses it. + languages.setLanguageConfiguration('php', { + wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g + }); } \ No newline at end of file