Commit 8a19fe9
TSCBasic: normalise the drive letter spelling on Windows
Windows normalises the drive letter to an uppercase letter. However,
some environments (e.g. nodejs) use the lower case spelling. This
results in a path spelling difference which triggers a rebuild in the
case that the LSP is running within VSCode.
Normalise the spelling to the upper case always when building an
`AbsolutePath`.
Based on a patch by Ami Fischman!
Co-authored-by: Ami Fischman <ami@thebrowser.company>1 parent 9b384c8 commit 8a19fe9
File tree
2 files changed
+22
-1
lines changed- Sources/TSCBasic
- Tests/TSCBasicTests
2 files changed
+22
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | | - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
505 | 511 | | |
506 | 512 | | |
507 | 513 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
407 | 422 | | |
0 commit comments