Open ttoommxx opened 1 year ago
The issue only happens if you start typing \end
with the cursor not aligned with the start of \begin
. Note after typing the {
in \end{
, the lines is de-indented. This behaviour is really weird and I have really no idea what could cause this in the extension. I am really wondering if this might not be a VS Code issue.
That's quite strange, I did try on my home workstation, which is Arch-based, and the problem persists. Did you have a look at the video I uploaded and reproduced that? Apparently that happens even without removing \end{theorem} but just writing a new \end{theorem} again.
On Tuesday, 21 March 2023 at 19:19:53 GMT, Jerome Lelong @.***> wrote:
I cannot reproduce the issue.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
The issue only happens if you start typing
\end
with the cursor not aligned with the start of\begin
. Note after typing the{
in\end{
, the lines is de-indented. This behaviour is really weird and I have really no idea what could cause this in the extension. I am really wondering if this might not be a VS Code issue.
Exactly, that's when it happens, write backslash, the environment get de-indented and then it autocompletes to \end.
I think this is a VS Code issue. I have reported it https://github.com/microsoft/vscode/issues/178075
Couldn't quite tell whether it was the extension or VScode itself, thanks for sorting that out for me! Shall I close the thread then?
We can leave the issue open for now. I will take care of it.
It seems that somehow the issue was fixed on vscode side. I will close this issue for now.
https://github.com/James-Yu/LaTeX-Workshop/assets/4210342/b8cc8926-5701-4511-8dcf-462c63d24e97
I'm still seeing this behavior with \end{itemize}
on v9.17.0
of the extension and VSCode 1.85.1
. The issue as described in https://github.com/microsoft/vscode/issues/178075 seems different than what I'm seeing, but maybe I'm misunderstanding the original issue here... the completion of \end
behaves as though it was completing \begin
, in my case:
https://github.com/James-Yu/LaTeX-Workshop/assets/11131775/3c0107ce-1012-4964-969a-a941039e409d
Is the the same thing, or should I file a different issue to track this?
With VS Code 1.85.1, I can reproduce https://github.com/microsoft/vscode/issues/178075 with all extensions disabled included LW
When activating LW
@James-Yu, I even tried with a clean and fresh profile and only LW and I always face the issue. I am wondering what particular configuration you could have to prevent the issue from popping up on your side.
@jlelong Sorry if I'm hijacking this issue, I'm not sure whether this would be the same issue or a new feature request: Could we also have automatic completion of \end{theorem}
after typing \begin{theorem
? Currently, I can either type theorem
and press tab (but this only works for environments that have already existed during the last build) or start with \begin{theorem
and write everything manually.
@LinqLover It's a different thing.
Pre-checks*
Environment*
The Issue*
Reproduction Steps
Expected Behavior
Logs
LaTeX Workshop Output*
Developer Tools Console
Anything Else?