cursive icon indicating copy to clipboard operation
cursive copied to clipboard

"Require Namespace" quick-fix for an unknown protocol instead of "Import Class"

Open metametadata opened this issue 1 year ago • 0 comments

I use protocols a lot, e.g. reify them in tests. The quick-fix is incorrect so I often have to manually edit :require blocks to define aliases.

Steps

  1. Type the protocol name with not yet required namespace alias.
  2. Show quick-fixes.

Actual

It suggests "Import class":

Screenshot 2024-07-19 at 13 00 40

Expected

It suggests "Require Namespace".

metametadata avatar Jul 19 '24 10:07 metametadata