// x.js
class X {
/**
* Ctor
*
* @return {void} Nothing
*/
constructor() {
this.e = 1;
}
/**
* Test
*
* @param {int} a Number
*
* @return {int} Returned number
*/
x(a) {
return 2 * a;
}
}
module.exports = X;
And
#!/usr/bin/env node
// y.js
const X = require("x");
x = new X();
If doc_comment plugin is disabled, the completions work correctly.
If I enable it (either by setting "doc_comment": {} or by removing it completely), however, the completions stop working for x variable. They still work correctly for static functions, classes, and so on; just not for classes' member functions.
There are no errors in the console, and I'm not quite sure how to debug it.
I'm using an up-to-date Arch Linux and ST nightly build 3142.
I'm not quite sure if this is tern or tern_for_sublime issue, but I haven't used tern outside of sublime at all.
My
~/.tern-project
:My sublime tern config:
Consider the following code:
And
If
doc_comment
plugin is disabled, the completions work correctly. If I enable it (either by setting"doc_comment": {}
or by removing it completely), however, the completions stop working forx
variable. They still work correctly for static functions, classes, and so on; just not for classes' member functions.There are no errors in the console, and I'm not quite sure how to debug it. I'm using an up-to-date Arch Linux and ST nightly build 3142.
I'm not quite sure if this is
tern
ortern_for_sublime
issue, but I haven't used tern outside of sublime at all.