windows: Don’t skip the typo check for the windows folder (#37314)

Try to narrow down the scope of typo checking


Release Notes:

- N/A
This commit is contained in:
张小白 2025-09-01 23:26:25 +08:00 committed by GitHub
parent 2790eb604a
commit 61175ab9cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 4 deletions

View file

@ -1760,7 +1760,7 @@ mod amd {
anyhow::bail!("Failed to initialize AMD AGS, error code: {}", result); anyhow::bail!("Failed to initialize AMD AGS, error code: {}", result);
} }
// Vulkan acctually returns this as the driver version // Vulkan actually returns this as the driver version
let software_version = if !gpu_info.radeon_software_version.is_null() { let software_version = if !gpu_info.radeon_software_version.is_null() {
std::ffi::CStr::from_ptr(gpu_info.radeon_software_version) std::ffi::CStr::from_ptr(gpu_info.radeon_software_version)
.to_string_lossy() .to_string_lossy()

View file

@ -708,7 +708,7 @@ impl WindowsWindowInner {
.system_settings .system_settings
.auto_hide_taskbar_position .auto_hide_taskbar_position
{ {
// Fot the auto-hide taskbar, adjust in by 1 pixel on taskbar edge, // For the auto-hide taskbar, adjust in by 1 pixel on taskbar edge,
// so the window isn't treated as a "fullscreen app", which would cause // so the window isn't treated as a "fullscreen app", which would cause
// the taskbar to disappear. // the taskbar to disappear.
match taskbar_position { match taskbar_position {

View file

@ -94,7 +94,7 @@ impl VSyncProvider {
// DwmFlush and DCompositionWaitForCompositorClock returns very early // DwmFlush and DCompositionWaitForCompositorClock returns very early
// instead of waiting until vblank when the monitor goes to sleep or is // instead of waiting until vblank when the monitor goes to sleep or is
// unplugged (nothing to present due to desktop occlusion). We use 1ms as // unplugged (nothing to present due to desktop occlusion). We use 1ms as
// a threshhold for the duration of the wait functions and fallback to // a threshold for the duration of the wait functions and fallback to
// Sleep() if it returns before that. This could happen during normal // Sleep() if it returns before that. This could happen during normal
// operation for the first call after the vsync thread becomes non-idle, // operation for the first call after the vsync thread becomes non-idle,
// but it shouldn't happen often. // but it shouldn't happen often.

View file

@ -36,7 +36,10 @@ extend-exclude = [
# glsl isn't recognized by this tool. # glsl isn't recognized by this tool.
"extensions/glsl/languages/glsl/", "extensions/glsl/languages/glsl/",
# Windows likes its abbreviations. # Windows likes its abbreviations.
"crates/gpui/src/platform/windows/", "crates/gpui/src/platform/windows/directx_renderer.rs",
"crates/gpui/src/platform/windows/events.rs",
"crates/gpui/src/platform/windows/direct_write.rs",
"crates/gpui/src/platform/windows/window.rs",
# Some typos in the base mdBook CSS. # Some typos in the base mdBook CSS.
"docs/theme/css/", "docs/theme/css/",
# Spellcheck triggers on `|Fixe[sd]|` regex part. # Spellcheck triggers on `|Fixe[sd]|` regex part.