Skip to content

Commit 82773b8

Browse files
author
Andy
authored
Fix bug: only getCompletionEntriesFromTypings if completions are for top-level directory (#27226)
* Fix bug: only getCompletionEntriesFromTypings if completions are for top-level directory * Support subdirectories of a nonrelative import
1 parent 7ed9e44 commit 82773b8

File tree

3 files changed

+127
-107
lines changed

3 files changed

+127
-107
lines changed

src/compiler/utilities.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8040,6 +8040,8 @@ namespace ts {
80408040
const allSupportedExtensions: ReadonlyArray<Extension> = [...supportedTSExtensions, ...supportedJSExtensions];
80418041
const allSupportedExtensionsWithJson: ReadonlyArray<Extension> = [...supportedTSExtensions, ...supportedJSExtensions, Extension.Json];
80428042

8043+
export function getSupportedExtensions(options?: CompilerOptions): ReadonlyArray<Extension>;
8044+
export function getSupportedExtensions(options?: CompilerOptions, extraFileExtensions?: ReadonlyArray<FileExtensionInfo>): ReadonlyArray<string>;
80438045
export function getSupportedExtensions(options?: CompilerOptions, extraFileExtensions?: ReadonlyArray<FileExtensionInfo>): ReadonlyArray<string> {
80448046
const needJsExtensions = options && options.allowJs;
80458047

0 commit comments

Comments
 (0)