Skip to content

Commit

Permalink
chore: let renovate bump css-languageservices (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
wkillerud authored Feb 4, 2024
1 parent 047d2ee commit 4eb0111
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 34 deletions.
30 changes: 15 additions & 15 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"dependencies": {
"fast-glob": "^3.2.12",
"vscode-css-languageservice": "^6.2.10",
"vscode-css-languageservice": "^6.2.12",
"vscode-languageclient": "^9.0.1",
"vscode-uri": "^3.0.7"
},
Expand Down
4 changes: 2 additions & 2 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"extends": ["config:recommended"],
"schedule": ["on the first day of the month"],
"dependencyDashboard": false,
"ignoreDeps": ["scss-sassdoc-parser", "vscode-css-languageservice"],
"ignoreDeps": ["scss-sassdoc-parser"],
"packageRules": [
{
"groupName": "linters",
Expand All @@ -22,7 +22,7 @@
{
"groupName": "language client and server",
"matchDepTypes": ["dependencies"],
"matchPackagePatterns": ["vscode-language"],
"matchPackagePatterns": ["vscode-language", "vscode-css-languageservice"],
"automerge": false
},
{
Expand Down
30 changes: 15 additions & 15 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"fast-glob": "^3.2.11",
"scss-sassdoc-parser": "^1.0.0",
"scss-symbols-parser": "^2.0.1",
"vscode-css-languageservice": "^6.2.10",
"vscode-css-languageservice": "^6.2.12",
"vscode-languageserver": "^9.0.1",
"vscode-languageserver-textdocument": "^1.0.5",
"vscode-languageserver-types": "^3.17.1",
Expand Down
20 changes: 20 additions & 0 deletions server/src/test/parser/cssNodes.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import * as assert from "assert";
// @ts-expect-error Not exported as enum type
import { NodeType as CSSNodeType } from "vscode-css-languageservice/lib/umd/parser/cssNodes";
import { NodeType } from "../../parser";

describe("NodeType", () => {
it("type definition is in sync with vscode-css-languageservices", () => {
const types = Object.entries(NodeType);
assert.ok(types.length);

for (const [nodeName, enumValue] of Object.entries(NodeType)) {
// NodeType be synced with https://github.com/microsoft/vscode-css-languageservice/blob/main/src/parser/cssNodes.ts
assert.strictEqual(
CSSNodeType[nodeName],
enumValue,
`Expected ${nodeName} to have equal value to vscode-css-languageservice`,
);
}
});
});

0 comments on commit 4eb0111

Please sign in to comment.