2018-01-25 00:06:52 +01:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @Filename: /tsconfig.json
|
|
|
|
////{
|
|
|
|
//// "compilerOptions": {
|
2018-04-02 19:21:14 +02:00
|
|
|
//// "baseUrl": ".",
|
|
|
|
//// "module": "esnext"
|
2018-01-25 00:06:52 +01:00
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
|
|
|
|
// @Filename: /src/a.ts
|
|
|
|
////export const foo = 0;
|
|
|
|
|
|
|
|
// @Filename: /src/b.ts
|
|
|
|
////fo/**/
|
|
|
|
|
|
|
|
// Test that it prefers a relative import (see sourceDisplay).
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions({
|
|
|
|
marker: "",
|
|
|
|
includes: {
|
|
|
|
name: "foo",
|
|
|
|
source: "/src/a",
|
|
|
|
sourceDisplay: "./a",
|
|
|
|
text: "const foo: 0",
|
|
|
|
kind: "const",
|
2018-10-30 19:56:34 +01:00
|
|
|
kindModifiers: "export",
|
2018-10-29 18:03:25 +01:00
|
|
|
hasAction: true,
|
2019-05-16 23:46:10 +02:00
|
|
|
sortText: completion.SortText.AutoImportSuggestions
|
2018-10-29 18:03:25 +01:00
|
|
|
},
|
|
|
|
preferences: { includeCompletionsForModuleExports: true },
|
2018-01-25 00:06:52 +01:00
|
|
|
});
|