forked from qt-creator/qt-creator
QmlJS: Make variables in imported JS documents show up in completion.
Filtering them out has long since become unnecessary. It was used back when JS files were sourced from Script elements - there they'd only make the functions available. Now functions and variables are imported. Task-number: QTCREATORBUG-1735 Reviewed-by: Erik Verbruggen
This commit is contained in:
@@ -208,9 +208,7 @@ public:
|
||||
private:
|
||||
void insertProperty(const QString &name, const Interpreter::Value *value)
|
||||
{
|
||||
if (_context->lookupMode() == Interpreter::Context::JSLookup ||
|
||||
! dynamic_cast<const Interpreter::ASTVariableReference *>(value))
|
||||
_properties.insert(name, value);
|
||||
_properties.insert(name, value);
|
||||
}
|
||||
|
||||
virtual bool processProperty(const QString &name, const Interpreter::Value *value)
|
||||
|
||||
Reference in New Issue
Block a user