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

vscode: Using "Selection->Expand Selection" selects wrong scope #49

Open
fkoehler opened this issue Sep 4, 2019 · 3 comments
Open

vscode: Using "Selection->Expand Selection" selects wrong scope #49

fkoehler opened this issue Sep 4, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@fkoehler
Copy link

fkoehler commented Sep 4, 2019

I am not sure if this issue belongs to this repo or should live somewhere else. I am using metals with vscode and find the expand selection for scala code to be quite greedy. Here is an example snippet:

object Test {
  val foo = "bar"
  def call(s: String, s: String): Unit = ???
}

object Scope {
  Test.call(Test.foo, Test.foo)
}

Putting the cursor on the Test object name inside the Test.call call and using Selection->Expand Selection it selects first the Test object which is correct, but then the entire parentheses block and not just the member foo.

Result:
image

Expected:
image

If it is in this repo where is a starting point to look? Maybe I can figure the error out

@nicolasstucki nicolasstucki added the enhancement New feature or request label Sep 10, 2019
@nicolasstucki
Copy link
Contributor

This is probably an issue with the language sever. Check the issue could come from

@nicolasstucki
Copy link
Contributor

@doofin
Copy link

doofin commented Feb 6, 2022

This is quite annoying,do we have any updates now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants