mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-12-23 08:47:50 +00:00
feat: wait lsp until ready when fetching summary info (#1477)
This commit is contained in:
parent
ab944669f3
commit
a21c68ba91
1 changed files with 2 additions and 5 deletions
|
|
@ -610,10 +610,7 @@ async function fetchSummaryInfo(): Promise<[string | undefined, string | undefin
|
|||
|
||||
async function work(focusingFile: string, res: [string | undefined, string | undefined]) {
|
||||
if (!res[0]) {
|
||||
const result = await vscode.commands.executeCommand(
|
||||
"tinymist.getDocumentMetrics",
|
||||
focusingFile,
|
||||
);
|
||||
const result = await tinymist.executeCommand("tinymist.getDocumentMetrics", [focusingFile]);
|
||||
if (!result) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -622,7 +619,7 @@ async function fetchSummaryInfo(): Promise<[string | undefined, string | undefin
|
|||
}
|
||||
|
||||
if (!res[1]) {
|
||||
const result2 = await vscode.commands.executeCommand("tinymist.getServerInfo");
|
||||
const result2 = await tinymist.executeCommand("tinymist.getServerInfo", []);
|
||||
if (!result2) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue