Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
This report summarizes scanner evidence for James-Yu/LaTeX-Workshop, a TypeScript project with 12,393 GitHub stars. SynthScan examined 1,701,677 lines of code across 4819 source files, recording 75 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 0.1 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 43 finding(s).
Are imports declared and package/API names verified? 28 finding(s).
Are wrappers, guards, and repeated structures necessary? 30 finding(s).
Which changes need focused human review? 75 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 75 distinct pattern matches across 9 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | src/main.ts | 104 | } else if (vscode.window.activeTextEditor && vscode.window.activeTextEditor.document.languageId.toLowerCase() == | CODE |
| CRITICAL | src/core/commands.ts | 111 | if (lw.extra.liveshare.handle.command.syncTeX()) { | CODE |
| CRITICAL | src/core/root.ts | 213 | logger.log(`The active document cannot be used as the root file: ${vscode.window.activeTextEditor.document.uri.t | CODE |
| CRITICAL | src/core/root.ts | 240 | logger.log(`The active document cannot be used as the root file: ${vscode.window.activeTextEditor.document.uri.t | CODE |
| CRITICAL | src/preview/viewer.ts | 64 | clientSet = lw.extra.liveshare.handle.viewer.refresh(pdfUri.fsPath, clientSet) | CODE |
| CRITICAL | src/preview/viewer.ts | 278 | if (lw.extra.liveshare.handle.viewer.reverseSyncTeX(websocket, uri, data)) { | CODE |
| CRITICAL | src/preview/viewer.ts | 316 | if (lw.extra.liveshare.handle.viewer.syncTeX(websocket, data)) { | CODE |
| CRITICAL | src/preview/server.ts | 253 | if (await lw.extra.liveshare.handle.server.request(request, response)) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | dev/editviewer.py | 28 | .replace('''this.removePageBorders = options.removePageBorders || false;''', '''this.removePageBorders = | CODE |
| HIGH⚡ | dev/editviewer.py | 31 | .replace('''this.setTitle(title || url);''', '''// this.setTitle(title || url);''') \ | CODE |
| HIGH⚡ | dev/editviewer.py | 34 | .replace('''(!event.shiftKey || window.chrome || window.opera)) {''', '''(!event.shiftKey || window.chro | CODE |
| HIGH | dev/editviewer.py | 46 | .replace('''hPadding = vPadding = 0;''', '''if (this._scrollMode === ScrollMode.HORIZONTAL || this._spre | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/units/07_outline/bibtex.test.ts | 21 | async function buildFromParsedBibContent() { | CODE |
| LOW | viewer/components/gui.ts | 116 | function registerAutoReloadCheckBox() { | CODE |
| LOW | dev/pyintel/uni.py | 10 | def remove_relation_character(description): | CODE |
| LOW | dev/pyintel/uni.py | 39 | def generate_unimathsymbols_intel(infile, json_out): | CODE |
| LOW | src/main.ts | 167 | function registerLatexWorkshopCommands(extensionContext: vscode.ExtensionContext) { | CODE |
| LOW | src/locate/pair.ts | 115 | function buildMacroPairTreeFromNode(doc: vscode.TextDocument, node: Ast.Node, next: Ast.Node | undefined, parentMacroPai | CODE |
| LOW | src/locate/pair.ts | 258 | function walkThruForSurroundingPairs(pos: vscode.Position, macroPairTree: MacroPair[]): MacroPair[] { | CODE |
| LOW | src/locate/pair.ts | 305 | function walkThruForPairsNextToPosition(pos: vscode.Position, macroPairTree: MacroPair[]): MacroPair[] { | CODE |
| LOW | src/locate/synctex.ts | 187 | function getCurrentEditorCoordinates(): {line: number, column: number, inputFileUri: vscode.Uri} | undefined { | CODE |
| LOW | src/locate/synctex.ts | 609 | function getViewColumnOfVisibleTextEditor(): vscode.ViewColumn | undefined { | CODE |
| LOW | src/locate/synctex.ts | 663 | function getColumnBySurroundingText(line: string, textBeforeSelectionFull: string, textAfterSelectionFull: string) { | CODE |
| LOW | src/lint/latex-code-actions.ts | 151 | function replaceWhitespaceOnLineBefore(document: vscode.TextDocument, position: vscode.Position, replaceWith: string) { | CODE |
| LOW | src/lint/latex-code-actions.ts | 171 | function replaceRangeWithRepeatedString(document: vscode.TextDocument, range: vscode.Range, replacementString: string) { | CODE |
| LOW | src/lint/latex-code-actions.ts | 175 | function replaceMathDelimitersInRange(document: vscode.TextDocument, range: vscode.Range, oldDelim: '$' | '$$', startDel | CODE |
| LOW | src/core/file.ts | 178 | function hasLaTeXClassPackageLangId(langId: string): boolean { | CODE |
| LOW | src/parse/find.ts | 100 | function getFirstRememberedSubstring(s: string, pat: RegExp): string { | CODE |
| LOW | src/completion/completer/completerutils.ts | 55 | export function filterNonLetterSuggestions(suggestions: CompletionItem[], typedText: string, pos: vscode.Position): Comp | CODE |
| LOW | src/utils/utils.ts | 296 | export function replaceArgumentPlaceholders(rootFile: string, tmpDir: string): (arg: string) => string { | CODE |
| LOW | src/utils/logger.ts | 187 | function showErrorMessageWithCompilerLogButton(message: string) { | CODE |
| LOW | src/utils/logger.ts | 205 | function showErrorMessageWithExtensionLogButton(message: string) { | CODE |
| LOW | src/language/selection.ts | 60 | function nodeStackToSelectionRange(stack: Ast.Node[]): vscode.SelectionRange { | CODE |
| LOW | src/compile/build.ts | 56 | export function isFileExcludedFromBuildOnSave(filePath: string): boolean { | CODE |
| LOW | src/outline/structure.ts | 90 | function getCachedDataRootFileName(sections: TeXElement[]): string | undefined { | CODE |
| LOW | src/preview/viewer.ts | 406 | function showInvisibleWebviewPanel(pdfUri: vscode.Uri): boolean { | CODE |
| LOW | src/preview/server.ts | 138 | function getConfiguredExternalOrigin(): string | undefined { | CODE |
| LOW | src/extras/liveshare.ts | 301 | function handleViewerReverseSyncTeX(websocket: ws, uri: vscode.Uri, data: Extract<ClientRequest, { type: 'reverse_syncte | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/codeql-analysis.yml | 1 | # For most projects, this workflow file will not need changing; you simply need | COMMENT |
| LOW | .github/workflows/codeql-analysis.yml | 61 | # https://git.io/JvXDl | COMMENT |
| LOW | dev/latex3command.py | 101 | COMMENT | |
| LOW | dev/pyintel/parse_tlpdb.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | dev/pyintel/parse_tlpdb.py | 21 | # from this software without specific prior written permission. | COMMENT |
| LOW | src/locate/synctex.ts | 141 | * | COMMENT |
| LOW | src/locate/synctex.ts | 161 | // const pos = line.indexOf(':') | COMMENT |
| LOW | src/locate/synctex.ts | 421 | // command = path.resolve(lw.extensionRoot, './scripts/synctex.bat') | COMMENT |
| LOW | src/locate/synctex.ts | 441 | // proc.stderr.on('data', newStderr => { | COMMENT |
| LOW | src/locate/synctex.ts | 481 | /** | COMMENT |
| LOW | src/utils/utils.ts | 201 | // } | COMMENT |
| LOW | src/language/folding.ts | 141 | const opStack: { keyword: string, index: number }[] = [] | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | dev/packages/zebra-goodies.json | 80 | "name": "placeholder", | CODE |
| LOW | dev/packages/zebra-goodies.json | 87 | "name": "placeholder", | CODE |
| LOW | dev/packages/minted.json | 299 | "placeholder", | CODE |
| LOW | dev/packages/class-pagelayout.json | 441 | "name": "placeholder", | CODE |
| LOW | dev/packages/class-pagelayout.json | 527 | "placeholder", | CODE |
| LOW | dev/packages/tcolorboxlibraryposter.json | 145 | "placeholder" | CODE |
| LOW | data/packagenames.json | 1409 | "detail": "A Polish version of “lorem ipsum…” in the form of a LaTeX package", | CODE |
| LOW | data/packagenames.json | 6714 | "detail": "Easy access to the Lorem Ipsum dummy text", | CODE |
| LOW | data/packages/minted.json | 299 | "placeholder", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | dev/latex3command.py | 8 | CODE | |
| LOW | dev/latex3command.py | 10 | CODE | |
| LOW | dev/latex3command.py | 11 | CODE | |
| LOW | dev/pyintel/__init__.py | 1 | CODE | |
| LOW | dev/pyintel/__init__.py | 2 | CODE | |
| LOW | dev/pyintel/__init__.py | 3 | CODE | |
| LOW | dev/pyintel/parse_tlpdb.py | 50 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | dev/unimathsymbols.py | 11 | except Exception: | CODE |
| LOW | dev/pyintel/parse_tlpdb.py | 323 | except Exception as e: | CODE |
| LOW | dev/pyintel/parse_tlpdb.py | 341 | except Exception as e: | CODE |
| LOW | dev/pyintel/parse_tlpdb.py | 425 | except Exception as exc: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | dev/pyintel/pkgcommand.py | 209 | CODE | |
| LOW | dev/pyintel/ctanpkg.py | 76 | CODE | |
| LOW | dev/pyintel/parse_tlpdb.py | 147 | CODE | |
| LOW | dev/pyintel/parse_tlpdb.py | 207 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/completion/completer/macro.ts | 21 | function getData() { return data } | CODE |