diff --git a/packages/tailwindcss-language-server/src/tw.ts b/packages/tailwindcss-language-server/src/tw.ts index 792c887d..f2376154 100644 --- a/packages/tailwindcss-language-server/src/tw.ts +++ b/packages/tailwindcss-language-server/src/tw.ts @@ -41,6 +41,7 @@ import { URI } from 'vscode-uri' import normalizePath from 'normalize-path' import * as path from 'node:path' import * as fs from 'node:fs/promises' +import * as fsSync from 'node:fs' import type * as chokidar from 'chokidar' import picomatch from 'picomatch' import * as parcel from './watcher/index.js' @@ -188,7 +189,8 @@ export class TW { let base = baseUri.fsPath try { - await fs.access(base, fs.constants.F_OK | fs.constants.R_OK) + // TODO: Change this to fs.constants after the node version bump + await fs.access(base, fsSync.constants.F_OK | fsSync.constants.R_OK) } catch (err) { console.error( `Unable to access the workspace folder [${base}]. This may happen if the directory does not exist or the current user does not have the necessary permissions to access it.`, diff --git a/packages/vscode-tailwindcss/CHANGELOG.md b/packages/vscode-tailwindcss/CHANGELOG.md index e0d90b3d..cea2da55 100644 --- a/packages/vscode-tailwindcss/CHANGELOG.md +++ b/packages/vscode-tailwindcss/CHANGELOG.md @@ -8,6 +8,7 @@ - Ignore some build caches by default ([#1336](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1336)) - Gracefully handle color parsing failures ([#1363](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1363)) - Calculate swatches for HSL colors with angular units ([#1360](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1360)) +- Fix error when using VSCode < 1.78 ([#1353](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1353)) - Don’t skip suggesting empty variant implementations ([#1352](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1352)) # 0.14.16