Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snippets with "triggerWhenComplete": false do not behave as expected #369

Open
georg-ch opened this issue Nov 10, 2022 · 0 comments
Open
Assignees
Labels
🐛 Bug Something isn't working

Comments

@georg-ch
Copy link

georg-ch commented Nov 10, 2022

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

When using live snippets, with snippets where "triggerWhenComplete" is false only does not allow to set the cursor at a desired position - instead the $$1 etc. show up in the text.

To Reproduce

Steps to reproduce the behaviour:

Minimal snippet:

{ "prefix": "test$", "body": "yes{$$1}", "mode": "any", "triggerWhenComplete": false }
expands to yes{$1}|, with | denoting the position of the cursor. In the same example but with triggerWhenComplete": true, the snippet behaves as expected.

Expected behaviour

Expansion to yes{|}.

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
[23:30:14] Current workspace folders: undefined
[23:30:14] Found root file from active editor: /Users/georg/text.tex
[23:30:14] Keep using the same root file: /Users/georg/text.tex
[23:30:19] onDidSaveTextDocument triggered: file:///Users/georg/text.tex
[23:30:19] File watcher - file changed: /Users/georg/text.tex
[23:30:19] Parsing a file and its subfiles: /Users/georg/text.tex
[23:30:19] Checking for duplicate labels: /Users/georg/text.tex.
[23:30:19] Auto build started detecting the change of a file: /Users/georg/text.tex
[23:30:19] BUILD command invoked.
[23:30:19] The document of the active editor: output:extension-output-tecosaur.latex-utilities-%231-LaTeX Utilities
[23:30:19] The languageId of the document: Log
[23:30:19] Building root file: /Users/georg/text.tex
[23:30:19] Build root file /Users/georg/text.tex
[23:30:19] outDir: /Users/georg
[23:30:19] Recipe step 1: latexmk
[23:30:19] Recipe step 1 args: ["-synctex=1","-interaction=nonstopmode","-file-line-error","-pdf","-outdir=/Users/georg","/Users/georg/text"]
[23:30:19] Recipe step env: {}
[23:30:19] Recipe step root file: /Users/georg/text.tex
[23:30:19] cwd: /Users/georg
[23:30:19] LaTeX build process spawned. PID: 4084.
[23:30:19] LaTeX log parsed with 0 messages.
[23:30:19] A step in recipe finished. PID: 4084.
[23:30:19] Successfully built /Users/georg/text.tex.
[23:30:19] Call refreshExistingViewer: {"sourceFile":"/Users/georg/text.tex"}
[23:30:19] Refresh PDF viewer: file:///Users/georg/text.pdf
[23:30:19] Parse fls file.
[23:30:19] Fls file found: /Users/georg/text.fls
[23:30:20] Parse aux file: /Users/georg/text.aux
[23:30:20] Preview PDF file: file:///Users/georg/text.pdf
[23:30:20] Handle data type: loaded
[23:30:59] Current workspace folders: undefined
[23:30:59] Found root file from active editor: /Users/georg/text.tex
[23:30:59] Keep using the same root file: /Users/georg/text.tex
LaTeX Utilities Output
[23:30:19] onDidChangeTextDocument
[23:30:19] onDidChangeTextDocument
[23:30:19] onDidSaveTextDocument_tex_wordcounter
Developer Tools Console

I don't see anything suspicious

Desktop

  • OS: MacOS /
  • VS Code version: 1.73.0
  • Extension version: 0.4.8
@leoleoasd leoleoasd added the 🐛 Bug Something isn't working label Apr 2, 2023
@leoleoasd leoleoasd self-assigned this Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants