Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/tailwindcss-language-server/src/resolver/tsconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import * as path from 'node:path'
import * as tsconfig from 'tsconfig-paths'
import * as tsconfck from 'tsconfck'
import { normalizePath } from '../utils'
import { normalizeDriveLetter, normalizePath } from '../utils'
import { DefaultMap } from '../util/default-map'

export interface TSConfigApi {
Expand Down Expand Up @@ -205,7 +205,7 @@ async function createMatchers(
let assumeExists: tsconfig.FileExistsAsync = (_, callback) => callback(undefined, true)

for (let result of configs) {
let parent = normalizePath(path.dirname(result.tsconfigFile))
let parent = normalizeDriveLetter(normalizePath(path.dirname(result.tsconfigFile)))

let opts = result.tsconfig.compilerOptions ?? {}

Expand Down Expand Up @@ -257,7 +257,7 @@ async function createMatchers(
}

function* walkPaths(base: string) {
let projectDir = normalizePath(base)
let projectDir = normalizeDriveLetter(normalizePath(base))

let prevProjectDir: string | undefined
while (projectDir !== prevProjectDir) {
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode-tailwindcss/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Prerelease

- Nothing yet!
- Fix detection of TypeScript config paths on Windows ([#1130](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1130))

## 0.14.0

Expand Down