diff --git a/bundles/org.eclipse.orion.client.javascript/web/tern/plugin/modules.js b/bundles/org.eclipse.orion.client.javascript/web/tern/plugin/modules.js
index <HASH>..<HASH> 100644
--- a/bundles/org.eclipse.orion.client.javascript/web/tern/plugin/modules.js
+++ b/bundles/org.eclipse.orion.client.javascript/web/tern/plugin/modules.js
@@ -43,6 +43,7 @@
     },
 
     resolveModule: function(name, parentFile) {
+      var modName = name; // ORION we need the original name for linting
       var over = this.maybeOverride(name)
       if (over) return over
       var known = this.knownModules[name]
@@ -67,6 +68,7 @@
       
       if (typeof resolved != "string") {
         if (!relative) this.nonRelative[name] = true
+        resolved.modName = modName; //ORION tag module with original name
         return resolved
       }
 
@@ -76,7 +78,10 @@
       if (/\.js$|(?:^\/)[^\.]+$/.test(resolved))
         this.server.addFile(resolved, contents, parentFile)
       if (!relative) this.nonRelative[name] = resolved
-      return this.modules[resolved] = new infer.AVal
+      //ORION tag the module name
+      var val = new infer.AVal;
+      val.modName = modName;
+      return this.modules[resolved] = val;
     },
 
     findIn: function(array, node, pos) {
Bug <I> - [regression] We need to add back support for tagging module names to resolved files in Tern - part one