James-Yu / LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
MIT License
10.55k stars 522 forks source link

Regardless of the value set for “latex-workshop.view.pdf.viewer”, Preview.app will open on macOS after Auto Build #4171

Closed deemoe404 closed 6 months ago

deemoe404 commented 6 months ago

Please fill the following fields with a star (*) and provide as much related information as possible.

Pre-checks*

Please change the following [ ] to [x] for confirmation.

  • [x] The issue has not been reported in this repository.
  • [x] The issue remains after disabling all other extensions and restarting Visual Studio Code.
  • [x] The FAQ cannot address the issue.
  • [x] The issue is not related to compiling a document, or the document can be successfully compiled in the OS terminal but not in Visual Studio Code with this extension.

Environment*

Please write exact version numbers instead of descriptors such as latest.

  • Operating System: macOS 14.3.1 (23D60)
  • Visual Studio Code Version: 1.86.2 (Universal)
  • LaTeX Workshop Version: v9.18.2
  • TeX Distribution Version: Mac TeX 2023

The Issue*

Please briefly describe the issue you come across.

  • The configuration file was working as expected before, but after a few months, the issue started occurring when using it today.
  • I have tried various values for the latex-workshop.view.pdf.viewer parameter and even deleted the latex-workshop.view.pdf.viewer key in settings.json, but after Auto Build, macOS's built-in Preview.app still opens to display the PDF file.
  • (However, if the preview tab in VS Code is opened in advance, it automatically updates after Auto Build. I just don't understand why Preview.app keeps opening automatically.)

Reproduction Steps

Please list out the steps to reproduce your bug. Include relevant environmental variables or any other configuration.

  1. "latex-workshop.latex.autoBuild.run": "onFileChange"
  2. "latex-workshop.view.pdf.viewer": "tab"

Expected Behavior

What were you expecting to see? Include any relevant examples or documentation links.

  • Preview.app should not be opening.

Logs

LaTeX Workshop Output*

Please paste the whole log messages below, not parts of ones. The log should start with New log placeholder %WS1% registered.

[13:48:29.424][Logger] New log placeholder %WS1% registered for /Users/****/Documents/****/Final/Paper .
[13:48:29.424][Extension] Initializing LaTeX Workshop.
[13:48:29.500][Build][Recipe] Set $LATEXWORKSHOP_DOCKER_LATEX: ""
[13:48:29.518][Server] Creating LaTeX Workshop http and websocket server.
[13:48:29.559][Format][Bib] Bibtex format config: {"tab":"  ","case":"lowercase","left":"{","right":"}","trailingComma":false,"sort":["key"],"alignOnEqual":true,"sortFields":false,"fieldsOrder":[],"firstEntries":["string","xdata"]}
[13:48:29.602][Server] Server successfully started: {"address":"127.0.0.1","family":"IPv4","port":58123} .
[13:48:29.606][Extension] Extension root: /Users/****/.vscode/extensions/james-yu.latex-workshop-9.18.2
[13:48:29.606][Extension] $PATH: /opt/homebrew/Caskroom/miniconda/base/bin:/opt/homebrew/Caskroom/miniconda/base/condabin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/Applications/VMware Fusion Tech Preview.app/Contents/Public:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands
[13:48:29.606][Extension] $SHELL: /bin/zsh
[13:48:29.606][Extension] $LANG: undefined
[13:48:29.606][Extension] $LC_ALL: undefined
[13:48:29.606][Extension] process.platform: darwin
[13:48:29.606][Extension] process.arch: arm64
[13:48:29.606][Extension] vscode.env.appName: Visual Studio Code
[13:48:29.606][Extension] vscode.env.remoteName: undefined
[13:48:29.606][Extension] vscode.env.uiKind: 1
[13:48:29.622][Extension] Trigger characters for intellisense of LaTeX documents: ["\\",",","{"]
[13:48:29.623][Root] Current workspace folders: ["file://%WS1%"]
[13:48:29.623][Extension] LaTeX Workshop initialized.
[13:48:29.623][Root] The active document cannot be used as the root file: untitled:Untitled-1
[13:48:29.623][Root] Current workspaceRootDir: file://%WS1% .
[13:48:29.626][Server] valdOrigin is http://127.0.0.1:58123
[13:48:29.659][Viewer][Panel] Internal PDF viewer at http://127.0.0.1:58123/viewer.html?file=pdf..ZmlsZSUzQSUyRiUyRiUyRlVzZXJzJTJGeWFpb25lJTJGRG9jdW1lbnRzJTJGVUVTVEMlMkZGaW5hbCUyRlBhcGVyJTJGbWFpbi5wZGY .
[13:48:29.659][Cacher][Watcher] Watched %WS1%/main.pdf with a new watcher on %WS1% .
[13:48:29.659][Event] FILE_WATCHED: "%WS1%/main.pdf"
[13:48:29.742][Root] Found files that might be root, choose the first one: %WS1%/pic/logo.tex,%WS1%/pic/figure.tex,%WS1%/slides/masterThesisSlides.tex,%WS1%/main.tex .
[13:48:29.742][Root] Root file changed: from %WS1%/pic/logo.tex to %WS1%/pic/logo.tex, langID latex . Refresh dependencies
[13:48:29.742][Event] ROOT_FILE_CHANGED: "%WS1%/pic/logo.tex"
[13:48:29.742][Cacher][Watcher] Reset.
[13:48:29.742][Cacher][Watcher] Reset.
[13:48:29.742][Cacher][Watcher] Reset.
[13:48:29.746][Cacher] Adding %WS1%/pic/logo.tex .
[13:48:29.746][Cacher][Watcher] Watched %WS1%/pic/logo.tex with a new watcher on %WS1%/pic .
[13:48:29.746][Event] FILE_WATCHED: "%WS1%/pic/logo.tex"
[13:48:29.747][Cacher] Caching %WS1%/pic/logo.tex .
[13:48:29.747][Cacher] Updated inputs of %WS1%/pic/logo.tex .
[13:48:29.747][Cacher] Parse LaTeX AST: %WS1%/pic/logo.tex .
[13:48:29.747][Event] ROOT_FILE_SEARCHED
[13:48:29.779][Cacher] Parsed LaTeX AST: %WS1%/pic/logo.tex .
[13:48:29.780][File] Calling kpsewhich to resolve article.cls .
[13:48:29.954][Cacher] Updated elements in 174.83 ms: %WS1%/pic/logo.tex .
[13:48:29.955][Event] FILE_PARSED: "%WS1%/pic/logo.tex"
[13:48:29.955][Structure] Structure force updated with 0 root sections for %WS1%/pic/logo.tex .
[13:48:29.956][Event] STRUCTURE_UPDATED
[13:48:30.819][Viewer] Handle data type: open
[13:48:30.863][Server] Preview PDF file: file://%WS1%/main.pdf
[13:48:31.031][Viewer] Handle data type: loaded
[13:48:31.031][Event] VIEWER_PAGE_LOADED
[13:48:32.732][Root] Current workspace folders: ["file://%WS1%"]
[13:48:32.733][Root] Found root file from active editor: %WS1%/main.tex
[13:48:32.733][Root] Root file changed: from %WS1%/main.tex to %WS1%/main.tex, langID latex . Refresh dependencies
[13:48:32.733][Event] ROOT_FILE_CHANGED: "%WS1%/main.tex"
[13:48:32.733][Cacher][Watcher] Reset.
[13:48:32.733][Cacher][Watcher] Reset.
[13:48:32.733][Cacher][Watcher] Reset.
[13:48:32.734][Cacher] Adding %WS1%/main.tex .
[13:48:32.734][Cacher][Watcher] Watched %WS1%/main.tex with a new watcher on %WS1% .
[13:48:32.734][Event] FILE_WATCHED: "%WS1%/main.tex"
[13:48:32.734][Cacher] Caching %WS1%/main.tex .
[13:48:32.734][Cacher] Updated inputs of %WS1%/main.tex .
[13:48:32.734][Cacher] Parse LaTeX AST: %WS1%/main.tex .
[13:48:32.734][Event] ROOT_FILE_SEARCHED
[13:48:32.735][Event] STRUCTURE_UPDATED
[13:48:32.757][Cacher] Parsed LaTeX AST: %WS1%/main.tex .
[13:48:32.758][File] Calling kpsewhich to resolve thesis-****.cls .
[13:48:32.862][Cacher] Updated elements in 104.14 ms: %WS1%/main.tex .
[13:48:32.862][Event] FILE_PARSED: "%WS1%/main.tex"
[13:48:32.862][Cacher] Parsing .fls %WS1%/main.fls .
[13:48:32.864][Cacher] Adding %WS1%/thesis-****.cls .
[13:48:32.864][Cacher][Watcher] Watched %WS1%/thesis-****.cls .
[13:48:32.864][Event] FILE_WATCHED: "%WS1%/thesis-****.cls"
[13:48:32.875][Cacher] Adding %WS1%/pic/bachelor_font.pdf .
[13:48:32.875][Cacher][Watcher] Watched %WS1%/pic/bachelor_font.pdf with a new watcher on %WS1%/pic .
[13:48:32.875][Event] FILE_WATCHED: "%WS1%/pic/bachelor_font.pdf"
[13:48:32.875][Cacher] Adding %WS1%/logo.pdf .
[13:48:32.875][Cacher][Watcher] Watched %WS1%/logo.pdf .
[13:48:32.875][Event] FILE_WATCHED: "%WS1%/logo.pdf"
[13:48:32.876][Cacher] Adding %WS1%/main.acr .
[13:48:32.876][Cacher][Watcher] Watched %WS1%/main.acr .
[13:48:32.876][Event] FILE_WATCHED: "%WS1%/main.acr"
[13:48:32.876][Cacher] Adding %WS1%/main.gls .
[13:48:32.876][Cacher][Watcher] Watched %WS1%/main.gls .
[13:48:32.876][Event] FILE_WATCHED: "%WS1%/main.gls"
[13:48:32.877][Cacher] Adding %WS1%/pic/figure.pdf .
[13:48:32.877][Cacher][Watcher] Watched %WS1%/pic/figure.pdf .
[13:48:32.877][Event] FILE_WATCHED: "%WS1%/pic/figure.pdf"
[13:48:32.877][Cacher] Found .aux %WS1%/main.tex from .fls %WS1%/main.fls , parsing.
[13:48:32.877][Cacher] Parsed .aux %WS1%/main.tex .
[13:48:32.877][Cacher] Found .aux %WS1%/main.tex from .fls %WS1%/main.fls , parsing.
[13:48:32.878][Cacher] Found .bib %WS1%/reference.bib from .aux %WS1%/main.aux .
[13:48:32.879][Intelli][Citation] Parsing .bib entries from %WS1%/reference.bib
[13:48:32.880][Intelli][Citation] Parse BibTeX AST from %WS1%/reference.bib .
[13:48:32.880][Cacher][Watcher] Watched %WS1%/reference.bib with a new watcher on %WS1% .
[13:48:32.880][Event] FILE_WATCHED: "%WS1%/reference.bib"
[13:48:32.880][Cacher] Parsed .aux %WS1%/main.tex .
[13:48:32.880][Cacher] Parsed .fls %WS1%/main.fls .
[13:48:32.882][Structure] Structure force updated with 1 root sections for %WS1%/main.tex .
[13:48:32.882][Event] STRUCTURE_UPDATED
[13:48:32.888][Intelli][Citation] Parsed 9 bib entries from %WS1%/reference.bib .
[13:48:32.888][Event] FILE_PARSED: "%WS1%/reference.bib"
[13:48:32.888][Structure] Structure force updated with 5 root sections for %WS1%/main.tex .
[13:48:32.888][Event] STRUCTURE_UPDATED
[13:48:42.188][Extension] onDidSaveTextDocument triggered: file://%WS1%/main.tex
[13:48:42.280][Cacher][Watcher] "change" emitted on %WS1%/main.tex.
[13:48:42.280][Cacher] Caching %WS1%/main.tex .
[13:48:42.281][Cacher] Updated inputs of %WS1%/main.tex .
[13:48:42.281][Cacher] Parse LaTeX AST: %WS1%/main.tex .
[13:48:42.281][Build] Auto build starteddetecting the change of a file: %WS1%/main.tex .
[13:48:42.282][Event] AUTO_BUILD_INITIATED: {"type":"onFileChange","file":"%WS1%/main.tex"}
[13:48:42.282][Build] The document of the active editor: file://%WS1%/main.tex
[13:48:42.282][Build] The languageId of the document: latex
[13:48:42.282][Build] Building root file: %WS1%/main.tex
[13:48:42.282][Build][Recipe] Build root file %WS1%/main.tex
[13:48:42.282][Event] FILE_CHANGED: "%WS1%/main.tex"
[13:48:42.284][Build][Recipe] Preparing to run recipe: latexmk.
[13:48:42.285][Build][Recipe] Prepared 1 tools.
[13:48:42.299][Build][Recipe] outDir: %WS1% .
[13:48:42.300][Build] Recipe step 1 The command is latexmk:["-synctex=1","-interaction=nonstopmode","-file-line-error","-pdf","-outdir=%WS1%","%WS1%/main"].
[13:48:42.300][Build] env: {}
[13:48:42.300][Build] root: %WS1%/main.tex
[13:48:42.300][Build] cwd: %WS1%
[13:48:42.303][Build] LaTeX build process spawned with PID 51653.
[13:48:42.310][Cacher] Parsed LaTeX AST: %WS1%/main.tex .
[13:48:42.310][File] Calling kpsewhich to resolve thesis-****.cls .
[13:48:42.411][Cacher] Updated elements in 100.66 ms: %WS1%/main.tex .
[13:48:42.411][Event] FILE_PARSED: "%WS1%/main.tex"
[13:48:42.412][Structure] Structure force updated with 5 root sections for %WS1%/main.tex .
[13:48:42.412][Event] STRUCTURE_UPDATED
[13:48:44.127][Cacher][Watcher] "change" emitted on %WS1%/main.gls after polling for 252 ms.
[13:48:44.127][Build] Auto build starteddetecting the change of a file: %WS1%/main.gls .
[13:48:44.127][Event] AUTO_BUILD_INITIATED: {"type":"onFileChange","file":"%WS1%/main.gls"}
[13:48:44.127][Build] The document of the active editor: file://%WS1%/main.tex
[13:48:44.127][Build] The languageId of the document: latex
[13:48:44.127][Build] Building root file: %WS1%/main.tex
[13:48:44.128][Build][Recipe] Build root file %WS1%/main.tex
[13:48:44.128][Event] FILE_CHANGED: "%WS1%/main.gls"
[13:48:44.129][Build][Recipe] Preparing to run recipe: latexmk.
[13:48:44.129][Build][Recipe] Prepared 1 tools.
[13:48:44.129][Build][Recipe] outDir: %WS1% .
[13:48:44.222][Cacher][Watcher] "change" emitted on %WS1%/main.acr after polling for 249 ms.
[13:48:44.222][Build] Auto build starteddetecting the change of a file: %WS1%/main.acr .
[13:48:44.222][Event] AUTO_BUILD_INITIATED: {"type":"onFileChange","file":"%WS1%/main.acr"}
[13:48:44.222][Build] The document of the active editor: file://%WS1%/main.tex
[13:48:44.222][Build] The languageId of the document: latex
[13:48:44.222][Build] Building root file: %WS1%/main.tex
[13:48:44.222][Build][Recipe] Build root file %WS1%/main.tex
[13:48:44.222][Event] FILE_CHANGED: "%WS1%/main.acr"
[13:48:44.223][Build][Recipe] Preparing to run recipe: latexmk.
[13:48:44.223][Build][Recipe] Prepared 1 tools.
[13:48:44.223][Build][Recipe] outDir: %WS1% .
[13:48:44.773][Parser][TexLog] Logged 9 messages.
[13:48:44.773][Build] Finished a step in recipe with PID 51653.
[13:48:44.774][Build] Successfully built %WS1%/main.tex .
[13:48:44.774][Event] BUILD_DONE
[13:48:44.774][Viewer] Call refreshExistingViewer: "%WS1%/main.pdf" .
[13:48:44.774][Viewer] Refresh PDF viewer: %WS1%/main.pdf
[13:48:44.774][Cacher] Parsing .fls %WS1%/main.fls .
[13:48:44.784][Cacher] Found .aux %WS1%/main.tex from .fls %WS1%/main.fls , parsing.
[13:48:44.785][Cacher] Parsed .aux %WS1%/main.tex .
[13:48:44.785][Cacher] Found .aux %WS1%/main.tex from .fls %WS1%/main.fls , parsing.
[13:48:44.785][Cacher] Found .bib %WS1%/reference.bib from .aux %WS1%/main.aux .
[13:48:44.786][Cacher] Parsed .aux %WS1%/main.tex .
[13:48:44.786][Cacher] Parsed .fls %WS1%/main.fls .
[13:48:44.786][Build] Recipe step 1 The command is latexmk:["-synctex=1","-interaction=nonstopmode","-file-line-error","-pdf","-outdir=%WS1%","%WS1%/main"].
[13:48:44.786][Build] env: {}
[13:48:44.787][Build] root: %WS1%/main.tex
[13:48:44.787][Build] cwd: %WS1%
[13:48:44.789][Build] LaTeX build process spawned with PID 51696.
[13:48:44.795][Server] Preview PDF file: file://%WS1%/main.pdf
[13:48:44.927][Viewer] Handle data type: loaded
[13:48:44.928][Event] VIEWER_PAGE_LOADED
[13:48:44.943][Build] Finished a step in recipe with PID 51696.
[13:48:44.944][Build] Successfully built %WS1%/main.tex .
[13:48:44.944][Event] BUILD_DONE
[13:48:44.944][Viewer] Call refreshExistingViewer: "%WS1%/main.pdf" .
[13:48:44.944][Viewer] Refresh PDF viewer: %WS1%/main.pdf
[13:48:44.944][Cacher] Parsing .fls %WS1%/main.fls .
[13:48:44.952][Cacher] Found .aux %WS1%/main.tex from .fls %WS1%/main.fls , parsing.
[13:48:44.952][Cacher] Parsed .aux %WS1%/main.tex .
[13:48:44.952][Cacher] Found .aux %WS1%/main.tex from .fls %WS1%/main.fls , parsing.
[13:48:44.953][Cacher] Parsed .aux %WS1%/main.tex .
[13:48:44.953][Cacher] Parsed .fls %WS1%/main.fls .
[13:48:44.953][Build] Recipe step 1 The command is latexmk:["-synctex=1","-interaction=nonstopmode","-file-line-error","-pdf","-outdir=%WS1%","%WS1%/main"].
[13:48:44.953][Build] env: {}
[13:48:44.953][Build] root: %WS1%/main.tex
[13:48:44.953][Build] cwd: %WS1%
[13:48:44.955][Build] LaTeX build process spawned with PID 51712.
[13:48:44.961][Server] Preview PDF file: file://%WS1%/main.pdf
[13:48:45.070][Viewer] Handle data type: loaded
[13:48:45.070][Event] VIEWER_PAGE_LOADED
[13:48:45.096][Build] Finished a step in recipe with PID 51712.
[13:48:45.096][Build] Successfully built %WS1%/main.tex .
[13:48:45.097][Event] BUILD_DONE
[13:48:45.097][Viewer] Call refreshExistingViewer: "%WS1%/main.pdf" .
[13:48:45.097][Viewer] Refresh PDF viewer: %WS1%/main.pdf
[13:48:45.097][Cacher] Parsing .fls %WS1%/main.fls .
[13:48:45.105][Cacher] Found .aux %WS1%/main.tex from .fls %WS1%/main.fls , parsing.
[13:48:45.106][Cacher] Parsed .aux %WS1%/main.tex .
[13:48:45.106][Cacher] Found .aux %WS1%/main.tex from .fls %WS1%/main.fls , parsing.
[13:48:45.106][Cacher] Parsed .aux %WS1%/main.tex .
[13:48:45.106][Cacher] Parsed .fls %WS1%/main.fls .
[13:48:45.108][Server] Preview PDF file: file://%WS1%/main.pdf
[13:48:45.180][Viewer] Handle data type: loaded
[13:48:45.180][Event] VIEWER_PAGE_LOADED

Developer Tools Console

Please paste the whole log messages below, not parts of ones. This console logs can sometimes be very important in many cases. To access the log, click Help -> Toggle Developer Tools -> Console.

workbench.desktop.main.js:sourcemap:655  INFO Started local extension host with pid 51522.
workbench.desktop.main.js:sourcemap:1899 Overwriting grammar scope name to file mapping for scope text.tex.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/latex/syntaxes/TeX.tmLanguage.json.
New grammar file: file:///Users/****/.vscode/extensions/james-yu.latex-workshop-9.18.2/syntax/TeX.tmLanguage.json
register @ workbench.desktop.main.js:sourcemap:1899
workbench.desktop.main.js:sourcemap:1899 Overwriting grammar scope name to file mapping for scope text.tex.latex.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/latex/syntaxes/LaTeX.tmLanguage.json.
New grammar file: file:///Users/****/.vscode/extensions/james-yu.latex-workshop-9.18.2/syntax/LaTeX.tmLanguage.json
register @ workbench.desktop.main.js:sourcemap:1899
workbench.desktop.main.js:sourcemap:1899 Overwriting grammar scope name to file mapping for scope text.bibtex.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/latex/syntaxes/Bibtex.tmLanguage.json.
New grammar file: file:///Users/****/.vscode/extensions/james-yu.latex-workshop-9.18.2/syntax/Bibtex.tmLanguage.json
register @ workbench.desktop.main.js:sourcemap:1899
workbench.desktop.main.js:sourcemap:1899 Overwriting grammar scope name to file mapping for scope text.tex.markdown_latex_combined.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.
New grammar file: file:///Users/****/.vscode/extensions/james-yu.latex-workshop-9.18.2/syntax/markdown-latex-combined.tmLanguage.json
register @ workbench.desktop.main.js:sourcemap:1899
workbench.desktop.main.js:sourcemap:1899 Overwriting grammar scope name to file mapping for scope source.cpp.embedded.latex.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.
New grammar file: file:///Users/****/.vscode/extensions/james-yu.latex-workshop-9.18.2/syntax/cpp-grammar-bailout.tmLanguage.json
register @ workbench.desktop.main.js:sourcemap:1899
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.tex.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/latex/syntaxes/TeX.tmLanguage.json.
New grammar file: file:///Users/****/.vscode/extensions/james-yu.latex-workshop-9.18.2/syntax/TeX.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.tex.latex.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/latex/syntaxes/LaTeX.tmLanguage.json.
New grammar file: file:///Users/****/.vscode/extensions/james-yu.latex-workshop-9.18.2/syntax/LaTeX.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.bibtex.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/latex/syntaxes/Bibtex.tmLanguage.json.
New grammar file: file:///Users/****/.vscode/extensions/james-yu.latex-workshop-9.18.2/syntax/Bibtex.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.tex.markdown_latex_combined.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.
New grammar file: file:///Users/****/.vscode/extensions/james-yu.latex-workshop-9.18.2/syntax/markdown-latex-combined.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope source.cpp.embedded.latex.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.
New grammar file: file:///Users/****/.vscode/extensions/james-yu.latex-workshop-9.18.2/syntax/cpp-grammar-bailout.tmLanguage.json
register @ TMScopeRegistry.ts:46
workbench.desktop.main.js:sourcemap:149 [Extension Host] vscode-icons is active!
workbench.desktop.main.js:sourcemap:1219 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ workbench.desktop.main.js:sourcemap:1219
workbench.desktop.main.js:sourcemap:655  INFO [perf] Render performance baseline is 16ms
James-Yu commented 6 months ago

This is not related to the extension. Log does not show opening external viewer. You may need to check your system configs.

deemoe404 commented 6 months ago

I have identified the cause of this issue, and I'm leaving the solution here for future reference for those who come across this issue:

The latexmkrc file specified in the latex template provided by my school contains this:

$preview_mode = 1;

Which causes latexmk to open the compiled PDF file after the compilation is complete. Removing it resolves the issue.