Skip to content

Commit efdeb96

Browse files
committed
Fixes from testing
1 parent 4a32af9 commit efdeb96

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/RustAnalyzer.TestAdapter/Cargo/MetadataService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ public void Dispose()
5858

5959
public Task<int> OnWorkspaceUpdateAsync(IEnumerable<PathEx> filePaths, CancellationToken ct)
6060
{
61-
_tl.L.WriteLine("OnWorkspaceUpdateAsync. Count of files updated: {0}.", filePaths.Count());
6261
return ProtectPackageCacheAndRunAsync(
6362
(ct) =>
6463
{
6564
foreach (var filePath in filePaths.Where(fp => fp.IsManifest() || fp.IsRustFile()))
6665
{
6766
if (filePath.TryGetParentManifestOrThisUnderWorkspace(_workspaceRoot, out PathEx? manifest))
6867
{
68+
_tl.L.WriteLine("OnWorkspaceUpdateAsync: Removing from cache: {0}", manifest);
6969
_packageCache.TryRemove(manifest.Value, out var _);
7070
}
7171
}
@@ -95,6 +95,7 @@ private async Task<T> ProtectPackageCacheAndRunAsync<T>(Func<CancellationToken,
9595
return package;
9696
}
9797

98+
_tl.L.WriteLine("... Cache miss: {0}.", manifestPath);
9899
return _packageCache[manifestPath] = await GetPackageAsyncCore(manifestPath, ct);
99100
}
100101

src/RustAnalyzer.TestAdapter/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace KS.RustAnalyzer.TestAdapter;
55

66
public static class Constants
77
{
8-
public const string ReleaseSummary = "Significant refactoring to Cargo.toml parser resulting in overall correctness & simpler code. NOTE: Please report any issues you face.";
8+
public const string ReleaseSummary = $"Significant refactoring of the {ManifestFileName} parser module resulting in simpler code & robust handling of various crates and workspaces scenarios. Please report any issues you face.";
99
public const string ReleaseNotesUrl = $"https://github.com/kitamstudios/rust-analyzer.vs/releases/{Vsix.Version}";
1010
public const string DiscordUrl = "https://discord.gg/JyK55EsACr";
1111

src/RustAnalyzer/VS/OutputWindowLogger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private void WriteCore(string format, object[] args)
5757
ThreadHelper.ThrowIfNotOnUIThread();
5858
if (EnsurePane())
5959
{
60-
_pane.OutputStringThreadSafe($"{DateTime.Now:yyyyMMdd.HH.mm.ss} - {string.Format(format, args)}\n");
60+
_pane.OutputStringThreadSafe($"{DateTime.Now:yyMMdd.HH.mm.ss.fff} - {string.Format(format, args)}\n");
6161
}
6262
}
6363

0 commit comments

Comments
 (0)