mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
fmt
This commit is contained in:
parent
68781aeab0
commit
6260c635ee
1 changed files with 10 additions and 9 deletions
|
@ -30,12 +30,12 @@ import { bootstrap } from "./bootstrap";
|
||||||
export type Workspace =
|
export type Workspace =
|
||||||
| { kind: "Empty" }
|
| { kind: "Empty" }
|
||||||
| {
|
| {
|
||||||
kind: "Workspace Folder";
|
kind: "Workspace Folder";
|
||||||
}
|
}
|
||||||
| {
|
| {
|
||||||
kind: "Detached Files";
|
kind: "Detached Files";
|
||||||
files: vscode.TextDocument[];
|
files: vscode.TextDocument[];
|
||||||
};
|
};
|
||||||
|
|
||||||
export function fetchWorkspace(): Workspace {
|
export function fetchWorkspace(): Workspace {
|
||||||
const folders = (vscode.workspace.workspaceFolders || []).filter(
|
const folders = (vscode.workspace.workspaceFolders || []).filter(
|
||||||
|
@ -49,9 +49,9 @@ export function fetchWorkspace(): Workspace {
|
||||||
? rustDocuments.length === 0
|
? rustDocuments.length === 0
|
||||||
? { kind: "Empty" }
|
? { kind: "Empty" }
|
||||||
: {
|
: {
|
||||||
kind: "Detached Files",
|
kind: "Detached Files",
|
||||||
files: rustDocuments,
|
files: rustDocuments,
|
||||||
}
|
}
|
||||||
: { kind: "Workspace Folder" };
|
: { kind: "Workspace Folder" };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -441,7 +441,8 @@ export class Ctx {
|
||||||
}
|
}
|
||||||
statusBar.tooltip.appendMarkdown("\n\n[Open Logs](command:rust-analyzer.openLogs)");
|
statusBar.tooltip.appendMarkdown("\n\n[Open Logs](command:rust-analyzer.openLogs)");
|
||||||
statusBar.tooltip.appendMarkdown(
|
statusBar.tooltip.appendMarkdown(
|
||||||
`\n\n[${this.config.checkOnSave ? "Disable" : "Enable"
|
`\n\n[${
|
||||||
|
this.config.checkOnSave ? "Disable" : "Enable"
|
||||||
} Check on Save](command:rust-analyzer.toggleCheckOnSave)`,
|
} Check on Save](command:rust-analyzer.toggleCheckOnSave)`,
|
||||||
);
|
);
|
||||||
statusBar.tooltip.appendMarkdown(
|
statusBar.tooltip.appendMarkdown(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue