/
gets-external-files-with-config-file-reload.js
195 lines (169 loc) · 8.83 KB
/
gets-external-files-with-config-file-reload.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
Info 0 [00:00:21.000] Provided types map file "/a/lib/typesMap.json" doesn't exist
Info 1 [00:00:22.000] request:
{
"seq": 0,
"type": "request",
"command": "open",
"arguments": {
"file": "/user/username/projects/myproject/a.ts"
}
}
Before request
//// [/user/username/projects/myproject/a.ts]
export const x = 10;
//// [/user/username/projects/myproject/tsconfig.json]
{"compilerOptions":{"plugins":[{"name":"some-plugin"}]}}
//// [/a/lib/lib.d.ts]
/// <reference no-default-lib="true"/>
interface Boolean {}
interface Function {}
interface CallableFunction {}
interface NewableFunction {}
interface IArguments {}
interface Number { toExponential: any; }
interface Object {}
interface RegExp {}
interface String { charAt: any; }
interface Array<T> { length: number; [n: number]: T; }
PolledWatches::
FsWatches::
FsWatchesRecursive::
Info 2 [00:00:23.000] Search path: /user/username/projects/myproject
Info 3 [00:00:24.000] For info: /user/username/projects/myproject/a.ts :: Config file name: /user/username/projects/myproject/tsconfig.json
Info 4 [00:00:25.000] Creating configuration project /user/username/projects/myproject/tsconfig.json
Info 5 [00:00:26.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file
Info 6 [00:00:27.000] Config: /user/username/projects/myproject/tsconfig.json : {
"rootNames": [
"/user/username/projects/myproject/a.ts"
],
"options": {
"plugins": [
{
"name": "some-plugin"
}
],
"configFilePath": "/user/username/projects/myproject/tsconfig.json"
}
}
Info 7 [00:00:28.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory
Info 8 [00:00:29.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory
Info 9 [00:00:30.000] Enabling plugin some-plugin from candidate paths: /a/lib/tsc.js/../../..
Info 10 [00:00:31.000] Loading some-plugin from /a/lib/tsc.js/../../.. (resolved to /a/lib/tsc.js/../../../node_modules)
Require:: some-plugin
PluginFactory Invoke
Info 11 [00:00:32.000] Plugin validation succeeded
Info 12 [00:00:33.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json
Info 13 [00:00:34.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info
Info 14 [00:00:35.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/somefile.txt 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file
Info 15 [00:00:36.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots
Info 16 [00:00:37.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots
Info 17 [00:00:38.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
Info 18 [00:00:39.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
Info 19 [00:00:40.000] Files (2)
/a/lib/lib.d.ts
/user/username/projects/myproject/a.ts
../../../../a/lib/lib.d.ts
Default library for target 'es3'
a.ts
Matched by default include pattern '**/*'
Info 20 [00:00:41.000] -----------------------------------------------
Info 21 [00:00:42.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
Info 21 [00:00:43.000] Files (2)
Info 21 [00:00:44.000] -----------------------------------------------
Info 21 [00:00:45.000] Open files:
Info 21 [00:00:46.000] FileName: /user/username/projects/myproject/a.ts ProjectRootPath: undefined
Info 21 [00:00:47.000] Projects: /user/username/projects/myproject/tsconfig.json
After request
PolledWatches::
/user/username/projects/myproject/somefile.txt:
{"pollingInterval":500}
/user/username/projects/myproject/node_modules/@types:
{"pollingInterval":500}
FsWatches::
/user/username/projects/myproject/tsconfig.json:
{}
/a/lib/lib.d.ts:
{}
FsWatchesRecursive::
/user/username/projects/myproject:
{}
Info 21 [00:00:48.000] response:
{
"responseRequired": false
}
ExternalFiles:: ["someFile.txt"]
Info 22 [00:00:52.000] FileWatcher:: Triggered with /user/username/projects/myproject/tsconfig.json 1:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file
Info 23 [00:00:53.000] Scheduled: /user/username/projects/myproject/tsconfig.json
Info 24 [00:00:54.000] Scheduled: *ensureProjectForOpenFiles*
Info 25 [00:00:55.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/tsconfig.json 1:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file
Before running timeout callbacks
//// [/user/username/projects/myproject/tsconfig.json]
{"compilerOptions":{"plugins":[{"name":"some-other-plugin"}]}}
PolledWatches::
/user/username/projects/myproject/somefile.txt:
{"pollingInterval":500}
/user/username/projects/myproject/node_modules/@types:
{"pollingInterval":500}
FsWatches::
/user/username/projects/myproject/tsconfig.json:
{}
/a/lib/lib.d.ts:
{}
FsWatchesRecursive::
/user/username/projects/myproject:
{}
Info 26 [00:00:56.000] Running: /user/username/projects/myproject/tsconfig.json
Info 27 [00:00:57.000] Reloading configured project /user/username/projects/myproject/tsconfig.json
Info 28 [00:00:58.000] Config: /user/username/projects/myproject/tsconfig.json : {
"rootNames": [
"/user/username/projects/myproject/a.ts"
],
"options": {
"plugins": [
{
"name": "some-other-plugin"
}
],
"configFilePath": "/user/username/projects/myproject/tsconfig.json"
}
}
Info 29 [00:00:59.000] Enabling plugin some-other-plugin from candidate paths: /a/lib/tsc.js/../../..
Info 30 [00:01:00.000] Loading some-other-plugin from /a/lib/tsc.js/../../.. (resolved to /a/lib/tsc.js/../../../node_modules)
Require:: some-other-plugin
PluginFactory Invoke
Info 31 [00:01:01.000] Plugin validation succeeded
Info 32 [00:01:02.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json
Info 33 [00:01:03.000] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/somefile.txt 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file
Info 34 [00:01:04.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/someotherfile.txt 500 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Missing file
Info 35 [00:01:05.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms
Info 36 [00:01:06.000] Different program with same set of files
Info 37 [00:01:07.000] Running: *ensureProjectForOpenFiles*
Info 38 [00:01:08.000] Before ensureProjectForOpenFiles:
Info 39 [00:01:09.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
Info 39 [00:01:10.000] Files (2)
Info 39 [00:01:11.000] -----------------------------------------------
Info 39 [00:01:12.000] Open files:
Info 39 [00:01:13.000] FileName: /user/username/projects/myproject/a.ts ProjectRootPath: undefined
Info 39 [00:01:14.000] Projects: /user/username/projects/myproject/tsconfig.json
Info 39 [00:01:15.000] After ensureProjectForOpenFiles:
Info 40 [00:01:16.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
Info 40 [00:01:17.000] Files (2)
Info 40 [00:01:18.000] -----------------------------------------------
Info 40 [00:01:19.000] Open files:
Info 40 [00:01:20.000] FileName: /user/username/projects/myproject/a.ts ProjectRootPath: undefined
Info 40 [00:01:21.000] Projects: /user/username/projects/myproject/tsconfig.json
After running timeout callbacks
PolledWatches::
/user/username/projects/myproject/node_modules/@types:
{"pollingInterval":500}
/user/username/projects/myproject/someotherfile.txt:
{"pollingInterval":500}
FsWatches::
/user/username/projects/myproject/tsconfig.json:
{}
/a/lib/lib.d.ts:
{}
FsWatchesRecursive::
/user/username/projects/myproject:
{}
ExternalFiles:: ["someOtherFile.txt"]