Skip to content

Commit 3305757

Browse files
refactor(Grove): Rename module files from snake_case to PascalCase
Align all Grove module filenames with the project's PascalCase naming convention as specified in CLAUDE.md. Rename types.rs→Types.rs, vscode.rs→VSCode.rs, error.rs→Error.rs, and traits.rs→Traits.rs. Update module declarations in mod.rs files to use #[path] attributes and update all import paths to reference the new PascalCase module names. This maintains code functionality while enforcing consistent naming across the codebase.
1 parent 5a86b71 commit 3305757

6 files changed

Lines changed: 13 additions & 9 deletions

File tree

File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::sync::{
1212

1313
use serde::{Deserialize, Serialize};
1414

15-
use crate::{API::types::*, Transport::Strategy::Transport, dev_log};
15+
use crate::{API::Types::*, Transport::Strategy::Transport, dev_log};
1616

1717
// ============================================================================
1818
// Provider Registration Store

Source/API/mod.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
//! Provides the VS Code API facade and types for Grove.
44
//! Implements compatible API surface with Cocoon for extension compatibility.
55
6-
pub mod types;
7-
pub mod vscode;
6+
#[path = "Types.rs"]
7+
pub mod Types;
8+
#[path = "VSCode.rs"]
9+
pub mod VSCode;
810

911
// Re-exports for convenience
10-
pub use types::*;
11-
pub use vscode::*;
12+
pub use Types::*;
13+
pub use VSCode::*;
1214

1315
/// VS Code API version compatibility
1416
pub const VS_CODE_API_VERSION:&str = "1.85.0";

Source/Common/mod.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
//! Provides shared utilities, traits, and error types
44
//! used across the Grove codebase.
55
6-
pub mod error;
7-
pub mod traits;
6+
#[path = "Error.rs"]
7+
pub mod Error;
8+
#[path = "Traits.rs"]
9+
pub mod Traits;
810

911
// Re-exports for convenience
10-
pub use error::{GroveError, GroveResult};
11-
pub use traits::{ExtensionContext, ExtensionMetadata};
12+
pub use Error::{GroveError, GroveResult};
13+
pub use Traits::{ExtensionContext, ExtensionMetadata};
1214

1315
/// Common result type for Grove operations
1416
pub type Result<T> = anyhow::Result<T>;

0 commit comments

Comments
 (0)