15722e6b64
* Remove referenceGroups/noReferences from fourslash
I left most singleReferenceGroups because there were so many, and my current
PR doesn't affect many of them.
* update fourslash/server too
* Explicitly sort keys
Needed for node 10 compatibility
* Revert "Explicitly sort keys"
This reverts commit 1d1c58a4e3
.
It shouldn't be needed now that we're not testing with node 10
227 lines
4.2 KiB
Plaintext
227 lines
4.2 KiB
Plaintext
// === /b.ts ===
|
|
// import { x } from "/*FIND ALL REFS*/[|./a|]";
|
|
|
|
// === /c/sub.js ===
|
|
// const a = require("[|../a|]");
|
|
|
|
// === /d.ts ===
|
|
// /// <reference path="[|./a.ts|]" />
|
|
|
|
[
|
|
{
|
|
"definition": {
|
|
"containerKind": "",
|
|
"containerName": "",
|
|
"fileName": "/a.ts",
|
|
"kind": "module",
|
|
"name": "module \"/a\"",
|
|
"textSpan": {
|
|
"start": 0,
|
|
"length": 19
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "module",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "\"/a\"",
|
|
"kind": "stringLiteral"
|
|
}
|
|
]
|
|
},
|
|
"references": [
|
|
{
|
|
"textSpan": {
|
|
"start": 19,
|
|
"length": 3
|
|
},
|
|
"fileName": "/b.ts",
|
|
"contextSpan": {
|
|
"start": 0,
|
|
"length": 24
|
|
},
|
|
"isWriteAccess": false,
|
|
"isDefinition": false
|
|
},
|
|
{
|
|
"textSpan": {
|
|
"start": 19,
|
|
"length": 4
|
|
},
|
|
"fileName": "/c/sub.js",
|
|
"contextSpan": {
|
|
"start": 0,
|
|
"length": 26
|
|
},
|
|
"isWriteAccess": false,
|
|
"isDefinition": false
|
|
},
|
|
{
|
|
"textSpan": {
|
|
"start": 21,
|
|
"length": 6
|
|
},
|
|
"fileName": "/d.ts",
|
|
"isWriteAccess": false,
|
|
"isDefinition": false
|
|
}
|
|
]
|
|
}
|
|
]
|
|
|
|
// === /b.ts ===
|
|
// import { x } from "[|./a|]";
|
|
|
|
// === /c/sub.js ===
|
|
// const a = require("/*FIND ALL REFS*/[|../a|]");
|
|
|
|
// === /d.ts ===
|
|
// /// <reference path="[|./a.ts|]" />
|
|
|
|
[
|
|
{
|
|
"definition": {
|
|
"containerKind": "",
|
|
"containerName": "",
|
|
"fileName": "/a.ts",
|
|
"kind": "module",
|
|
"name": "module \"/a\"",
|
|
"textSpan": {
|
|
"start": 0,
|
|
"length": 19
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "module",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "\"/a\"",
|
|
"kind": "stringLiteral"
|
|
}
|
|
]
|
|
},
|
|
"references": [
|
|
{
|
|
"textSpan": {
|
|
"start": 19,
|
|
"length": 3
|
|
},
|
|
"fileName": "/b.ts",
|
|
"contextSpan": {
|
|
"start": 0,
|
|
"length": 24
|
|
},
|
|
"isWriteAccess": false,
|
|
"isDefinition": false
|
|
},
|
|
{
|
|
"textSpan": {
|
|
"start": 19,
|
|
"length": 4
|
|
},
|
|
"fileName": "/c/sub.js",
|
|
"contextSpan": {
|
|
"start": 0,
|
|
"length": 26
|
|
},
|
|
"isWriteAccess": false,
|
|
"isDefinition": false
|
|
},
|
|
{
|
|
"textSpan": {
|
|
"start": 21,
|
|
"length": 6
|
|
},
|
|
"fileName": "/d.ts",
|
|
"isWriteAccess": false,
|
|
"isDefinition": false
|
|
}
|
|
]
|
|
}
|
|
]
|
|
|
|
// === /b.ts ===
|
|
// import { x } from "[|./a|]";
|
|
|
|
// === /c/sub.js ===
|
|
// const a = require("[|../a|]");
|
|
|
|
// === /d.ts ===
|
|
// /// <reference path="/*FIND ALL REFS*/[|./a.ts|]" />
|
|
|
|
[
|
|
{
|
|
"definition": {
|
|
"containerKind": "",
|
|
"containerName": "",
|
|
"fileName": "/a.ts",
|
|
"kind": "module",
|
|
"name": "module \"/a\"",
|
|
"textSpan": {
|
|
"start": 0,
|
|
"length": 19
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "module",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "\"/a\"",
|
|
"kind": "stringLiteral"
|
|
}
|
|
]
|
|
},
|
|
"references": [
|
|
{
|
|
"textSpan": {
|
|
"start": 19,
|
|
"length": 3
|
|
},
|
|
"fileName": "/b.ts",
|
|
"contextSpan": {
|
|
"start": 0,
|
|
"length": 24
|
|
},
|
|
"isWriteAccess": false,
|
|
"isDefinition": false
|
|
},
|
|
{
|
|
"textSpan": {
|
|
"start": 19,
|
|
"length": 4
|
|
},
|
|
"fileName": "/c/sub.js",
|
|
"contextSpan": {
|
|
"start": 0,
|
|
"length": 26
|
|
},
|
|
"isWriteAccess": false,
|
|
"isDefinition": false
|
|
},
|
|
{
|
|
"textSpan": {
|
|
"start": 21,
|
|
"length": 6
|
|
},
|
|
"fileName": "/d.ts",
|
|
"isWriteAccess": false,
|
|
"isDefinition": false
|
|
}
|
|
]
|
|
}
|
|
] |