mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-03 17:58:17 +00:00
dev: rename trace feature to profile feature (#185)
* dev: rename trace feature to profile feature * dev: update snapshot
This commit is contained in:
parent
4b1057efaf
commit
76de22b676
4 changed files with 8 additions and 8 deletions
|
@ -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()]));
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
],
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue