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
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"
isfalse
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 toyes{$1}|
, with|
denoting the position of the cursor. In the same example but withtriggerWhenComplete": 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 suspiciousDesktop