Skip to content

Commit

Permalink
rm unnecessary check (#239530)
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge authored Feb 3, 2025
1 parent f424447 commit 541aae4
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import { CancellationToken } from '../../../../../base/common/cancellation.js';
import { Disposable, IDisposable, toDisposable } from '../../../../../base/common/lifecycle.js';
import { Schemas } from '../../../../../base/common/network.js';
import { basename } from '../../../../../base/common/path.js';
import { isWindows } from '../../../../../base/common/platform.js';
import { URI } from '../../../../../base/common/uri.js';
Expand Down Expand Up @@ -373,8 +372,7 @@ export class TerminalCompletionService extends Disposable implements ITerminalCo
let kind: TerminalCompletionItemKind | undefined;
if (foldersRequested && stat.isDirectory) {
kind = TerminalCompletionItemKind.Folder;
}
if (filesRequested && !stat.isDirectory && (stat.isFile || stat.resource.scheme === Schemas.file)) {
} else if (filesRequested && stat.isFile) {
kind = TerminalCompletionItemKind.File;
}
if (kind === undefined) {
Expand Down

0 comments on commit 541aae4

Please sign in to comment.