tecosaur / LaTeX-Utilities

An add-on to LaTeX Workshop that provides some features that go beyond the bare essentials
MIT License
495 stars 30 forks source link

liveReformat doesn't work #362

Closed huhaoo closed 2 years ago

huhaoo commented 2 years ago

Bug Report

Disable all the other extensions except for LaTeX Workshop and LaTeX Utilities, and check that you still see this issue.

You still see this issue?: Yes

Describe the bug

The live reformat doesn't work while I use the setting below:

"latex-utilities.liveReformat.enabled": true

To Reproduce

Steps to reproduce the behaviour:

  1. Type $$ then type 1//2 between them.
  2. It doesn't work, still $1//2$

Expected behaviour

It might be $\frac{1}{2}$

Logs

Please paste the whole log messages here, not parts of ones. It is very important to identify problems. If you think the logs are unrelated, please say so.

LaTeX Workshop Output ``` [17:28:26] Current workspace folders: ["file:///c:/Users/hh826/Documents/code","file:///c:/Users/hh826/OneDrive/Documents/THU-files"] [17:28:26] Current workspace folders: ["file:///c:/Users/hh826/Documents/code","file:///c:/Users/hh826/OneDrive/Documents/THU-files"] [17:28:26] Found root file from active editor: c:\Users\hh826\OneDrive\Documents\THU-files\2022Fall\Intro_to_CS\Homework\1\main.tex [17:28:27] Found root file from active editor: c:\Users\hh826\OneDrive\Documents\THU-files\2022Fall\Intro_to_CS\Homework\1\main.tex [17:28:27] Keep using the same root file: c:\Users\hh826\OneDrive\Documents\THU-files\2022Fall\Intro_to_CS\Homework\1\main.tex [17:28:27] Keep using the same root file: c:\Users\hh826\OneDrive\Documents\THU-files\2022Fall\Intro_to_CS\Homework\1\main.tex ```
LaTeX Utilities Output ``` [17:28:26] onDidChangeActiveTextEditor_tex_wordcounter [17:28:27] TeXCount output: 26+5+0 (2/0/11/1) File: main.tex [17:28:36] onDidChangeTextDocument [17:28:36] onDidChangeTextDocument [17:28:36] onDidChangeTextDocument [17:28:39] onDidChangeTextDocument [17:28:39] onDidChangeTextDocument [17:28:39] onDidChangeTextDocument [17:28:40] onDidChangeTextDocument [17:28:40] onDidChangeTextDocument [17:28:40] onDidChangeTextDocument [17:28:40] onDidChangeTextDocument [17:28:44] onDidChangeActiveTextEditor_tex_wordcounter [17:28:56] onDidChangeActiveTextEditor_tex_wordcounter [17:28:57] TeXCount output: 26+5+0 (2/0/11/1) File: main.tex [17:29:09] onDidChangeActiveTextEditor_tex_wordcounter ```
Developer Tools Console ``` I can't find it ```

Desktop

Additional context

Add any other context about the problem here.

leoleoasd commented 2 years ago

live templates don't work in math mode quoted by $. Try \( \) instead

leoleoasd commented 2 years ago

dup with #359