Skip to content

Commit

Permalink
chore: rm @stylexjs/open-props pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
Yash-Singh1 committed May 18, 2024
1 parent c5e9533 commit 48e1daf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 31 deletions.
19 changes: 0 additions & 19 deletions server/package-lock.json

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

1 change: 0 additions & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"devDependencies": {
"@babel/preset-typescript": "^7.23.3",
"@stylexjs/babel-plugin": "^0.6.1",
"@stylexjs/open-props": "^0.6.1",
"@stylexjs/shared": "^0.6.1",
"@swc/core": "^1.3.102",
"@swc/types": "^0.1.5",
Expand Down
23 changes: 12 additions & 11 deletions server/src/capabilities/hover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,22 +277,23 @@ async function onHover({
return state;
}

const classLine = [
...(state.callInside === "create" ||
state.callInside === "keyframes"
? []
: [
state.callerIdentifier
? `.${state.callerIdentifier}`
: ":root",
]),
...(<string[]>state.parentClass).slice(
const classLine = [];
if (
state.callInside !== "create" &&
state.callInside !== "keyframes"
) {
classLine.push(
state.callerIdentifier ? `.${state.callerIdentifier}` : ":root",
);
}
classLine.push(
...state.parentClass.slice(
state.callInside === "create" || state.callInside === "keyframes"
? 0
: 1,
),
key,
];
);

const atIncluded = classLine.filter((className) =>
className.startsWith("@"),
Expand Down

0 comments on commit 48e1daf

Please sign in to comment.