razor icon indicating copy to clipboard operation
razor copied to clipboard

Creating a razor file on a brand new project can put the system in a bad state

Open ryanbrandenburg opened this issue 3 years ago • 0 comments

  1. In the integration tests InitializeAsync step, instead of opening the Index.razor file as the first step create a new file with the same contents as it.
  2. This will cause the Integration tests to flakily fail while waiting for SemanticTokens.

What's happening here is that when you create the new file as the first interaction with a razor project it MAY enter a bad state where your new file is in the "Misc" project instead of the "real" project. Since the Misc Project doesn't import any TagHelpers almost all functionality will be broken.

We need to figure out a way to either evict the file from the Misc project and back into the real one or to prevent it from ever entering the misc project in the first place.

ryanbrandenburg avatar Oct 21 '22 20:10 ryanbrandenburg