1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 08:46:02 +02:00
cdt/qt/org.eclipse.cdt.qt.core/tern-qml/qml-nsh.js
Matthew Bastien 42e3859b68 Bug 481126 - QML Imports Working in Editor
Hooked up the extra logic needed to get Tern-QML's imports to work in
the QML File Editor.

Change-Id: I6fa222223ca8b6b177e4004e48f2f1863ab4d7b4
Signed-off-by: Matthew Bastien <mbastien@blackberry.com>
2015-12-06 15:05:41 -05:00

15 lines
No EOL
281 B
JavaScript

function newTernServer(options) {
return new tern.Server(options);
}
function resolveDirectory(obj) {
return function (file, path) {
return obj.resolveDirectory(file, path);
};
}
function requestCallback(obj) {
return function (err, data) {
obj.callback(err, data);
};
}