Skip to content

Commit 0222ad6

Browse files
authored
Fixes #1581: Client error 'Failed to determine file type' after undoing rename with Cmd+Z (#1583)
1 parent 22f5fea commit 0222ad6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/common/fileOperations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ abstract class FileOperationFeature<I, E extends Event<I>> implements DynamicFea
164164
// If we can't determine the file type than we treat it as a match.
165165
// Dropping it would be another alternative.
166166
if (fileType === undefined) {
167-
this._client.error(`Failed to determine file type for ${uri.toString()}.`);
167+
this._client.info(`Unable to determine file type for ${uri.toString()}. Treating as a match.`);
168168
return true;
169169
}
170170
if ((fileType === code.FileType.File && filter.kind === proto.FileOperationPatternKind.file) || (fileType === code.FileType.Directory && filter.kind === proto.FileOperationPatternKind.folder)) {

0 commit comments

Comments
 (0)