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

[Bug]: Code suggestions are not available for union of string constants #40208

Open
aneeshafedo opened this issue Apr 12, 2023 · 0 comments
Open
Labels
needTriage The issue has to be inspected and labeled manually Type/Bug userCategory/Compilation

Comments

@aneeshafedo
Copy link
Contributor

Description

When initializing a value for a Ballerina type like below examples, LS does not provide any code suggestions, listing down the option allowed.

Ex:

Type 1

const SINGLE = "single";
const MULTIPLE = "multiple";

public type PollQuestionsType SINGLE|MULTIPLE;

Type 2

type MeetingType "live"|"upcoming"|"scheduled"; 
Kazam_screencast_00004.mp4

Currently, all the constants available in the module are listed down here.

By providing code suggestion for this kind of scenario can increase the usability of the Ballerina code.

Steps to Reproduce

No response

Affected Version(s)

2201.4.1

OS, DB, other environment details and versions

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@ballerina-bot ballerina-bot added needTriage The issue has to be inspected and labeled manually userCategory/Compilation labels Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needTriage The issue has to be inspected and labeled manually Type/Bug userCategory/Compilation
Projects
None yet
Development

No branches or pull requests

2 participants