diff options
| author | Jonas Schievink <jonas.schievink@ferrous-systems.com> | 2022-08-23 15:56:02 +0200 |
|---|---|---|
| committer | Jonas Schievink <jonas.schievink@ferrous-systems.com> | 2022-08-23 15:56:02 +0200 |
| commit | dcbbb7f211771fc08281312310067469e58efa0b (patch) | |
| tree | df21d8ffe57d021de10d22916c814be080aef5a2 | |
| parent | 16a0eb1829b569e2d1e1046a60fd7e25aa35bfcf (diff) | |
| download | rust-dcbbb7f211771fc08281312310067469e58efa0b.tar.gz rust-dcbbb7f211771fc08281312310067469e58efa0b.zip | |
ForGoT tO RuN prEttIeR¿
| -rw-r--r-- | editors/code/src/main.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index ae145234792..e9b62e0cc25 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts @@ -51,14 +51,14 @@ async function tryActivate(context: vscode.ExtensionContext): Promise<RustAnalyz // We only support local folders, not eg. Live Share (`vlsl:` scheme), so don't activate if // only those are in use. // (r-a still somewhat works with Live Share, because commands are tunneled to the host) - const folders = (vscode.workspace.workspaceFolders || []).filter((folder) => - folder.uri.scheme == "file" + const folders = (vscode.workspace.workspaceFolders || []).filter( + (folder) => folder.uri.scheme === "file" ); const rustDocuments = vscode.workspace.textDocuments.filter((document) => isRustDocument(document) ); - if (folders.length == 0 && rustDocuments.length == 0) { + if (folders.length === 0 && rustDocuments.length === 0) { // FIXME: Ideally we would choose not to activate at all (and avoid registering // non-functional editor commands), but VS Code doesn't seem to have a good way of doing // that |
