forked from zed-industries/zed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve extension suggestions (zed-industries#9941)
This PR improves the behavior for suggesting extensions. Previously if the file had an extension, it would only look for suggestions based on that extension. This prevented us from making suggestions for files like `Cargo.lock`. Suggestions are now made in the following order: 1. Check for any suggestions based on the entire file name 2. Check for any suggestions based on the file extension (if present) This PR also fixes a bug where file name-based suggestions were looking at the entire path, not just the file name. Finally, the suggestion notification has been updated to include the ID of the extension, to make it clearer which extension will be installed. Release Notes: - Improved extension suggestions.
- Loading branch information
1 parent
d074586
commit c4bc172
Showing
1 changed file
with
139 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters