Skip to content

Commit

Permalink
fix: unrecursive condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaaaash committed Dec 6, 2024
1 parent c9a10f9 commit d84eb98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/file-service/src/browser/file-service-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ export class FileServiceClient implements IFileServiceClient, IDisposable {
// 添加监听文件
async watchFileChanges(uri: URI, excludes?: string[]): Promise<IFileServiceWatcher> {
const unRecursiveDirectories = this.appConfig.unRecursiveDirectories || [];
const isUnRecursive = unRecursiveDirectories.some((dir) => uri.toString().startsWith(dir));
const isUnRecursive = unRecursiveDirectories.some((dir) => uri.path.toString().startsWith(dir));

const _uri = this.convertUri(uri.toString());
const originWatcher = this.uriWatcherMap.get(_uri.toString());
Expand Down

0 comments on commit d84eb98

Please sign in to comment.