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

Add create class code action #36471

Closed
gayalkuruppu opened this issue Jun 8, 2022 · 1 comment
Closed

Add create class code action #36471

gayalkuruppu opened this issue Jun 8, 2022 · 1 comment
Labels
Area/CodeAction Language Server Code Actions IceBox Older issues that are not being actively worked on but may be revisited in the future. Priority/Low Team/LanguageServer Language Server Implementation related issues. #Compiler Type/NewFeature

Comments

@gayalkuruppu
Copy link
Contributor

Description:
$Title

Describe your problem(s)
For now we suggest Create record 'Person' for the following scenario,

public function main() {
    Person person = new Person();
}

But this is an object creation and Person is a class not a record. This behaviour due to the diagnostic unknown type 'Person'(BCE2069). ( and the diagnostic is same at Person and Person())

Screenshot 2022-06-08 at 10 00 28

Quick fix we now provide,

Screenshot 2022-06-08 at 10 02 04

Describe your solution(s)
We can improve this to give Create class 'Person' code action.

@gayalkuruppu gayalkuruppu added Type/NewFeature Team/LanguageServer Language Server Implementation related issues. #Compiler Area/CodeAction Language Server Code Actions labels Jun 8, 2022
@anupama-pathirage anupama-pathirage added the IceBox Older issues that are not being actively worked on but may be revisited in the future. label Nov 20, 2024
@anupama-pathirage
Copy link
Contributor

We are closing this issue due to inactivity. If you need further assistance or have additional input, feel free to reopen it. Thank you for helping us maintain a relevant and focused issue list!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/CodeAction Language Server Code Actions IceBox Older issues that are not being actively worked on but may be revisited in the future. Priority/Low Team/LanguageServer Language Server Implementation related issues. #Compiler Type/NewFeature
Projects
None yet
Development

No branches or pull requests

3 participants