Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes detected symbols from javascript code (requires additional space character) #264

Open
alexp1917 opened this issue Jul 14, 2021 · 0 comments

Comments

@alexp1917
Copy link

When writing a class in javascript, the expected behavior is that when you write some code like:

function My() { this.value = arguments[0] || 1; }
My.prototype.method = function() {
  return this.value;
};

then press Ctrl+R in sublime text, then you will see two symbols that are navigable to.

However, the actual behavior is that unless there is a space as below, then the method is not found. it looks like this only an issue in ST4, and the ClassName.prototype. is not part of the detected symbol. so please don't shoot the messenger, but it feels like its worth reporting.

-My.prototype.method = function() {
+My.prototype.method = function () {

By the way, when disabling this plugin, the space is no longer necessary. So the problem, as i see it, is ultimately that this plugin interferes with ST4's ability to find symbols in js code (probably due to st4, but ive lost a lot of time already figuring out whats wrong with ST4 that i havent checked this, but i can spend more time on this if necessary).

@alexp1917 alexp1917 changed the title Removes symbols from javascript code Removes detected symbols from javascript code Jul 14, 2021
@alexp1917 alexp1917 changed the title Removes detected symbols from javascript code Removes detected symbols from javascript code (requires additional space character) Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant