dev: rename trace feature to profile feature (#185)

* dev: rename trace feature to profile feature

* dev: update snapshot
This commit is contained in:
Myriad-Dreamin 2024-04-12 09:49:44 +08:00 committed by GitHub
parent 4b1057efaf
commit 76de22b676
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 8 deletions

View file

@ -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()]));

View file

@ -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"
}
],

View file

@ -174,7 +174,7 @@ async function startClient(context: ExtensionContext): Promise<void> {
)
);
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<void> {
}
switch (args[0]) {
case "trace": {
void vscode.commands.executeCommand(`tinymist.traceCurrentFile`);
case "profile": {
void vscode.commands.executeCommand(`tinymist.profileCurrentFile`);
break;
}
case "preview": {

View file

@ -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");
}
}