PHP autocompletion: $_GET completes into $$_GET #86

This commit is contained in:
Martin Aeschlimann 2015-11-22 16:38:36 +01:00
parent e807c0e305
commit c7451c15d2

View file

@ -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
});
}