Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
progress
  • Loading branch information
psteinroe committed May 30, 2025
commit d9e317b1cb36f27b1fce0b57eac5e9cafe4d431e
3 changes: 3 additions & 0 deletions crates/pgt_fs/src/fs/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ impl FileSystem for MemoryFileSystem {
entry.lock_arc()
};

// REMOVE
tracing::info!("inner");

if options.truncate {
// Clear the buffer if the file was open with `truncate`
inner.clear();
Expand Down
10 changes: 10 additions & 0 deletions crates/pgt_workspace/src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ impl LoadedConfiguration {
value: Option<ConfigurationPayload>,
fs: &DynRef<'_, dyn FileSystem>,
) -> Result<Self, WorkspaceError> {
// REMOVE
tracing::info!("try from payload");
let Some(value) = value else {
return Ok(LoadedConfiguration::default());
};
Expand Down Expand Up @@ -150,6 +152,8 @@ fn load_config(
should_error,
)? {
let AutoSearchResult { content, file_path } = auto_search_result;
// REMOVE
tracing::info!("Found configuration file: {}", file_path.display());

let deserialized =
serde_json::from_str::<PartialConfiguration>(&strip_jsonc_comments(&content))
Expand Down Expand Up @@ -380,6 +384,12 @@ impl PartialConfigurationExt for PartialConfiguration {
.into_path_buf()
};

// REMOVE
tracing::info!(
"Resolving extend configuration file: {}",
extend_configuration_file_path.display()
);

let mut file = fs
.open_with_options(
extend_configuration_file_path.as_path(),
Expand Down
Loading