Please add back "add default namespaces" and "add namespace from assembly" to LP9

I hadn't noticed until now that these options are missing. I used them all the time. Could they be added back?

I had problems with "add namespace from assembly" in the past where the dialogs wouldn't list any but the default namespaces are a must have. If anything, having default namespaces would help a lot.

Comments

  • JoeAlbahari
    edited February 9

    Add namespaces from assembly is now available in 9.7.1.

  • Add default namespaces hasn't been removed. That button appears only if you remove one or more of the defaults.

  • @JoeAlbahari said:
    Add default namespaces hasn't been removed. That button appears only if you remove one or more of the defaults.

    Actually, what I was referring to here was the namespaces to add if you add a certain nuget package, and the option to always add them. I misremembered how that pops up, I thought there was a separate button elsewhere.

    Would it be possible to allow this for regular non-nuget assemblies you add to a script using the "Add (Browse)" button as well? Maybe add the same "add namespaces" option in this dropdown?

  • I could add a link that takes you to the Namespace imports tab that that assembly selected, but adding an 'always add' checkbox here could get confusing.

    Another option is to use the 'Save as snippet' button. That creates the quickest way to add a bunch of assemblies and namespaces without bringing up a dialog.