Skip to content

Commit 7c39412

Browse files
committed
update tailwind-class-names dep
1 parent 472c3e3 commit 7c39412

File tree

3 files changed

+36
-38
lines changed

3 files changed

+36
-38
lines changed

package-lock.json

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"dependencies": {
3838
"color": "^3.0.0",
3939
"dlv": "^1.1.1",
40-
"tailwind-class-names": "^0.5.0"
40+
"tailwind-class-names": "0.6.0"
4141
},
4242
"homepage":
4343
"https://github.com/bradlc/vscode-tailwindcss/blob/master/README.md",

src/extension.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async function getTailwind() {
4848

4949
let configPath = files[0].fsPath
5050

51-
const plugin = join(
51+
const pluginPath = join(
5252
vscode.workspace.workspaceFolders[0].uri.fsPath,
5353
'node_modules',
5454
'tailwindcss'
@@ -57,14 +57,12 @@ async function getTailwind() {
5757
let tw
5858

5959
try {
60-
tw = await tailwindClassNames(
60+
tw = await tailwindClassNames({
6161
configPath,
62-
{
63-
tree: true,
64-
strings: true
65-
},
66-
plugin
67-
)
62+
pluginPath,
63+
tree: true,
64+
strings: true
65+
})
6866
} catch (err) {
6967
return null
7068
}

0 commit comments

Comments
 (0)