forcedotcom / salesforcedx-vscode

Salesforce Extensions for VS Code
https://developer.salesforce.com/tools/vscode
BSD 3-Clause "New" or "Revised" License
953 stars 406 forks source link

The Outline window gets broken if there is an abstract method in the class #5553

Closed gpervukhin closed 5 months ago

gpervukhin commented 5 months ago

Summary

The Outline window gets broken if there is an abstract method in the class OR in any of its nested classes.

Steps To Reproduce:

public abstract class MyTestClass
{
   public void method1() {}

   //public abstract void abstractMethod();
}
  1. Create a new class using the above code;
  2. Check that the Outline window shows the name of the class and its method1;
  3. Uncomment the abstract method in the line # 5.

Expected result

I expect that VS Code shows 2 methods in the Outline window now.

Actual result

The Outline window gets broken and shows this phrase "No symbols found in document 'MyTestClass.cls'".

Additional information

image

Salesforce Extension Version in VS Code: v60.8.0

SFDX CLI Version: @salesforce/cli/2.20.6 win32-x64 node-v20.10.0

OS and version: Windows 10 Home 22H2

VS Code version: 1.85.0

git2gus[bot] commented 5 months ago

This issue has been linked to a new work item: W-15593844

diyer commented 5 months ago

Closing this as the issue has been fixed and released. @gpervukhin please let us know if you see any other issues. Thank you for reporting this!

gpervukhin commented 4 months ago

@diyer, it works fine now. Thank you.