diff --git a/tests/baselines/reference/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline b/tests/baselines/reference/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline new file mode 100644 index 00000000000..1fd2e593d2d --- /dev/null +++ b/tests/baselines/reference/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline @@ -0,0 +1,76 @@ +[ + { + "marker": { + "fileName": "/tests/cases/fourslash/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.ts", + "position": 746 + }, + "quickInfo": { + "kind": "property", + "kindModifiers": "optional", + "textSpan": { + "start": 746, + "length": 8 + }, + "displayParts": [ + { + "text": "(", + "kind": "punctuation" + }, + { + "text": "property", + "kind": "text" + }, + { + "text": ")", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "language", + "kind": "propertyName" + }, + { + "text": "?", + "kind": "punctuation" + }, + { + "text": ":", + "kind": "punctuation" + }, + { + "text": " ", + "kind": "space" + }, + { + "text": "string", + "kind": "keyword" + } + ], + "documentation": [ + { + "text": "A language id, like `typescript`.", + "kind": "text" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "A language id, like `typescript`.", + "kind": "text" + }, + { + "text": "\n", + "kind": "lineBreak" + }, + { + "text": "A language id, like `typescript`.", + "kind": "text" + } + ] + } + } +] \ No newline at end of file diff --git a/tests/cases/fourslash/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.ts b/tests/cases/fourslash/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.ts new file mode 100644 index 00000000000..132130da22f --- /dev/null +++ b/tests/cases/fourslash/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.ts @@ -0,0 +1,29 @@ +/// + +////export type DocumentFilter = { +//// /** A language id, like `typescript`. */ +//// language: string; +//// /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */ +//// scheme?: string; +//// /** A glob pattern, like `*.{ts,js}`. */ +//// pattern?: string; +////} | { +//// /** A language id, like `typescript`. */ +//// language?: string; +//// /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */ +//// scheme: string; +//// /** A glob pattern, like `*.{ts,js}`. */ +//// pattern?: string; +////} | { +//// /** A language id, like `typescript`. */ +//// language?: string; +//// /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */ +//// scheme?: string; +//// /** A glob pattern, like `*.{ts,js}`. */ +//// pattern: string; +////}; +//// +////declare let x: DocumentFilter; +////x./**/language + +verify.baselineQuickInfo(); \ No newline at end of file