Code completion error inside block


(JohnMoshakis) #1

Hi,

I have this piece of code inside an app

          app.UseExceptionHandler('/Home/Error');
          // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
          app.UseHsts();
      end;

      app.UseHttpsRedirection();
      app.UseStaticFiles();
      app.UseCookiePolicy();
      
      //app.

      app.UseMvc(routes ->
      begin
          routes.
          routes.MapRoute('default','{controller=Home}/{action=Index}/{id?}');
      end);

When I try and invoke code completion after routes.

It seems to want to look at code from a few lines above

The code compiles.

if I remove it

app.UseExceptionHandler(’/Home/Error’);

And launch code completion I just get unknown identifier inside completion.

Cheers,
John
MVCWebApi.zip (77.0 KB)


(RemObjects) #2

Thanks, logged as bugs://81759


(RemObjects) #3

bugs://81759 got closed with status fixed.