Closed minestarks closed 3 days ago
Hmmm, broke the integration test since we now won't return code lenses if there are syntax errors elsewhere in the code! I'm going to have to update the integration test to match the new expectation. Putting back to draft.
Oh that's an annoying lint -- it thinks EntryPoint
is Rust. https://github.com/microsoft/qsharp/actions/runs/9604910275/job/26491428428?pr=1652#step:5:329
With #1584 , the
@EntryPoint()
attribute is no longer required if the entry callable is namedMain
. But the code lenses are still looking for the attribute.With this fix, instead of looking for the
@EntryPoint()
attribute, we parse the entry expression. This expression would have been generated by a prior HIR pass. https://github.com/microsoft/qsharp/blob/54586a6bb9d91f21cbed1cbc5359a7a8ae43db64/compiler/qsc_passes/src/entry_point.rs#L44