diff --git a/crates/tinymist-query/src/code_lens.rs b/crates/tinymist-query/src/code_lens.rs index 2ac5246d..86097d07 100644 --- a/crates/tinymist-query/src/code_lens.rs +++ b/crates/tinymist-query/src/code_lens.rs @@ -34,7 +34,7 @@ impl SemanticRequest for CodeLensRequest { data: None, }; - res.push(doc_lens("Trace", vec!["trace".into()])); + res.push(doc_lens("Profile", vec!["profile".into()])); res.push(doc_lens("Preview", vec!["preview".into()])); res.push(doc_lens("Preview in ..", vec!["preview-in".into()])); res.push(doc_lens("Export PDF", vec!["export-pdf".into()])); diff --git a/editors/vscode/package.json b/editors/vscode/package.json index 4ace3283..bb629c0a 100644 --- a/editors/vscode/package.json +++ b/editors/vscode/package.json @@ -438,8 +438,8 @@ "category": "Typst" }, { - "command": "tinymist.traceCurrentFile", - "title": "Trace and visualize execution of the current Typst file", + "command": "tinymist.profileCurrentFile", + "title": "Profile and visualize execution of the current Typst file", "category": "Typst" } ], diff --git a/editors/vscode/src/extension.ts b/editors/vscode/src/extension.ts index 85b347cf..6d5f94ac 100644 --- a/editors/vscode/src/extension.ts +++ b/editors/vscode/src/extension.ts @@ -174,7 +174,7 @@ async function startClient(context: ExtensionContext): Promise { ) ); context.subscriptions.push( - commands.registerCommand("tinymist.traceCurrentFile", () => commandShowTrace(context)) + commands.registerCommand("tinymist.profileCurrentFile", () => commandShowTrace(context)) ); context.subscriptions.push( commands.registerCommand("tinymist.showLog", () => { @@ -541,8 +541,8 @@ async function commandRunCodeLens(...args: string[]): Promise { } switch (args[0]) { - case "trace": { - void vscode.commands.executeCommand(`tinymist.traceCurrentFile`); + case "profile": { + void vscode.commands.executeCommand(`tinymist.profileCurrentFile`); break; } case "preview": { diff --git a/tests/e2e/main.rs b/tests/e2e/main.rs index 8793ebd5..bb8b43ed 100644 --- a/tests/e2e/main.rs +++ b/tests/e2e/main.rs @@ -374,7 +374,7 @@ fn e2e() { }); let hash = replay_log(&tinymist_binary, &root.join("neovim")); - insta::assert_snapshot!(hash, @"siphash128_13:201f10c7c427e8d0975ad08a07130f0d"); + insta::assert_snapshot!(hash, @"siphash128_13:6906e16c65e7a8b7f24f235c28159069"); } { @@ -385,7 +385,7 @@ fn e2e() { }); let hash = replay_log(&tinymist_binary, &root.join("vscode")); - insta::assert_snapshot!(hash, @"siphash128_13:c70d30b7698cf5f89fbb80ccaa3f692c"); + insta::assert_snapshot!(hash, @"siphash128_13:5eb5788d170020cdf29964d202039e33"); } }