diff --git a/Gulpfile.ts b/Gulpfile.ts
index 295a7ce03d9..bff83fcbff6 100644
--- a/Gulpfile.ts
+++ b/Gulpfile.ts
@@ -39,6 +39,8 @@ const gulp = helpMaker(originalGulp);
const mochaParallel = require("./scripts/mocha-parallel.js");
const {runTestsInParallel} = mochaParallel;
+Error.stackTraceLimit = 1000;
+
const cmdLineOptions = minimist(process.argv.slice(2), {
boolean: ["debug", "light", "colors", "lint", "soft"],
string: ["browser", "tests", "host", "reporter"],
@@ -727,6 +729,7 @@ gulp.task("browserify", "Runs browserify on run.js to produce a file suitable fo
sourcemaps: {
"built/local/_stream_0.js": originalMap,
"built/local/bundle.js": maps,
+ "node_modules/source-map-support/source-map-support.js": undefined,
}
});
const finalMap = chain.apply();
diff --git a/src/harness/fourslash.ts b/src/harness/fourslash.ts
index c8aaf804239..44ea0e83e0f 100644
--- a/src/harness/fourslash.ts
+++ b/src/harness/fourslash.ts
@@ -1304,7 +1304,7 @@ namespace FourSlash {
baselineFile,
() => stringify(
this.testData.markers.map(marker => ({
- marker: marker,
+ marker,
quickInfo: this.languageService.getQuickInfoAtPosition(marker.fileName, marker.position)
}))
));
diff --git a/tests/baselines/reference/quickInfoDisplayPartsVar.shims-pp.baseline b/tests/baselines/reference/quickInfoDisplayPartsVar.shims-pp.baseline
new file mode 100644
index 00000000000..dfe65565790
--- /dev/null
+++ b/tests/baselines/reference/quickInfoDisplayPartsVar.shims-pp.baseline
@@ -0,0 +1,1112 @@
+[
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
+ "position": 4
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 4,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "a",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
+ "position": 37
+ },
+ "quickInfo": {
+ "kind": "local var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 37,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "local var",
+ "kind": "text"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "b",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
+ "position": 41
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 41,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "a",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
+ "position": 65
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 65,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "c",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
+ "position": 88
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "export",
+ "textSpan": {
+ "start": 88,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "m",
+ "kind": "moduleName"
+ },
+ {
+ "text": ".",
+ "kind": "punctuation"
+ },
+ {
+ "text": "d",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
+ "position": 102
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 102,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "f",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "=>",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
+ "position": 123
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 123,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "g",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "=>",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
+ "position": 127
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 127,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "f",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "=>",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
+ "position": 130
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 130,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "f",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "=>",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
+ "position": 139
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 139,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "h",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "{",
+ "kind": "punctuation"
+ },
+ {
+ "text": "\n",
+ "kind": "lineBreak"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "a",
+ "kind": "parameterName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "string",
+ "kind": "keyword"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ },
+ {
+ "text": ";",
+ "kind": "punctuation"
+ },
+ {
+ "text": "\n",
+ "kind": "lineBreak"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "a",
+ "kind": "parameterName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "string",
+ "kind": "keyword"
+ },
+ {
+ "text": ";",
+ "kind": "punctuation"
+ },
+ {
+ "text": "\n",
+ "kind": "lineBreak"
+ },
+ {
+ "text": "}",
+ "kind": "punctuation"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
+ "position": 193
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 193,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "i",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "{",
+ "kind": "punctuation"
+ },
+ {
+ "text": "\n",
+ "kind": "lineBreak"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "a",
+ "kind": "parameterName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "string",
+ "kind": "keyword"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ },
+ {
+ "text": ";",
+ "kind": "punctuation"
+ },
+ {
+ "text": "\n",
+ "kind": "lineBreak"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "a",
+ "kind": "parameterName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "string",
+ "kind": "keyword"
+ },
+ {
+ "text": ";",
+ "kind": "punctuation"
+ },
+ {
+ "text": "\n",
+ "kind": "lineBreak"
+ },
+ {
+ "text": "}",
+ "kind": "punctuation"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
+ "position": 197
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 197,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "h",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "{",
+ "kind": "punctuation"
+ },
+ {
+ "text": "\n",
+ "kind": "lineBreak"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "a",
+ "kind": "parameterName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "string",
+ "kind": "keyword"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ },
+ {
+ "text": ";",
+ "kind": "punctuation"
+ },
+ {
+ "text": "\n",
+ "kind": "lineBreak"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "a",
+ "kind": "parameterName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "string",
+ "kind": "keyword"
+ },
+ {
+ "text": ";",
+ "kind": "punctuation"
+ },
+ {
+ "text": "\n",
+ "kind": "lineBreak"
+ },
+ {
+ "text": "}",
+ "kind": "punctuation"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
+ "position": 200
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 200,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "h",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "a",
+ "kind": "parameterName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "=>",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "string",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "+",
+ "kind": "operator"
+ },
+ {
+ "text": "1",
+ "kind": "numericLiteral"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "overload",
+ "kind": "text"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts",
+ "position": 207
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 207,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "h",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "a",
+ "kind": "parameterName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "string",
+ "kind": "keyword"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "=>",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "+",
+ "kind": "operator"
+ },
+ {
+ "text": "1",
+ "kind": "numericLiteral"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "overload",
+ "kind": "text"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ }
+ ],
+ "documentation": []
+ }
+ }
+]
\ No newline at end of file
diff --git a/tests/baselines/reference/quickInfoDisplayPartsVar.shims.baseline b/tests/baselines/reference/quickInfoDisplayPartsVar.shims.baseline
new file mode 100644
index 00000000000..249772f416e
--- /dev/null
+++ b/tests/baselines/reference/quickInfoDisplayPartsVar.shims.baseline
@@ -0,0 +1,1112 @@
+[
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims/quickInfoDisplayPartsVar.ts",
+ "position": 4
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 4,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "a",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims/quickInfoDisplayPartsVar.ts",
+ "position": 37
+ },
+ "quickInfo": {
+ "kind": "local var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 37,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "local var",
+ "kind": "text"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "b",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims/quickInfoDisplayPartsVar.ts",
+ "position": 41
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 41,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "a",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims/quickInfoDisplayPartsVar.ts",
+ "position": 65
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 65,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "c",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims/quickInfoDisplayPartsVar.ts",
+ "position": 88
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "export",
+ "textSpan": {
+ "start": 88,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "m",
+ "kind": "moduleName"
+ },
+ {
+ "text": ".",
+ "kind": "punctuation"
+ },
+ {
+ "text": "d",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims/quickInfoDisplayPartsVar.ts",
+ "position": 102
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 102,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "f",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "=>",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims/quickInfoDisplayPartsVar.ts",
+ "position": 123
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 123,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "g",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "=>",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims/quickInfoDisplayPartsVar.ts",
+ "position": 127
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 127,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "f",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "=>",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims/quickInfoDisplayPartsVar.ts",
+ "position": 130
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 130,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "f",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "=>",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims/quickInfoDisplayPartsVar.ts",
+ "position": 139
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 139,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "h",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "{",
+ "kind": "punctuation"
+ },
+ {
+ "text": "\n",
+ "kind": "lineBreak"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "a",
+ "kind": "parameterName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "string",
+ "kind": "keyword"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ },
+ {
+ "text": ";",
+ "kind": "punctuation"
+ },
+ {
+ "text": "\n",
+ "kind": "lineBreak"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "a",
+ "kind": "parameterName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "string",
+ "kind": "keyword"
+ },
+ {
+ "text": ";",
+ "kind": "punctuation"
+ },
+ {
+ "text": "\n",
+ "kind": "lineBreak"
+ },
+ {
+ "text": "}",
+ "kind": "punctuation"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims/quickInfoDisplayPartsVar.ts",
+ "position": 193
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 193,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "i",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "{",
+ "kind": "punctuation"
+ },
+ {
+ "text": "\n",
+ "kind": "lineBreak"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "a",
+ "kind": "parameterName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "string",
+ "kind": "keyword"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ },
+ {
+ "text": ";",
+ "kind": "punctuation"
+ },
+ {
+ "text": "\n",
+ "kind": "lineBreak"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "a",
+ "kind": "parameterName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "string",
+ "kind": "keyword"
+ },
+ {
+ "text": ";",
+ "kind": "punctuation"
+ },
+ {
+ "text": "\n",
+ "kind": "lineBreak"
+ },
+ {
+ "text": "}",
+ "kind": "punctuation"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims/quickInfoDisplayPartsVar.ts",
+ "position": 197
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 197,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "h",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "{",
+ "kind": "punctuation"
+ },
+ {
+ "text": "\n",
+ "kind": "lineBreak"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "a",
+ "kind": "parameterName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "string",
+ "kind": "keyword"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ },
+ {
+ "text": ";",
+ "kind": "punctuation"
+ },
+ {
+ "text": "\n",
+ "kind": "lineBreak"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "a",
+ "kind": "parameterName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "string",
+ "kind": "keyword"
+ },
+ {
+ "text": ";",
+ "kind": "punctuation"
+ },
+ {
+ "text": "\n",
+ "kind": "lineBreak"
+ },
+ {
+ "text": "}",
+ "kind": "punctuation"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims/quickInfoDisplayPartsVar.ts",
+ "position": 200
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 200,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "h",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "a",
+ "kind": "parameterName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "=>",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "string",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "+",
+ "kind": "operator"
+ },
+ {
+ "text": "1",
+ "kind": "numericLiteral"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "overload",
+ "kind": "text"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ }
+ ],
+ "documentation": []
+ }
+ },
+ {
+ "marker": {
+ "fileName": "/tests/cases/fourslash/shims/quickInfoDisplayPartsVar.ts",
+ "position": 207
+ },
+ "quickInfo": {
+ "kind": "var",
+ "kindModifiers": "",
+ "textSpan": {
+ "start": 207,
+ "length": 1
+ },
+ "displayParts": [
+ {
+ "text": "var",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "h",
+ "kind": "localName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "a",
+ "kind": "parameterName"
+ },
+ {
+ "text": ":",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "string",
+ "kind": "keyword"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "=>",
+ "kind": "punctuation"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "number",
+ "kind": "keyword"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "(",
+ "kind": "punctuation"
+ },
+ {
+ "text": "+",
+ "kind": "operator"
+ },
+ {
+ "text": "1",
+ "kind": "numericLiteral"
+ },
+ {
+ "text": " ",
+ "kind": "space"
+ },
+ {
+ "text": "overload",
+ "kind": "text"
+ },
+ {
+ "text": ")",
+ "kind": "punctuation"
+ }
+ ],
+ "documentation": []
+ }
+ }
+]
\ No newline at end of file
diff --git a/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts b/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts
index 61fd1aea74b..ce87a5e2f82 100644
--- a/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts
+++ b/tests/cases/fourslash/shims-pp/quickInfoDisplayPartsVar.ts
@@ -1,5 +1,7 @@
///
+// @BaselineFile: quickInfoDisplayPartsVar.shims-pp.baseline
+
////var /*1*/a = 10;
////function foo() {
//// var /*2*/b = /*3*/a;
diff --git a/tests/cases/fourslash/shims/quickInfoDisplayPartsVar.ts b/tests/cases/fourslash/shims/quickInfoDisplayPartsVar.ts
index 61fd1aea74b..aa06ed94c59 100644
--- a/tests/cases/fourslash/shims/quickInfoDisplayPartsVar.ts
+++ b/tests/cases/fourslash/shims/quickInfoDisplayPartsVar.ts
@@ -1,5 +1,7 @@
///
+// @BaselineFile: quickInfoDisplayPartsVar.shims.baseline
+
////var /*1*/a = 10;
////function foo() {
//// var /*2*/b = /*3*/a;