mirror of
https://github.com/starship/starship.git
synced 2024-11-23 08:43:16 +01:00
fix: add missing project filter rules (#2687)
This commit is contained in:
parent
48f913ec23
commit
41e417e1d3
@ -11,6 +11,8 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
|
|||||||
let is_deno_project = context
|
let is_deno_project = context
|
||||||
.try_begin_scan()?
|
.try_begin_scan()?
|
||||||
.set_files(&config.detect_files)
|
.set_files(&config.detect_files)
|
||||||
|
.set_extensions(&config.detect_extensions)
|
||||||
|
.set_folders(&config.detect_folders)
|
||||||
.is_match();
|
.is_match();
|
||||||
|
|
||||||
if !is_deno_project {
|
if !is_deno_project {
|
||||||
|
@ -9,7 +9,9 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
|
|||||||
let config = RedConfig::try_load(module.config);
|
let config = RedConfig::try_load(module.config);
|
||||||
let is_red_project = context
|
let is_red_project = context
|
||||||
.try_begin_scan()?
|
.try_begin_scan()?
|
||||||
|
.set_files(&config.detect_files)
|
||||||
.set_extensions(&config.detect_extensions)
|
.set_extensions(&config.detect_extensions)
|
||||||
|
.set_folders(&config.detect_folders)
|
||||||
.is_match();
|
.is_match();
|
||||||
|
|
||||||
if !is_red_project {
|
if !is_red_project {
|
||||||
|
Loading…
Reference in New Issue
Block a user