11import * as vscode from "vscode" ;
2- import { compareFileChanges , acceptFileToBundle , isFileChangingBundle } from "../../utils/filesUtils" ;
3- import {
4- FILE_CURRENT_STATUS ,
5- GIT_FILENAME
6- } from "../../constants/filesConstants" ;
2+ import { compareFileChanges , isFileChangingBundle } from "@deepcode/tsc/src/utils/filesUtils" ;
3+ import { FILE_CURRENT_STATUS , GIT_FILENAME } from "@deepcode/tsc/src/constants/files" ;
74import { errorsLogs } from "../../messages/errorsServerLogMessages" ;
85import DeepCode from "../../../interfaces/DeepCodeInterfaces" ;
96
@@ -102,7 +99,7 @@ class DeepCodeFilesWatcher implements DeepCode.DeepCodeWatcherInterface {
10299 }
103100 } catch ( err ) {
104101 const filePathInBundle = filePath . split ( fileWorkspacePath ) [ 1 ] ;
105-
102+
106103 await extension . processError ( err , {
107104 message : errorsLogs . watchFileBeforeExtendBundle ,
108105 bundleId : extension . remoteBundles [ fileWorkspacePath ] . bundleId ,
@@ -123,7 +120,7 @@ class DeepCodeFilesWatcher implements DeepCode.DeepCodeWatcherInterface {
123120 type : string
124121 ) : Promise < void > {
125122 if (
126- ! acceptFileToBundle ( filePath , extension . serviceAI . serverFilesFilterList ) &&
123+ ! extension . serviceAI . acceptFileToBundle ( filePath ) &&
127124 ! isFileChangingBundle ( filePath )
128125 ) {
129126 return ;
@@ -189,7 +186,7 @@ class DeepCodeFilesWatcher implements DeepCode.DeepCodeWatcherInterface {
189186 ...( extension . serverFilesFilterList . extensions || [ ] ) . map ( e => `*${ e } ` ) ,
190187 ...( extension . serverFilesFilterList . configFiles || [ ] )
191188 ] ;
192-
189+
193190 const globPattern : vscode . GlobPattern = `**/\{${ watchFiles . join ( ',' ) } \}` ;
194191 this . watcher = vscode . workspace . createFileSystemWatcher ( globPattern ) ;
195192
0 commit comments