Skip to content

Commit

Permalink
Remove implicit node dep from the language service
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Mar 13, 2024
1 parent 02c9e89 commit 65f162b
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions packages/tailwindcss-language-service/src/completionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import {
addPixelEquivalentsToValue,
} from './util/pixelEquivalents'
import { customClassesIn } from './util/classes'
import * as util from 'node:util'
import * as postcss from 'postcss'

let isUtil = (className) =>
Expand Down Expand Up @@ -195,12 +194,10 @@ export function completionsFromClassList(
} catch (err) {
// If the selectors function fails we don't want to crash the whole completion process
console.log('Error while trying to get selectors for variant')
console.log(
util.format({
variant,
err,
}),
)
console.log({
variant,
err,
})
}

if (selectors.length === 0) {
Expand Down Expand Up @@ -255,12 +252,10 @@ export function completionsFromClassList(
} catch (err) {
// If the selectors function fails we don't want to crash the whole completion process
console.log('Error while trying to get selectors for variant')
console.log(
util.format({
variant,
err,
}),
)
console.log({
variant,
err,
})
}

if (selectors.length === 0) {
Expand Down

0 comments on commit 65f162b

Please sign in to comment.