forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick PR microsoft#54401 into release-5.1
Component commits: 8f0c69f Handle already released source files that dont match scriptKind Fixes microsoft#54381
- Loading branch information
1 parent
7e48587
commit 7a90503
Showing
3 changed files
with
249 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
203 changes: 203 additions & 0 deletions
203
...erver/documentRegistry/works-when-reusing-orphan-script-info-with-different-scriptKind.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,203 @@ | ||
currentDirectory:: / useCaseSensitiveFileNames: false | ||
Info seq [hh:mm:ss:mss] Provided types map file "/a/lib/typesMap.json" doesn't exist | ||
Before request | ||
Info seq [hh:mm:ss:mss] request: | ||
{ | ||
"command": "open", | ||
"arguments": { | ||
"file": "^/inmemory/model/6", | ||
"projectRootPath": "/users/user/projects/san", | ||
"fileContent": "import x from 'react';\nexrpot const x = 10;", | ||
"scriptKindName": "TSX" | ||
}, | ||
"seq": 1, | ||
"type": "request" | ||
} | ||
Info seq [hh:mm:ss:mss] Search path: ^/inmemory/model | ||
Info seq [hh:mm:ss:mss] For info: ^/inmemory/model/6 :: No config files found. | ||
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* | ||
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/san/^ 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations | ||
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/san/^ 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations | ||
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/san/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations | ||
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/san/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations | ||
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations | ||
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations | ||
Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file | ||
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/san/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots | ||
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/san/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots | ||
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots | ||
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots | ||
Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms | ||
Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) | ||
Info seq [hh:mm:ss:mss] Files (1) | ||
^/inmemory/model/6 SVC-1-0 "import x from 'react';\nexrpot const x = 10;" | ||
^/inmemory/model/6 | ||
Root file specified for compilation | ||
Info seq [hh:mm:ss:mss] ----------------------------------------------- | ||
Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) | ||
Info seq [hh:mm:ss:mss] Files (1) | ||
Info seq [hh:mm:ss:mss] ----------------------------------------------- | ||
Info seq [hh:mm:ss:mss] Open files: | ||
Info seq [hh:mm:ss:mss] FileName: ^/inmemory/model/6 ProjectRootPath: /users/user/projects/san | ||
Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* | ||
Info seq [hh:mm:ss:mss] response: | ||
{ | ||
"responseRequired": false | ||
} | ||
After request | ||
PolledWatches:: | ||
/a/lib/lib.d.ts: *new* | ||
{"pollingInterval":500} | ||
/users/user/projects/node_modules: *new* | ||
{"pollingInterval":500} | ||
/users/user/projects/node_modules/@types: *new* | ||
{"pollingInterval":500} | ||
/users/user/projects/san/^: *new* | ||
{"pollingInterval":500} | ||
/users/user/projects/san/node_modules: *new* | ||
{"pollingInterval":500} | ||
/users/user/projects/san/node_modules/@types: *new* | ||
{"pollingInterval":500} | ||
Before request | ||
Info seq [hh:mm:ss:mss] request: | ||
{ | ||
"command": "open", | ||
"arguments": { | ||
"file": "^/inmemory/model/4", | ||
"projectRootPath": "/users/user/projects/san", | ||
"fileContent": "import x from 'react';\nexrpot const x = 10;", | ||
"scriptKindName": "TSX" | ||
}, | ||
"seq": 2, | ||
"type": "request" | ||
} | ||
Info seq [hh:mm:ss:mss] Search path: ^/inmemory/model | ||
Info seq [hh:mm:ss:mss] For info: ^/inmemory/model/4 :: No config files found. | ||
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* | ||
Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms | ||
Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) | ||
Info seq [hh:mm:ss:mss] Files (2) | ||
^/inmemory/model/6 SVC-1-0 "import x from 'react';\nexrpot const x = 10;" | ||
^/inmemory/model/4 SVC-1-0 "import x from 'react';\nexrpot const x = 10;" | ||
|
||
|
||
^/inmemory/model/6 | ||
Root file specified for compilation | ||
^/inmemory/model/4 | ||
Root file specified for compilation | ||
|
||
Info seq [hh:mm:ss:mss] ----------------------------------------------- | ||
Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) | ||
Info seq [hh:mm:ss:mss] Files (2) | ||
|
||
Info seq [hh:mm:ss:mss] ----------------------------------------------- | ||
Info seq [hh:mm:ss:mss] Open files: | ||
Info seq [hh:mm:ss:mss] FileName: ^/inmemory/model/6 ProjectRootPath: /users/user/projects/san | ||
Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* | ||
Info seq [hh:mm:ss:mss] FileName: ^/inmemory/model/4 ProjectRootPath: /users/user/projects/san | ||
Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* | ||
Info seq [hh:mm:ss:mss] response: | ||
{ | ||
"responseRequired": false | ||
} | ||
After request | ||
|
||
Before request | ||
|
||
Info seq [hh:mm:ss:mss] request: | ||
{ | ||
"command": "close", | ||
"arguments": { | ||
"file": "^/inmemory/model/4" | ||
}, | ||
"seq": 3, | ||
"type": "request" | ||
} | ||
Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) | ||
Info seq [hh:mm:ss:mss] Files (2) | ||
|
||
Info seq [hh:mm:ss:mss] ----------------------------------------------- | ||
Info seq [hh:mm:ss:mss] Open files: | ||
Info seq [hh:mm:ss:mss] FileName: ^/inmemory/model/6 ProjectRootPath: /users/user/projects/san | ||
Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* | ||
Info seq [hh:mm:ss:mss] response: | ||
{ | ||
"responseRequired": false | ||
} | ||
After request | ||
|
||
Before request | ||
|
||
Info seq [hh:mm:ss:mss] request: | ||
{ | ||
"command": "updateOpen", | ||
"arguments": { | ||
"changedFiles": [ | ||
{ | ||
"fileName": "^/inmemory/model/6", | ||
"textChanges": [ | ||
{ | ||
"newText": "exrpot const x = 10;", | ||
"start": { | ||
"line": 1, | ||
"offset": 1 | ||
}, | ||
"end": { | ||
"line": 2, | ||
"offset": 21 | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"openFiles": [ | ||
{ | ||
"file": "^/inmemory/model/4", | ||
"fileContent": "exrpot const x = 10;", | ||
"projectRootPath": "/users/user/projects/san", | ||
"scriptKindName": "TS" | ||
} | ||
] | ||
}, | ||
"seq": 4, | ||
"type": "request" | ||
} | ||
Info seq [hh:mm:ss:mss] Search path: ^/inmemory/model | ||
Info seq [hh:mm:ss:mss] For info: ^/inmemory/model/4 :: No config files found. | ||
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* | ||
Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms | ||
Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) | ||
Info seq [hh:mm:ss:mss] Files (2) | ||
^/inmemory/model/6 SVC-1-1 "exrpot const x = 10;" | ||
^/inmemory/model/4 SVC-2-0 "exrpot const x = 10;" | ||
^/inmemory/model/6 | ||
Root file specified for compilation | ||
^/inmemory/model/4 | ||
Root file specified for compilation | ||
Info seq [hh:mm:ss:mss] ----------------------------------------------- | ||
Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) | ||
Info seq [hh:mm:ss:mss] Files (2) | ||
Info seq [hh:mm:ss:mss] ----------------------------------------------- | ||
Info seq [hh:mm:ss:mss] Open files: | ||
Info seq [hh:mm:ss:mss] FileName: ^/inmemory/model/6 ProjectRootPath: /users/user/projects/san | ||
Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* | ||
Info seq [hh:mm:ss:mss] FileName: ^/inmemory/model/4 ProjectRootPath: /users/user/projects/san | ||
Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* | ||
Info seq [hh:mm:ss:mss] response: | ||
{ | ||
"response": true, | ||
"responseRequired": true | ||
} | ||
After request |