You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since paste uses a destination just passing a range to the editor isn't really enough for an ide implementation to do something properly.
We should probably have it set up so if ide.capabilities.clipboardPaste is undefined we instead just use ide.clipboard.readText() and perform a single edit instead of setting and reverting selections.
The text was updated successfully, but these errors were encountered:
TextEditor
specifies thatclipboardPaste
can have a range argumentcursorless/packages/common/src/types/TextEditor.ts
Line 154 in e87b6e3
But the only place we actually call this we set selection beforehand and don't pass an argument
cursorless/packages/cursorless-engine/src/actions/PasteFromClipboard.ts
Line 46 in e87b6e3
Since paste uses a destination just passing a range to the editor isn't really enough for an ide implementation to do something properly.
We should probably have it set up so if
ide.capabilities.clipboardPaste
is undefined we instead just useide.clipboard.readText()
and perform a single edit instead of setting and reverting selections.The text was updated successfully, but these errors were encountered: