2018-03-28 02:02:04 +02:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @Filename: /other.ts
|
|
|
|
////export const x = 0;
|
|
|
|
|
|
|
|
// @Filename: /a.ts
|
|
|
|
////import {} from ".//*path*/";
|
|
|
|
////
|
2020-04-02 02:58:16 +02:00
|
|
|
////const x: "a" = "[|/*type*/|]";
|
2018-03-28 02:02:04 +02:00
|
|
|
////
|
|
|
|
////interface I {
|
|
|
|
//// /** Prop doc */
|
|
|
|
//// x: number;
|
|
|
|
//// /** Method doc */
|
|
|
|
//// m(): void;
|
|
|
|
////}
|
|
|
|
////declare const o: I;
|
2020-04-02 02:58:16 +02:00
|
|
|
////o["[|/*prop*/|]"];
|
2018-03-28 02:02:04 +02:00
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions(
|
2018-10-30 19:56:34 +01:00
|
|
|
{ marker: "path", includes: { name: "other", text: "other", kind: "script", kindModifiers: ".ts" }, isNewIdentifierLocation: true },
|
2020-04-02 02:58:16 +02:00
|
|
|
{ marker: "type", exact: { name: "a", text: "a", kind: "string", replacementSpan: test.ranges()[0] } },
|
2018-10-29 18:03:25 +01:00
|
|
|
{
|
|
|
|
marker: "prop",
|
|
|
|
exact: [
|
2020-04-02 02:58:16 +02:00
|
|
|
{ name: "x", text: "(property) I.x: number", documentation: "Prop doc", kind: "property", replacementSpan: test.ranges()[1] },
|
|
|
|
{ name: "m", text: "(method) I.m(): void", documentation: "Method doc", kind: "method", replacementSpan: test.ranges()[1] },
|
2018-10-29 18:03:25 +01:00
|
|
|
],
|
|
|
|
},
|
|
|
|
);
|