DupSelection icon indicating copy to clipboard operation
DupSelection copied to clipboard

Visual Studio 2022

Open urlloader opened this issue 2 years ago • 5 comments

Hi, any change we can get this extension to support visual studio 2022?

urlloader avatar May 10 '22 23:05 urlloader

It's really needed.

onolox avatar Jul 31 '22 21:07 onolox

New versions of Visual Studio now have an Edit.Duplicate command, that to my understanding does very much the same thing as my extension. Is there a reason you prefer this extension?

ctlajoie avatar Jul 31 '22 23:07 ctlajoie

If I have a selection like this: 182042743-40a4bf8f-65e6-4026-a581-68aa22c16497

Your plugin duplicate the entire 3 lines. The VS command only duplicates the selection. Other plugins do the same as the VS. Because of this your plugin is still needed.

onolox avatar Aug 01 '22 03:08 onolox

I will look into building this for VS2022

ctlajoie avatar Aug 02 '22 05:08 ctlajoie

I was able to get the extension to build for VS2022 but something isn't working quite right. The extension installs into VS2022 with no errors. Binding the extension to a keyboard shortcut also works. However it throws an error when I invoke the command. This might be an easy fix, but considering the functionality provided by this extension is for the most part already available in newer versions of VS, I would prefer not to spend more time on it.

I pushed my code changes to a branch named vs2022. If someone else wants to have a crack at it and submit a PR, I would be happy to accept it and publish a new version if everything works. Keep in mind that the extension must continue to work for older VS versions.

ctlajoie avatar Aug 07 '22 22:08 ctlajoie