From 5a397a1f9e2123088f13e1ff9134723f181bf373 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Wed, 2 May 2018 11:14:50 +0200 Subject: [PATCH] add comment about symlinks #47475 --- src/vs/vscode.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/vs/vscode.d.ts b/src/vs/vscode.d.ts index f6ccbfc2563e3..554493ab2b461 100644 --- a/src/vs/vscode.d.ts +++ b/src/vs/vscode.d.ts @@ -4832,7 +4832,7 @@ declare module 'vscode' { } /** - * The `FileStat`-type represents metadata about a file. + * The `FileStat`-type represents metadata about a file */ export interface FileStat { /** @@ -4982,6 +4982,10 @@ declare module 'vscode' { /** * Retrieve metadata about a file. * + * Note that the metadata for symbolic links should be the metadata of the file they refer to. + * Still, the [SymbolicLink](#FileType.SymbolicLink)-type must be used in addition to the actual type, e.g. + * `FileType.SymbolicLink | FileType.Directory`. + * * @param uri The uri of the file to retrieve metadata about. * @return The file metadata about the file. * @throws [`FileNotFound`](#FileSystemError.FileNotFound) when `uri` doesn't exist.