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
If you have preview mode enabled, window/showDocument cannot be used to open two different documents because the last one will just overlap on top of the first one.
Is this behaviour intentional?
The text was updated successfully, but these errors were encountered:
This is something VS Code decides and is not under the control of the LSP VS Code client lib. I am pretty sure that the same happens when using the VS Code API directly. Have you tried this?
This is something VS Code decides and is not under the control of the LSP VS Code client lib. I am pretty sure that the same happens when using the VS Code API directly. Have you tried this?
No, I haven't. But yes, I presume it is the same when using the VS Code API directly.
I guess my concern is that overlapping one file over the other seems counter to the intent of the window/showDocument request. I want to implement a "show affected files" action but on VS Code that will not work if the user has previews enabled (which from what I understand is the default setting in VS Code) because it will just keep overlapping the next one on top of the other. If we set preview to false on the TextDocumentShowOptions then the problem goes away.
I could also workaround the problem by using a middleware to intercept the request completely. 🤷
If you have preview mode enabled,
window/showDocument
cannot be used to open two different documents because the last one will just overlap on top of the first one.Is this behaviour intentional?
The text was updated successfully, but these errors were encountered: