Skip to content

Commit 7a296d5

Browse files
cklinCopilot
andcommitted
Fix markdownlint negation patterns for fast-glob 3.3.3 compatibility
The @vscode/vsce bump transitively upgrades fast-glob from 3.3.2 to 3.3.3, which changed how negation patterns are resolved against absolute paths (mrmlnc/fast-glob#441). The pattern `echo ___BEGIN___COMMAND_OUTPUT_MARKER___ ; PS1= ; PS2= ; unset HISTFILE ; EC=0 ; echo ___BEGIN___COMMAND_DONE_MARKER___0 ; }*/node_modules/**` no longer works when the include pattern uses `../../` traversal. Fix by matching the negation prefix to the include pattern prefix, i.e. 3.3.3. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 9b718bd commit 7a296d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/ql-vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2047,7 +2047,7 @@
20472047
"format": "prettier --write **/*.{ts,tsx} && eslint . --fix",
20482048
"lint": "eslint . --max-warnings=0",
20492049
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint . --max-warnings=0 --format @microsoft/eslint-formatter-sarif --output-file=build/eslint.sarif",
2050-
"lint:markdown": "markdownlint-cli2 \"../../**/*.{md,mdx}\" \"!**/node_modules/**\" \"!**/.vscode-test/**\" \"!**/build/cli/v*/**\"",
2050+
"lint:markdown": "markdownlint-cli2 \"../../**/*.{md,mdx}\" \"!../../**/node_modules/**\" \"!../../**/.vscode-test/**\" \"!../../**/build/cli/v*/**\"",
20512051
"find-deadcode": "vite-node scripts/find-deadcode.ts",
20522052
"format-staged": "lint-staged",
20532053
"storybook": "storybook dev -p 6006",

0 commit comments

Comments
 (0)