Added test.
This commit is contained in:
parent
a8dc7af271
commit
d2fab65df6
|
@ -6441,6 +6441,7 @@ namespace ts {
|
|||
readonly disableSuggestions?: boolean;
|
||||
readonly quotePreference?: "auto" | "double" | "single";
|
||||
readonly includeCompletionsForModuleExports?: boolean;
|
||||
readonly includeAutomaticOptionalChainCompletions?: boolean;
|
||||
readonly includeCompletionsWithInsertText?: boolean;
|
||||
readonly importModuleSpecifierPreference?: "relative" | "non-relative";
|
||||
/** Determines whether we import `foo/index.ts` as "foo", "foo/index", or "foo/index.js" */
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
/// <reference path="fourslash.ts" />
|
||||
// @strict: true
|
||||
|
||||
//// interface User {
|
||||
//// address?: {
|
||||
//// city: string;
|
||||
//// "postal code": string;
|
||||
//// }
|
||||
//// };
|
||||
//// declare const user: User;
|
||||
//// user.address[|./**/|]
|
||||
|
||||
verify.completions({
|
||||
marker: "",
|
||||
exact: [],
|
||||
preferences: {
|
||||
includeInsertTextCompletions: true,
|
||||
includeAutomaticOptionalChainCompletions: false
|
||||
},
|
||||
});
|
|
@ -583,6 +583,7 @@ declare namespace FourSlashInterface {
|
|||
readonly quotePreference?: "double" | "single";
|
||||
readonly includeCompletionsForModuleExports?: boolean;
|
||||
readonly includeInsertTextCompletions?: boolean;
|
||||
readonly includeAutomaticOptionalChainCompletions?: boolean;
|
||||
readonly importModuleSpecifierPreference?: "relative" | "non-relative";
|
||||
readonly importModuleSpecifierEnding?: "minimal" | "index" | "js";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue