Bump linguist-languages from 7.8.0 to 7.9.0 (#7809)
* Bump linguist-languages from 7.8.0 to 7.9.0 Bumps [linguist-languages](https://github.com/ikatyang/linguist-languages) from 7.8.0 to 7.9.0. - [Release notes](https://github.com/ikatyang/linguist-languages/releases) - [Commits](https://github.com/ikatyang/linguist-languages/commits) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * ignore yarn.lock * update snapshots Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
This commit is contained in:
1 parent
27906c63d4
commit
6257951386
6 files changed
+14
-6
No files matched your search
+1
-1
@@ -47,7 +47,7 @@
|
||||
"json-stable-stringify": "1.0.1",
|
||||
"leven": "3.1.0",
|
||||
"lines-and-columns": "1.1.6",
|
||||
"linguist-languages": "7.8.0",
|
||||
"linguist-languages": "7.9.0",
|
||||
"lodash": "4.17.15",
|
||||
"mem": "6.0.1",
|
||||
"minimatch": "3.0.4",
|
||||
|
||||
@@ -5,10 +5,12 @@ const options = require("./options");
|
||||
const createLanguage = require("../utils/create-language");
|
||||
|
||||
const languages = [
|
||||
createLanguage(require("linguist-languages/data/YAML"), () => ({
|
||||
createLanguage(require("linguist-languages/data/YAML"), (data) => ({
|
||||
since: "1.14.0",
|
||||
parsers: ["yaml"],
|
||||
vscodeLanguageIds: ["yaml"],
|
||||
// yarn.lock is not YAML: https://github.com/yarnpkg/yarn/issues/5629
|
||||
filenames: data.filenames.filter((filename) => filename !== "yarn.lock"),
|
||||
})),
|
||||
];
|
||||
|
||||
|
||||
@@ -437,6 +437,7 @@ exports[`CLI --support-info (stdout) 1`] = `
|
||||
\\"codemirrorMimeType\\": \\"text/javascript\\",
|
||||
\\"codemirrorMode\\": \\"javascript\\",
|
||||
\\"extensions\\": [
|
||||
\\".jsonc\\",
|
||||
\\".sublime-build\\",
|
||||
\\".sublime-commands\\",
|
||||
\\".sublime-completions\\",
|
||||
|
||||
@@ -52,6 +52,10 @@ describe("Negative patterns", () => {
|
||||
});
|
||||
});
|
||||
|
||||
testPatterns("Exclude yarn.lock when expanding directories", ["."], {
|
||||
stdout: expect.not.stringContaining("yarn.lock"),
|
||||
});
|
||||
|
||||
const path = require("path");
|
||||
const fs = require("fs");
|
||||
if (path.sep === "/") {
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
# this file should be ignored when a directory is expanded
|
||||
@@ -5156,10 +5156,10 @@ lines-and-columns@1.1.6, lines-and-columns@^1.1.6:
|
||||
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00"
|
||||
integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=
|
||||
|
||||
linguist-languages@7.8.0:
|
||||
version "7.8.0"
|
||||
resolved "https://registry.yarnpkg.com/linguist-languages/-/linguist-languages-7.8.0.tgz#9647c6a5e96c5abbd621eeac811607eb70cd15e3"
|
||||
integrity sha512-fV9VJbQdIBv9FvAe7wIyTWGNy468yvHhXqzGJylKhCX4EUX8Xk2tjs3XgblGLLTl+OGmEfY1M8klvWRG4FdHgQ==
|
||||
linguist-languages@7.9.0:
|
||||
version "7.9.0"
|
||||
resolved "https://registry.yarnpkg.com/linguist-languages/-/linguist-languages-7.9.0.tgz#025b421ff3acfdf9c9b34640816041bf842b5437"
|
||||
integrity sha512-saKTpS7BH8vOOwzrZNTkFL/DuT2JN7cg6oHWY8nAjt89+pV1qFcpbjEEcZdAv9ogc4DcxVFHkXmjeyU/DiFHQw==
|
||||
|
||||
load-json-file@^2.0.0:
|
||||
version "2.0.0"
|
||||
|
||||
Reference in new issue
Block a user