Lakshan Weerasinghe

Results 12 comments of Lakshan Weerasinghe

Currently we are providing the create variable codea action for the `variable assignment required (BCE2526)`. In this case we get the diagnostic of `cannot infer type for 'target type' (BCE3934)`....

> Shall we address the following cases as well. > > 1. Suggest variable names(object field names) in mapping constructor > > ```ballerina > int moduleVar = 20; > >...

Closing this PR in favor of #38367 (2201.3.x) and #38370 (master).

> Can you check the following case where we're not getting the code action `Convert to 'xml' template` for parameter `i`? > > ``` > function test(xml i = `abc`)...

> Shall we add a one test for nested queries? added in [commit](https://github.com/ballerina-platform/ballerina-lang/pull/41733/commits/a7e115e751fda48cd0938625970ff4c1cd011ace).

IMO what we are currently doing is not correct. Consider a case like this, ```ballerina public type Error1 distinct error; public type Error2 distinct error; function bar1() returns int|Error1 {...

Case 1 of the issue is work. But there is an improvement needs to be done where we should suggest the Constant symbol in the resource path param.

@anupama-pathirage I think we have to temporally remove these two samples since we have an AI related tech talk.

We can update the samples accordingly once this [issue](https://github.com/ballerina-guides/ai-samples/issues/70) is addressed.

@praneesha @sm1990 This functionality is missing in the ballerina-in-action section as well.