We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e43c63 + 4e94128 commit 300f3d0Copy full SHA for 300f3d0
src/extensions/default/JavaScriptCodeHints/tern-worker.js
@@ -122,6 +122,14 @@ var config = {};
122
};
123
ternServer = new Tern.Server(ternOptions);
124
125
+ // Since we don't specify projectDir, Tern will "normalize" file names by
126
+ // removing any leading "/" (the default projectDir, which cannot be changed to "").
127
+ // This is not a problem on Windows, but on Mac and Linux, it will break
128
+ // absolute paths ("/home/" to "home/", for example)
129
+ ternServer.normalizeFilename = function (name) {
130
+ return name;
131
+ };
132
+
133
files.forEach(function (file) {
134
ternServer.addFile(file);
135
});
0 commit comments