修复 includeDirs不包含项目目录时仍会监听该目录的问题
This commit is contained in:
@@ -87,9 +87,7 @@ func eventDispatcher(event fsnotify.Event) {
|
|||||||
|
|
||||||
func addWatcher() {
|
func addWatcher() {
|
||||||
log.Println("collecting directory information...")
|
log.Println("collecting directory information...")
|
||||||
dirsMap := map[string]bool{
|
dirsMap := map[string]bool{}
|
||||||
projectFolder: true,
|
|
||||||
}
|
|
||||||
for _, dir := range cfg.Monitor.IncludeDirs {
|
for _, dir := range cfg.Monitor.IncludeDirs {
|
||||||
darr := dirParse2Array(dir)
|
darr := dirParse2Array(dir)
|
||||||
if len(darr) < 1 || len(darr) > 2 {
|
if len(darr) < 1 || len(darr) > 2 {
|
||||||
|
Reference in New Issue
Block a user