2018-04-20 19:25:58 +02:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @jsx: preserve
|
|
|
|
|
2018-09-26 20:22:08 +02:00
|
|
|
/////** @/*tag*/ */
|
2018-07-27 02:26:58 +02:00
|
|
|
//////</*comment*/
|
2020-04-02 02:58:16 +02:00
|
|
|
////const x: "a" | "b" = "[|/*openQuote*/|]"/*closeQuote*/;
|
|
|
|
////const y: 'a' | 'b' = '[|/*openSingleQuote*/|]'/*closeSingleQuote*/;
|
|
|
|
////const z: 'a' | 'b' = `[|/*openTemplate*/|]`/*closeTemplate*/;
|
|
|
|
////const q: "`a`" | "`b`" = "[|`/*openTemplateInQuote*/a`/*closeTemplateInQuote*/|]";
|
2018-04-20 19:25:58 +02:00
|
|
|
|
|
|
|
////// "/*quoteInComment*/ </*lessInComment*/
|
|
|
|
|
2018-05-11 01:50:26 +02:00
|
|
|
// @Filename: /foo/importMe.ts
|
|
|
|
////whatever
|
|
|
|
|
2018-04-20 19:25:58 +02:00
|
|
|
// @Filename: /a.tsx
|
2018-06-25 20:10:38 +02:00
|
|
|
////declare global {
|
|
|
|
//// namespace JSX {
|
|
|
|
//// interface Element {}
|
|
|
|
//// interface IntrinsicElements {
|
|
|
|
//// div: {};
|
|
|
|
//// }
|
2018-04-20 19:25:58 +02:00
|
|
|
//// }
|
|
|
|
////}
|
2018-05-11 01:50:26 +02:00
|
|
|
////const ctr = </*openTag*/;
|
|
|
|
////const less = 1 </*lessThan*/;
|
|
|
|
////const closeTag = <div> foo <//*closeTag*/;
|
|
|
|
////import something from "./foo//*path*/";
|
2018-05-10 23:59:33 +02:00
|
|
|
////const divide = 1 //*divide*/
|
2018-04-20 19:25:58 +02:00
|
|
|
|
2018-05-01 22:00:13 +02:00
|
|
|
verify.completions(
|
2018-09-26 20:22:08 +02:00
|
|
|
{ marker: "tag", includes: ["param"], triggerCharacter: "@" },
|
2018-07-27 02:26:58 +02:00
|
|
|
{ marker: "comment", exact: undefined, triggerCharacter: "<" },
|
|
|
|
|
2020-04-02 02:58:16 +02:00
|
|
|
{ marker: "openQuote", exact: [
|
|
|
|
{ name: "a", replacementSpan: test.ranges()[0] },
|
|
|
|
{ name: "b", replacementSpan: test.ranges()[0] }
|
|
|
|
], triggerCharacter: '"' },
|
2018-05-03 22:04:08 +02:00
|
|
|
{ marker: "closeQuote", exact: undefined, triggerCharacter: '"' },
|
2018-04-20 19:25:58 +02:00
|
|
|
|
2020-04-02 02:58:16 +02:00
|
|
|
{ marker: "openSingleQuote", exact: [
|
|
|
|
{ name: "a", replacementSpan: test.ranges()[1] },
|
|
|
|
{ name: "b", replacementSpan: test.ranges()[1] }
|
|
|
|
], triggerCharacter: "'" },
|
2018-05-03 22:04:08 +02:00
|
|
|
{ marker: "closeSingleQuote", exact: undefined, triggerCharacter: "'" },
|
2018-04-20 19:25:58 +02:00
|
|
|
|
2020-04-02 02:58:16 +02:00
|
|
|
{ marker: "openTemplate", exact: [
|
|
|
|
{ name: "a", replacementSpan: test.ranges()[2] },
|
|
|
|
{ name: "b", replacementSpan: test.ranges()[2] }
|
|
|
|
], triggerCharacter: "`" },
|
2018-05-03 22:04:08 +02:00
|
|
|
{ marker: "closeTemplate", exact: undefined, triggerCharacter: "`" },
|
2018-04-20 19:25:58 +02:00
|
|
|
|
2018-05-03 22:04:08 +02:00
|
|
|
{ marker: "quoteInComment", exact: undefined, triggerCharacter: '"' },
|
|
|
|
{ marker: "lessInComment", exact: undefined, triggerCharacter: "<" },
|
2018-04-20 19:25:58 +02:00
|
|
|
|
2018-05-03 22:04:08 +02:00
|
|
|
{ marker: "openTag", includes: "div", triggerCharacter: "<" },
|
|
|
|
{ marker: "lessThan", exact: undefined, triggerCharacter: "<" },
|
2018-07-11 01:14:57 +02:00
|
|
|
{ marker: "closeTag", exact: "div>", triggerCharacter: "/" },
|
2018-05-11 01:50:26 +02:00
|
|
|
{ marker: "path", exact: "importMe", triggerCharacter: "/", isNewIdentifierLocation: true },
|
2018-05-10 23:59:33 +02:00
|
|
|
{ marker: "divide", exact: undefined, triggerCharacter: "/" },
|
2018-05-01 22:00:13 +02:00
|
|
|
);
|