Skip to content

Commit dcbbb7f

Browse files
author
Jonas Schievink
committed
ForGoT tO RuN prEttIeR¿
1 parent 16a0eb1 commit dcbbb7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

editors/code/src/main.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ async function tryActivate(context: vscode.ExtensionContext): Promise<RustAnalyz
5151
// We only support local folders, not eg. Live Share (`vlsl:` scheme), so don't activate if
5252
// only those are in use.
5353
// (r-a still somewhat works with Live Share, because commands are tunneled to the host)
54-
const folders = (vscode.workspace.workspaceFolders || []).filter((folder) =>
55-
folder.uri.scheme == "file"
54+
const folders = (vscode.workspace.workspaceFolders || []).filter(
55+
(folder) => folder.uri.scheme === "file"
5656
);
5757
const rustDocuments = vscode.workspace.textDocuments.filter((document) =>
5858
isRustDocument(document)
5959
);
6060

61-
if (folders.length == 0 && rustDocuments.length == 0) {
61+
if (folders.length === 0 && rustDocuments.length === 0) {
6262
// FIXME: Ideally we would choose not to activate at all (and avoid registering
6363
// non-functional editor commands), but VS Code doesn't seem to have a good way of doing
6464
// that

0 commit comments

Comments
 (0)