Skip to content

Add missing JS scope facets #2890

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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Add missing JS scope facets #2890

wants to merge 14 commits into from

Conversation

AndreasArvidsson
Copy link
Member

No description provided.

@AndreasArvidsson AndreasArvidsson requested a review from a team as a code owner April 16, 2025 13:55
Copy link
Member

@pokey pokey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this code:

class Aaa {
  bbb() {
    ccc;
  }
  ddd() {}
}

Will "every funk name cap" still return bbb and ddd?

@AndreasArvidsson
Copy link
Member Author

AndreasArvidsson commented Apr 16, 2025

In this code:

class Aaa {
  bbb() {
    ccc;
  }
  ddd() {}
}

Will "every funk name cap" still return bbb and ddd?

No... I'm wondering if namedFunction.iteration.block and functionName.iteration.block really are facets we want? Shouldn't it just be namedFunction.iteration.class?

@pokey
Copy link
Member

pokey commented Apr 16, 2025

Yeah maybe we remove those? Where are they used? I mean I can see the use case in certain scenarios but it's a bummer to lose every funk within a method

@AndreasArvidsson
Copy link
Member Author

AndreasArvidsson commented Apr 16, 2025

This is the only instance before this pull request: https://github.com/cursorless-dev/cursorless/blob/49cc8cdb89ce19450f3cd41015f4a8fd91ebc623/data/fixtures/scopes/scss/namedFunction.iteration.block.scope

I definitely agree that every funk should work in a method. The question is just what to do with the facets. Should iteration.block be kept for css sake? We already have method.iteration.class so I don't think we need to add any new ones.

@AndreasArvidsson
Copy link
Member Author

@pokey Ready for another view. I haven't renamed any of the facets. Besides that I'm feel this one is done now.

@AndreasArvidsson AndreasArvidsson changed the title Migrating missing JS scope facets Add missing JS scope facets Apr 23, 2025
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

Successfully merging this pull request may close these issues.

2 participants