This commit is contained in:
Alex Dima
2016-02-12 17:29:22 +01:00
parent 98b3482a49
commit d27f694455
21 changed files with 54 additions and 55 deletions

View File

@@ -34,7 +34,7 @@ export default class PHPCompletionItemProvider implements CompletionItemProvider
var matches = (name:string) => {
return prefix.length === 0 || name.length > prefix.length && name.substr(0, prefix.length) === prefix;
}
};
for (var name in phpGlobals.globalvariables) {
if (phpGlobals.globalvariables.hasOwnProperty(name) && matches(name)) {