@tatzeroko/typescript-plugin 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +1 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.js +62 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/language-service/index.d.ts +14 -0
- package/dist/src/language-service/index.js +144 -0
- package/dist/src/language-service/index.js.map +1 -0
- package/dist/src/lib/salesforce.d.ts +28 -0
- package/dist/src/lib/salesforce.js +53 -0
- package/dist/src/lib/salesforce.js.map +1 -0
- package/dist/src/lib/ts/file.d.ts +18 -0
- package/dist/src/lib/ts/file.js +56 -0
- package/dist/src/lib/ts/file.js.map +1 -0
- package/dist/src/lib/ts/index.d.ts +9 -0
- package/dist/src/lib/ts/index.js +21 -0
- package/dist/src/lib/ts/index.js.map +1 -0
- package/dist/src/lib/ts/patch.d.ts +15 -0
- package/dist/src/lib/ts/patch.js +33 -0
- package/dist/src/lib/ts/patch.js.map +1 -0
- package/dist/src/projectContext.d.ts +79 -0
- package/dist/src/projectContext.js +131 -0
- package/dist/src/projectContext.js.map +1 -0
- package/dist/src/vfs.d.ts +64 -0
- package/dist/src/vfs.js +81 -0
- package/dist/src/vfs.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +34 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2025 Trym Sebastian Hegrenes
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @tatzeroko/typescript-plugin
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as ts from "typescript/lib/tsserverlibrary";
|
|
2
|
+
declare function init(modules: {
|
|
3
|
+
typescript: typeof ts;
|
|
4
|
+
}): {
|
|
5
|
+
create: (info: ts.server.PluginCreateInfo) => ts.LanguageService;
|
|
6
|
+
getExternalFiles: (project: ts.server.Project) => string[];
|
|
7
|
+
};
|
|
8
|
+
export = init;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
const language_service_1 = require("./language-service");
|
|
6
|
+
const salesforce_1 = require("./lib/salesforce");
|
|
7
|
+
const ts_1 = require("./lib/ts");
|
|
8
|
+
const projectContext_1 = __importDefault(require("./projectContext"));
|
|
9
|
+
const vfs_1 = require("./vfs");
|
|
10
|
+
function init(modules) {
|
|
11
|
+
const { typescript } = modules;
|
|
12
|
+
/** Tracks sessions that have had handlers added */
|
|
13
|
+
const sessionWithHandlers = new WeakSet();
|
|
14
|
+
function create(info) {
|
|
15
|
+
const workspace = (0, salesforce_1.findSalesforceWorkspaceRoot)(typescript, info.project.getCurrentDirectory());
|
|
16
|
+
if (!workspace) {
|
|
17
|
+
return info.languageService;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* If both `jsconfig.json` and `tsconfig.json` exist in the same project directory,
|
|
21
|
+
* prefer `tsconfig.json` and ignore the `jsconfig.json` project.
|
|
22
|
+
*
|
|
23
|
+
* This mirrors TypeScript's own project resolution behavior and prevents
|
|
24
|
+
* duplicate project contexts and potential conflicts.
|
|
25
|
+
*/
|
|
26
|
+
const projectName = info.project.getProjectName();
|
|
27
|
+
if (projectName.endsWith("jsconfig.json") &&
|
|
28
|
+
(0, ts_1.hasEquivalentProjectCounterpart)(typescript, projectName)) {
|
|
29
|
+
return info.languageService;
|
|
30
|
+
}
|
|
31
|
+
setupSessionHandlers(info.session);
|
|
32
|
+
const vfs = new vfs_1.VirtualFileStore();
|
|
33
|
+
const context = new projectContext_1.default(workspace, typescript, info.project, info.languageServiceHost, vfs);
|
|
34
|
+
return (0, language_service_1.decorateLanguageService)(workspace, typescript, info.languageServiceHost, info.languageService, vfs, () => context.dispose());
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @param session The TypeScript server session instance.
|
|
38
|
+
*/
|
|
39
|
+
function setupSessionHandlers(session) {
|
|
40
|
+
if (!session || sessionWithHandlers.has(session))
|
|
41
|
+
return;
|
|
42
|
+
sessionWithHandlers.add(session);
|
|
43
|
+
// note: Placeholder for future session protocol handlers
|
|
44
|
+
/*session.addProtocolHandler("<specifier>", (request) => {
|
|
45
|
+
return {
|
|
46
|
+
response: { message: "<message>" },
|
|
47
|
+
responseRequired: true,
|
|
48
|
+
};
|
|
49
|
+
});*/
|
|
50
|
+
}
|
|
51
|
+
function getExternalFiles(project) {
|
|
52
|
+
const workspace = (0, salesforce_1.findSalesforceWorkspaceRoot)(typescript, project.getCurrentDirectory());
|
|
53
|
+
if (!workspace) {
|
|
54
|
+
return [];
|
|
55
|
+
}
|
|
56
|
+
const context = projectContext_1.default.get(typescript, workspace, project.getProjectName());
|
|
57
|
+
return context?.vfs.list() ?? [];
|
|
58
|
+
}
|
|
59
|
+
return { create, getExternalFiles };
|
|
60
|
+
}
|
|
61
|
+
module.exports = init;
|
|
62
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AACA,yDAA6D;AAC7D,iDAA+D;AAC/D,iCAA2D;AAC3D,sEAA8C;AAC9C,+BAAyC;AAEzC,SAAS,IAAI,CAAC,OAAkC;IAC/C,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IAE/B,mDAAmD;IACnD,MAAM,mBAAmB,GAAG,IAAI,OAAO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C7B,CAAC;QACF,IAAI,CAAC,SAAS,EAAE,CAAC;YAChB,OAAO,EAAE,CAAC;QACX,CAAC;QAED,MAAM,OAAO,GAAG,wBAAc,CAAC,GAAG,CACjC,UAAU,EACV,SAAS,EACT,OAAO,CAAC,cAAc,EAAE,CACxB,CAAC;QACF,OAAO,OAAO,EAAE,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC;IAClC,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAC;AACrC,CAAC;AAED,iBAAS,IAAI,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as ts from "typescript/lib/tsserverlibrary";
|
|
2
|
+
import type { VirtualFileStore } from "../vfs";
|
|
3
|
+
/**
|
|
4
|
+
* Decorates the TypeScript Language Service and its Host with additional functionality
|
|
5
|
+
* specific to Salesforce TypeScript projects.
|
|
6
|
+
*
|
|
7
|
+
* @param workspace The workspace directory path.
|
|
8
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
9
|
+
* @param host The TypeScript Language Service Host instance to decorate.
|
|
10
|
+
* @param ls The TypeScript Language Service instance to decorate.
|
|
11
|
+
* @param vfs The Virtual File Store instance for managing virtual files.
|
|
12
|
+
* @param dispose A callback function to execute when the Language Service is disposed.
|
|
13
|
+
*/
|
|
14
|
+
export declare function decorateLanguageService(workspace: string, typescript: typeof ts, host: ts.LanguageServiceHost, ls: ts.LanguageService, vfs: VirtualFileStore, dispose: () => void): ts.LanguageService;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.decorateLanguageService = decorateLanguageService;
|
|
7
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
8
|
+
const projectContext_1 = __importDefault(require("../projectContext"));
|
|
9
|
+
/**
|
|
10
|
+
* Decorates the TypeScript Language Service and its Host with additional functionality
|
|
11
|
+
* specific to Salesforce TypeScript projects.
|
|
12
|
+
*
|
|
13
|
+
* @param workspace The workspace directory path.
|
|
14
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
15
|
+
* @param host The TypeScript Language Service Host instance to decorate.
|
|
16
|
+
* @param ls The TypeScript Language Service instance to decorate.
|
|
17
|
+
* @param vfs The Virtual File Store instance for managing virtual files.
|
|
18
|
+
* @param dispose A callback function to execute when the Language Service is disposed.
|
|
19
|
+
*/
|
|
20
|
+
function decorateLanguageService(workspace, typescript, host, ls, vfs, dispose) {
|
|
21
|
+
decorateLanguageServiceHost(workspace, typescript, host, vfs);
|
|
22
|
+
decorateLanguageServiceInner(ls, dispose);
|
|
23
|
+
return ls;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Decorates the TypeScript Language Service Host to include virtual files
|
|
27
|
+
* managed by the provided Application.
|
|
28
|
+
*
|
|
29
|
+
* @param workspace The workspace directory path.
|
|
30
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
31
|
+
* @param host The TypeScript Language Service Host instance to decorate.
|
|
32
|
+
* @param vfs The Virtual File Store instance for managing virtual files.
|
|
33
|
+
*/
|
|
34
|
+
function decorateLanguageServiceHost(workspace, typescript, host, vfs) {
|
|
35
|
+
const orig = {
|
|
36
|
+
getScriptFileNames: host.getScriptFileNames?.bind(host),
|
|
37
|
+
getScriptSnapshot: host.getScriptSnapshot?.bind(host),
|
|
38
|
+
getScriptVersion: host.getScriptVersion?.bind(host),
|
|
39
|
+
readFile: host.readFile?.bind(host),
|
|
40
|
+
fileExists: host.fileExists?.bind(host),
|
|
41
|
+
resolveModuleNameLiterals: host.resolveModuleNameLiterals?.bind(host),
|
|
42
|
+
};
|
|
43
|
+
host.getScriptFileNames = () => {
|
|
44
|
+
const fileNames = orig.getScriptFileNames?.() ?? [];
|
|
45
|
+
return [
|
|
46
|
+
...fileNames,
|
|
47
|
+
...Array.from(vfs.list()).filter((vf) => !fileNames.includes(vf)),
|
|
48
|
+
];
|
|
49
|
+
};
|
|
50
|
+
host.getScriptSnapshot = (fileName) => {
|
|
51
|
+
const normalized = typescript.server.toNormalizedPath(fileName);
|
|
52
|
+
const content = vfs.get(normalized)?.buffer.toString("utf8");
|
|
53
|
+
if (content !== undefined) {
|
|
54
|
+
return typescript.ScriptSnapshot.fromString(content);
|
|
55
|
+
}
|
|
56
|
+
return orig.getScriptSnapshot?.(fileName);
|
|
57
|
+
};
|
|
58
|
+
host.getScriptVersion = (fileName) => {
|
|
59
|
+
const normalized = typescript.server.toNormalizedPath(fileName);
|
|
60
|
+
const version = vfs.get(normalized)?.version.toString();
|
|
61
|
+
if (version !== undefined) {
|
|
62
|
+
return version;
|
|
63
|
+
}
|
|
64
|
+
return orig.getScriptVersion?.(fileName);
|
|
65
|
+
};
|
|
66
|
+
host.readFile = (fileName) => {
|
|
67
|
+
const normalized = typescript.server.toNormalizedPath(fileName);
|
|
68
|
+
const content = vfs.get(normalized)?.buffer.toString("utf8");
|
|
69
|
+
if (content !== undefined) {
|
|
70
|
+
return content;
|
|
71
|
+
}
|
|
72
|
+
return orig.readFile?.(fileName);
|
|
73
|
+
};
|
|
74
|
+
host.fileExists = (fileName) => {
|
|
75
|
+
const normalized = typescript.server.toNormalizedPath(fileName);
|
|
76
|
+
return vfs.has(normalized) || (orig.fileExists?.(fileName) ?? false);
|
|
77
|
+
};
|
|
78
|
+
host.resolveModuleNameLiterals = (moduleLiterals, containingFile, redirectedReference, options, containingSourceFile, reusedNames) => {
|
|
79
|
+
const resolutions = orig.resolveModuleNameLiterals?.(moduleLiterals, containingFile, redirectedReference, options, containingSourceFile, reusedNames) ?? [];
|
|
80
|
+
return resolutions.map((resolution, index) => {
|
|
81
|
+
const moduleLiteral = moduleLiterals[index];
|
|
82
|
+
const moduleName = moduleLiteral.text;
|
|
83
|
+
/**
|
|
84
|
+
* TODO: Namespace support
|
|
85
|
+
*
|
|
86
|
+
* Component paths are currently resolved assuming the default namespace (`c/`).
|
|
87
|
+
*
|
|
88
|
+
* Proper namespace handling requires:
|
|
89
|
+
* - A workspace-level namespace registry
|
|
90
|
+
* - A source of truth for namespace resolution (e.g. org metadata / config)
|
|
91
|
+
* - Overridable resolution logic shared across projects
|
|
92
|
+
*
|
|
93
|
+
* This is intentionally deferred until a namespace abstraction exists.
|
|
94
|
+
*/
|
|
95
|
+
if (!moduleName.startsWith("c/")) {
|
|
96
|
+
return resolution;
|
|
97
|
+
}
|
|
98
|
+
const componentName = moduleName.substring(2);
|
|
99
|
+
const contexts = projectContext_1.default.getAllInWorkspace(typescript, workspace);
|
|
100
|
+
for (const ctx of contexts) {
|
|
101
|
+
const componentFolder = node_path_1.default.join(ctx.project.getCurrentDirectory(), componentName);
|
|
102
|
+
/**
|
|
103
|
+
* Prioritized in order specified
|
|
104
|
+
*/
|
|
105
|
+
const extensions = {
|
|
106
|
+
".d.ts": typescript.Extension.Dts,
|
|
107
|
+
".ts": typescript.Extension.Ts,
|
|
108
|
+
".js": typescript.Extension.Js,
|
|
109
|
+
};
|
|
110
|
+
for (const [ext, extension] of Object.entries(extensions)) {
|
|
111
|
+
const candidate = node_path_1.default.join(componentFolder, `${componentName}${ext}`);
|
|
112
|
+
if (ctx.host.fileExists?.(candidate)) {
|
|
113
|
+
/**
|
|
114
|
+
* Prioritizes first found match across all projects in workspace
|
|
115
|
+
*/
|
|
116
|
+
return {
|
|
117
|
+
resolvedModule: {
|
|
118
|
+
extension,
|
|
119
|
+
resolvedFileName: typescript.server.toNormalizedPath(candidate),
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return resolution;
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Decorates the TypeScript Language Service with additional functionality.
|
|
131
|
+
*
|
|
132
|
+
* @param ls The TypeScript Language Service instance to decorate.
|
|
133
|
+
* @param dispose A callback function to execute when the Language Service is disposed.
|
|
134
|
+
*/
|
|
135
|
+
function decorateLanguageServiceInner(ls, dispose) {
|
|
136
|
+
const orig = {
|
|
137
|
+
dispose: ls.dispose?.bind(ls),
|
|
138
|
+
};
|
|
139
|
+
ls.dispose = () => {
|
|
140
|
+
dispose();
|
|
141
|
+
orig.dispose?.();
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/language-service/index.ts"],"names":[],"mappings":";;;;;AAgBA,0DAYC;AA5BD,0DAA6B;AAE7B,uEAA+C;AAG/C;;;;;;;;;;GAUG;AACH,SAAgB,uBAAuB,CACtC,SAAiB,EACjB,UAAqB,EACrB,IAA4B,EAC5B,EAAsB,EACtB,GAAqB,EACrB,OAAmB;IAEnB,2BAA2B,CAAC,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;IAC9D,4BAA4B,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAE1C,OAAO,EAAE,CAAC;AACX,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,2BAA2B,CACnC,SAAiB,EACjB,UAAqB,EACrB,IAA4B,EAC5B,GAAqB;IAErB,MAAM,IAAI,GAAG;QACZ,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,IAAI,CAAC;QACvD,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,IAAI,CAAC;QACrD,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,IAAI,CAAC;QACnD,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC;QACnC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC;QACvC,yBAAyB,EAAE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C,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC;KAC7B,CAAC;IAEF,EAAE,CAAC,OAAO,GAAG,GAAG,EAAE;QACjB,OAAO,EAAE,CAAC;QACV,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;IAClB,CAAC,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type ts from "typescript/lib/tsserverlibrary";
|
|
2
|
+
/**
|
|
3
|
+
* Locates the root directory of a Salesforce (SFDX / SF) workspace.
|
|
4
|
+
*
|
|
5
|
+
* @description
|
|
6
|
+
* Traverses upward from the given `startDir`, looking for any of the following
|
|
7
|
+
* well-known Salesforce workspace markers:
|
|
8
|
+
*
|
|
9
|
+
* - `sfdx-project.json` – legacy SFDX project root
|
|
10
|
+
* - `.sf/` – new Salesforce CLI workspace root
|
|
11
|
+
* - `.sfdx/` – legacy Salesforce CLI workspace root
|
|
12
|
+
*
|
|
13
|
+
* Stops at the filesystem root if no markers are found.
|
|
14
|
+
*
|
|
15
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
16
|
+
* @param startDir The starting directory for the upward search.
|
|
17
|
+
* @return The resolved path to the Salesforce workspace root, or `undefined` if not found.
|
|
18
|
+
*/
|
|
19
|
+
export declare function findSalesforceWorkspaceRoot(typescript: typeof ts, startDir: string): string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Determines whether a TypeScript project belongs to a Salesforce (SFDX / SF) workspace.
|
|
22
|
+
* Internally calls {@link findSalesforceWorkspaceRoot} to detect workspace markers.
|
|
23
|
+
*
|
|
24
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
25
|
+
* @param project The TypeScript server project instance.
|
|
26
|
+
* @return `true` if a Salesforce workspace root is found; otherwise `false`.
|
|
27
|
+
*/
|
|
28
|
+
export declare function isSalesforceWorkspace(typescript: typeof ts, project: ts.server.Project): boolean;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findSalesforceWorkspaceRoot = findSalesforceWorkspaceRoot;
|
|
4
|
+
exports.isSalesforceWorkspace = isSalesforceWorkspace;
|
|
5
|
+
/**
|
|
6
|
+
* Locates the root directory of a Salesforce (SFDX / SF) workspace.
|
|
7
|
+
*
|
|
8
|
+
* @description
|
|
9
|
+
* Traverses upward from the given `startDir`, looking for any of the following
|
|
10
|
+
* well-known Salesforce workspace markers:
|
|
11
|
+
*
|
|
12
|
+
* - `sfdx-project.json` – legacy SFDX project root
|
|
13
|
+
* - `.sf/` – new Salesforce CLI workspace root
|
|
14
|
+
* - `.sfdx/` – legacy Salesforce CLI workspace root
|
|
15
|
+
*
|
|
16
|
+
* Stops at the filesystem root if no markers are found.
|
|
17
|
+
*
|
|
18
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
19
|
+
* @param startDir The starting directory for the upward search.
|
|
20
|
+
* @return The resolved path to the Salesforce workspace root, or `undefined` if not found.
|
|
21
|
+
*/
|
|
22
|
+
function findSalesforceWorkspaceRoot(typescript, startDir) {
|
|
23
|
+
let currentPath = typescript.sys.resolvePath(startDir);
|
|
24
|
+
while (true) {
|
|
25
|
+
const sfdxJson = typescript.sys.resolvePath(`${currentPath}/sfdx-project.json`);
|
|
26
|
+
const sfDir = typescript.sys.resolvePath(`${currentPath}/.sf`);
|
|
27
|
+
const sfdxDir = typescript.sys.resolvePath(`${currentPath}/.sfdx`);
|
|
28
|
+
if (typescript.sys.fileExists(sfdxJson) ||
|
|
29
|
+
typescript.sys.directoryExists?.(sfDir) ||
|
|
30
|
+
typescript.sys.directoryExists?.(sfdxDir)) {
|
|
31
|
+
return currentPath;
|
|
32
|
+
}
|
|
33
|
+
const parent = typescript.sys.resolvePath(`${currentPath}/..`);
|
|
34
|
+
if (parent === currentPath) {
|
|
35
|
+
/** Reached filesystem root */
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
currentPath = parent;
|
|
39
|
+
}
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Determines whether a TypeScript project belongs to a Salesforce (SFDX / SF) workspace.
|
|
44
|
+
* Internally calls {@link findSalesforceWorkspaceRoot} to detect workspace markers.
|
|
45
|
+
*
|
|
46
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
47
|
+
* @param project The TypeScript server project instance.
|
|
48
|
+
* @return `true` if a Salesforce workspace root is found; otherwise `false`.
|
|
49
|
+
*/
|
|
50
|
+
function isSalesforceWorkspace(typescript, project) {
|
|
51
|
+
return !!findSalesforceWorkspaceRoot(typescript, project.getCurrentDirectory());
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=salesforce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"salesforce.js","sourceRoot":"","sources":["../../../src/lib/salesforce.ts"],"names":[],"mappings":";;AAmBA,kEA+BC;AAUD,sDAQC;AAlED;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,2BAA2B,CAC1C,UAAqB,EACrB,QAAgB;IAEhB,IAAI,WAAW,GAAG,UAAU,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAEvD,OAAO,IAAI,EAAE,CAAC;QACb,MAAM,QAAQ,GAAG,UAAU,CAAC,GAAG,CAAC,WAAW,CAC1C,GAAG,WAAW,oBAAoB,CAClC,CAAC;QACF,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,WAAW,MAAM,CAAC,CAAC;QAC/D,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,WAAW,QAAQ,CAAC,CAAC;QAEnE,IACC,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC;YACnC,UAAU,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,KAAK,CAAC;YACvC,UAAU,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,OAAO,CAAC,EACxC,CAAC;YACF,OAAO,WAAW,CAAC;QACpB,CAAC;QAED,MAAM,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,WAAW,KAAK,CAAC,CAAC;QAC/D,IAAI,MAAM,KAAK,WAAW,EAAE,CAAC;YAC5B,8BAA8B;YAC9B,MAAM;QACP,CAAC;QAED,WAAW,GAAG,MAAM,CAAC;IACtB,CAAC;IAED,OAAO,SAAS,CAAC;AAClB,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,qBAAqB,CACpC,UAAqB,EACrB,OAA0B;IAE1B,OAAO,CAAC,CAAC,2BAA2B,CACnC,UAAU,EACV,OAAO,CAAC,mBAAmB,EAAE,CAC7B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as ts from "typescript/lib/tsserverlibrary";
|
|
2
|
+
/**
|
|
3
|
+
* Loads a file into the given TypeScript project if it is not already present.
|
|
4
|
+
*
|
|
5
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
6
|
+
* @param project The TypeScript server project instance.
|
|
7
|
+
* @param path The file path to load.
|
|
8
|
+
* @param content The content of the file to load. Used
|
|
9
|
+
*/
|
|
10
|
+
export declare function loadFile(typescript: typeof ts, project: ts.server.Project, path: string, content: string): void;
|
|
11
|
+
/**
|
|
12
|
+
* Unloads a file from the given TypeScript project if it is present.
|
|
13
|
+
*
|
|
14
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
15
|
+
* @param project The TypeScript server project instance.
|
|
16
|
+
* @param path The file path to unload.
|
|
17
|
+
*/
|
|
18
|
+
export declare function unloadFile(typescript: typeof ts, project: ts.server.Project, path: string): void;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadFile = loadFile;
|
|
4
|
+
exports.unloadFile = unloadFile;
|
|
5
|
+
/**
|
|
6
|
+
* Loads a file into the given TypeScript project if it is not already present.
|
|
7
|
+
*
|
|
8
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
9
|
+
* @param project The TypeScript server project instance.
|
|
10
|
+
* @param path The file path to load.
|
|
11
|
+
* @param content The content of the file to load. Used
|
|
12
|
+
*/
|
|
13
|
+
function loadFile(typescript, project, path, content) {
|
|
14
|
+
const normalizedPath = typescript.server.toNormalizedPath(path);
|
|
15
|
+
if (project.containsFile(normalizedPath)) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
const scriptInfo = project.projectService.getOrCreateScriptInfoForNormalizedPath(normalizedPath,
|
|
19
|
+
/*openedByClient*/ true, content);
|
|
20
|
+
if (!scriptInfo) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (!project.projectService.openFiles.has(scriptInfo.path)) {
|
|
24
|
+
project.projectService.openFiles.set(scriptInfo.path, undefined);
|
|
25
|
+
}
|
|
26
|
+
// biome-ignore lint/suspicious/noExplicitAny: Need access to `projectRootPath`
|
|
27
|
+
if (project.projectRootPath) {
|
|
28
|
+
/**
|
|
29
|
+
* Only add the file to the project if it has a projectRootPath, because else
|
|
30
|
+
* a ts.Assert error will be thrown when multiple inferred projects are tried
|
|
31
|
+
* to be merged.
|
|
32
|
+
*/
|
|
33
|
+
project.addRoot(scriptInfo);
|
|
34
|
+
}
|
|
35
|
+
project.updateGraph();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Unloads a file from the given TypeScript project if it is present.
|
|
39
|
+
*
|
|
40
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
41
|
+
* @param project The TypeScript server project instance.
|
|
42
|
+
* @param path The file path to unload.
|
|
43
|
+
*/
|
|
44
|
+
function unloadFile(typescript, project, path) {
|
|
45
|
+
const normalizedPath = typescript.server.toNormalizedPath(path);
|
|
46
|
+
const scriptInfo = project.projectService.getScriptInfo(normalizedPath);
|
|
47
|
+
if (!scriptInfo) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
project.removeFile(scriptInfo,
|
|
51
|
+
/*fileExists*/ false,
|
|
52
|
+
/*detachFromProject*/ true);
|
|
53
|
+
project.projectService.openFiles.delete(scriptInfo.path);
|
|
54
|
+
project.updateGraph();
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=file.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../../../src/lib/ts/file.ts"],"names":[],"mappings":";;AAUA,4BAqCC;AASD,gCAmBC;AAzED;;;;;;;GAOG;AACH,SAAgB,QAAQ,CACvB,UAAqB,EACrB,OAA0B,EAC1B,IAAY,EACZ,OAAe;IAEf,MAAM,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAChE,IAAI,OAAO,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE,CAAC;QAC1C,OAAO;IACR,CAAC;IAED,MAAM,UAAU,GACf,OAAO,CAAC,cAAc,CAAC,sCAAsC,CAC5D,cAAc;IACd,kBAAkB,CAAC,IAAI,EACvB,OAAO,CACP,CAAC;IAEH,IAAI,CAAC,UAAU,EAAE,CAAC;QACjB,OAAO;IACR,CAAC;IAED,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QAC5D,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAClE,CAAC;IAED,+EAA+E;IAC/E,IAAK,OAAe,CAAC,eAAe,EAAE,CAAC;QACtC;;;;WAIG;QACH,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAC7B,CAAC;IAED,OAAO,CAAC,WAAW,EAAE,CAAC;AACvB,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,UAAU,CACzB,UAAqB,EACrB,OAA0B,EAC1B,IAAY;IAEZ,MAAM,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAChE,MAAM,UAAU,GAAG,OAAO,CAAC,cAAc,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;IACxE,IAAI,CAAC,UAAU,EAAE,CAAC;QACjB,OAAO;IACR,CAAC;IAED,OAAO,CAAC,UAAU,CACjB,UAAU;IACV,cAAc,CAAC,KAAK;IACpB,qBAAqB,CAAC,IAAI,CAC1B,CAAC;IACF,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAEzD,OAAO,CAAC,WAAW,EAAE,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type ts from "typescript/lib/tsserverlibrary";
|
|
2
|
+
/**
|
|
3
|
+
* Determines whether a Javascript/TypeScript project has an equivalent counterpart
|
|
4
|
+
*
|
|
5
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
6
|
+
* @param path The path to the jsconfig.json or tsconfig.json file.
|
|
7
|
+
* @return `true` if an equivalent counterpart project file exists; otherwise `false`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function hasEquivalentProjectCounterpart(typescript: typeof ts, path: string): boolean;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hasEquivalentProjectCounterpart = hasEquivalentProjectCounterpart;
|
|
4
|
+
/**
|
|
5
|
+
* Determines whether a Javascript/TypeScript project has an equivalent counterpart
|
|
6
|
+
*
|
|
7
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
8
|
+
* @param path The path to the jsconfig.json or tsconfig.json file.
|
|
9
|
+
* @return `true` if an equivalent counterpart project file exists; otherwise `false`.
|
|
10
|
+
*/
|
|
11
|
+
function hasEquivalentProjectCounterpart(typescript, path) {
|
|
12
|
+
if (!path.endsWith("jsconfig.json") && !path.endsWith("tsconfig.json")) {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
const parent = typescript.sys.resolvePath(`${path}/..`);
|
|
16
|
+
const counterpart = path.endsWith("jsconfig.json")
|
|
17
|
+
? typescript.sys.resolvePath(`${parent}/tsconfig.json`)
|
|
18
|
+
: typescript.sys.resolvePath(`${parent}/jsconfig.json`);
|
|
19
|
+
return typescript.sys.fileExists(counterpart);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/ts/index.ts"],"names":[],"mappings":";;AASA,0EAcC;AArBD;;;;;;GAMG;AACH,SAAgB,+BAA+B,CAC9C,UAAqB,EACrB,IAAY;IAEZ,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC;QACxE,OAAO,KAAK,CAAC;IACd,CAAC;IAED,MAAM,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,IAAI,KAAK,CAAC,CAAC;IACxD,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC;QACjD,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,MAAM,gBAAgB,CAAC;QACvD,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,MAAM,gBAAgB,CAAC,CAAC;IAEzD,OAAO,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as ts from "typescript/lib/tsserverlibrary";
|
|
2
|
+
/**
|
|
3
|
+
* @description
|
|
4
|
+
* Temporarily patches the CompilerOptions of a TypeScript Program instance
|
|
5
|
+
* for the duration of the provided function execution.
|
|
6
|
+
*
|
|
7
|
+
* This is useful for scenarios where certain CompilerOptions need to be
|
|
8
|
+
* overridden or modified temporarily without affecting the original Program
|
|
9
|
+
* state.
|
|
10
|
+
*
|
|
11
|
+
* @param program The TypeScript Program instance to patch.
|
|
12
|
+
* @param patch An object containing the CompilerOptions to patch.
|
|
13
|
+
* @param fn A function to execute while the CompilerOptions are patched.
|
|
14
|
+
*/
|
|
15
|
+
export declare function withPatchedCompilerOptions<T>(program: ts.Program, patch: Partial<ts.CompilerOptions>, fn: () => T): T;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.withPatchedCompilerOptions = withPatchedCompilerOptions;
|
|
4
|
+
/**
|
|
5
|
+
* @description
|
|
6
|
+
* Temporarily patches the CompilerOptions of a TypeScript Program instance
|
|
7
|
+
* for the duration of the provided function execution.
|
|
8
|
+
*
|
|
9
|
+
* This is useful for scenarios where certain CompilerOptions need to be
|
|
10
|
+
* overridden or modified temporarily without affecting the original Program
|
|
11
|
+
* state.
|
|
12
|
+
*
|
|
13
|
+
* @param program The TypeScript Program instance to patch.
|
|
14
|
+
* @param patch An object containing the CompilerOptions to patch.
|
|
15
|
+
* @param fn A function to execute while the CompilerOptions are patched.
|
|
16
|
+
*/
|
|
17
|
+
function withPatchedCompilerOptions(program, patch, fn) {
|
|
18
|
+
const originalGetCompilerOptions = program.getCompilerOptions.bind(program);
|
|
19
|
+
try {
|
|
20
|
+
program.getCompilerOptions = () => {
|
|
21
|
+
const options = originalGetCompilerOptions();
|
|
22
|
+
return {
|
|
23
|
+
...options,
|
|
24
|
+
...patch,
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
return fn();
|
|
28
|
+
}
|
|
29
|
+
finally {
|
|
30
|
+
program.getCompilerOptions = originalGetCompilerOptions;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=patch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch.js","sourceRoot":"","sources":["../../../../src/lib/ts/patch.ts"],"names":[],"mappings":";;AAeA,gEAmBC;AAhCD;;;;;;;;;;;;GAYG;AACH,SAAgB,0BAA0B,CACzC,OAAmB,EACnB,KAAkC,EAClC,EAAW;IAEX,MAAM,0BAA0B,GAAG,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAE5E,IAAI,CAAC;QACJ,OAAO,CAAC,kBAAkB,GAAG,GAAG,EAAE;YACjC,MAAM,OAAO,GAAG,0BAA0B,EAAE,CAAC;YAC7C,OAAO;gBACN,GAAG,OAAO;gBACV,GAAG,KAAK;aACR,CAAC;QACH,CAAC,CAAC;QACF,OAAO,EAAE,EAAE,CAAC;IACb,CAAC;YAAS,CAAC;QACV,OAAO,CAAC,kBAAkB,GAAG,0BAA0B,CAAC;IACzD,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type * as ts from "typescript/lib/tsserverlibrary";
|
|
2
|
+
import type { VirtualFileStore } from "./vfs";
|
|
3
|
+
/**
|
|
4
|
+
* Represents a single TypeScript project context within a Salesforce workspace.
|
|
5
|
+
*/
|
|
6
|
+
export default class ProjectContext {
|
|
7
|
+
readonly typescript: typeof ts;
|
|
8
|
+
readonly project: ts.server.Project;
|
|
9
|
+
readonly host: ts.LanguageServiceHost;
|
|
10
|
+
readonly vfs: VirtualFileStore;
|
|
11
|
+
/**
|
|
12
|
+
* Registry of all ProjectContext instances, organized by Salesforce workspace root.
|
|
13
|
+
*
|
|
14
|
+
* @description
|
|
15
|
+
* Structure:
|
|
16
|
+
* ```
|
|
17
|
+
* {
|
|
18
|
+
* "<sf-root>": Map<"<project-name>", ProjectContext>
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
private static readonly workspaces;
|
|
23
|
+
/**
|
|
24
|
+
* Ensures that a workspace entry exists in the global registry.
|
|
25
|
+
*
|
|
26
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
27
|
+
* @param workspace The Salesforce workspace root path.
|
|
28
|
+
*/
|
|
29
|
+
private static ensureWorkspace;
|
|
30
|
+
/**
|
|
31
|
+
* Registers a new ProjectContext instance.
|
|
32
|
+
*
|
|
33
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
34
|
+
* @param workspace The Salesforce workspace root path.
|
|
35
|
+
* @param projectName The name of the TypeScript project.
|
|
36
|
+
* @param ctx The ProjectContext instance to register.
|
|
37
|
+
*/
|
|
38
|
+
private static register;
|
|
39
|
+
/**
|
|
40
|
+
* Unregisters a ProjectContext instance.
|
|
41
|
+
*
|
|
42
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
43
|
+
* @param workspace The Salesforce workspace root path.
|
|
44
|
+
* @param projectName The name of the TypeScript project.
|
|
45
|
+
*/
|
|
46
|
+
private static unregister;
|
|
47
|
+
/**
|
|
48
|
+
* Retrieves a specific ProjectContext instance.
|
|
49
|
+
*
|
|
50
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
51
|
+
* @param workspace The Salesforce workspace root path.
|
|
52
|
+
* @param projectName The name of the TypeScript project.
|
|
53
|
+
*/
|
|
54
|
+
static get(typescript: typeof ts, workspace: string, projectName: string): ProjectContext | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Retrieves all contexts within a given Salesforce workspace.
|
|
57
|
+
*
|
|
58
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
59
|
+
* @param workspace The Salesforce workspace root path.
|
|
60
|
+
*/
|
|
61
|
+
static getAllInWorkspace(typescript: typeof ts, workspace: string): ProjectContext[];
|
|
62
|
+
/**
|
|
63
|
+
* Retrieves the global registry of all workspaces.
|
|
64
|
+
*/
|
|
65
|
+
static getAllWorkspaces(): Map<string, Map<string, ProjectContext>>;
|
|
66
|
+
readonly workspace: string;
|
|
67
|
+
/**
|
|
68
|
+
* @param workspace The Salesforce workspace root path.
|
|
69
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
70
|
+
* @param project The TypeScript server project instance.
|
|
71
|
+
* @param host The TypeScript Language Service Host instance.
|
|
72
|
+
* @param vfs The Virtual File Store instance for managing virtual files.
|
|
73
|
+
*/
|
|
74
|
+
constructor(workspace: string, typescript: typeof ts, project: ts.server.Project, host: ts.LanguageServiceHost, vfs: VirtualFileStore);
|
|
75
|
+
/**
|
|
76
|
+
* Disposes of the project context, cleaning up resources and unregistering it.
|
|
77
|
+
*/
|
|
78
|
+
dispose(): void;
|
|
79
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Represents a single TypeScript project context within a Salesforce workspace.
|
|
5
|
+
*/
|
|
6
|
+
class ProjectContext {
|
|
7
|
+
typescript;
|
|
8
|
+
project;
|
|
9
|
+
host;
|
|
10
|
+
vfs;
|
|
11
|
+
/**
|
|
12
|
+
* Registry of all ProjectContext instances, organized by Salesforce workspace root.
|
|
13
|
+
*
|
|
14
|
+
* @description
|
|
15
|
+
* Structure:
|
|
16
|
+
* ```
|
|
17
|
+
* {
|
|
18
|
+
* "<sf-root>": Map<"<project-name>", ProjectContext>
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
static workspaces = new Map();
|
|
23
|
+
/**
|
|
24
|
+
* Ensures that a workspace entry exists in the global registry.
|
|
25
|
+
*
|
|
26
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
27
|
+
* @param workspace The Salesforce workspace root path.
|
|
28
|
+
*/
|
|
29
|
+
static ensureWorkspace(typescript, workspace) {
|
|
30
|
+
const normalized = typescript.server.toNormalizedPath(workspace);
|
|
31
|
+
let entry = ProjectContext.workspaces.get(normalized);
|
|
32
|
+
if (!entry) {
|
|
33
|
+
entry = new Map();
|
|
34
|
+
ProjectContext.workspaces.set(normalized, entry);
|
|
35
|
+
}
|
|
36
|
+
return entry;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Registers a new ProjectContext instance.
|
|
40
|
+
*
|
|
41
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
42
|
+
* @param workspace The Salesforce workspace root path.
|
|
43
|
+
* @param projectName The name of the TypeScript project.
|
|
44
|
+
* @param ctx The ProjectContext instance to register.
|
|
45
|
+
*/
|
|
46
|
+
static register(typescript, workspace, projectName, ctx) {
|
|
47
|
+
const normalizedWorkspace = typescript.server.toNormalizedPath(workspace);
|
|
48
|
+
const normalizedProject = typescript.server.toNormalizedPath(projectName);
|
|
49
|
+
const ws = ProjectContext.ensureWorkspace(typescript, normalizedWorkspace);
|
|
50
|
+
ws.set(normalizedProject, ctx);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Unregisters a ProjectContext instance.
|
|
54
|
+
*
|
|
55
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
56
|
+
* @param workspace The Salesforce workspace root path.
|
|
57
|
+
* @param projectName The name of the TypeScript project.
|
|
58
|
+
*/
|
|
59
|
+
static unregister(typescript, workspace, projectName) {
|
|
60
|
+
const normalizedWorkspace = typescript.server.toNormalizedPath(workspace);
|
|
61
|
+
const normalizedProject = typescript.server.toNormalizedPath(projectName);
|
|
62
|
+
const ws = ProjectContext.workspaces.get(normalizedWorkspace);
|
|
63
|
+
ws?.delete(normalizedProject);
|
|
64
|
+
if (ws && ws.size === 0) {
|
|
65
|
+
ProjectContext.workspaces.delete(normalizedWorkspace);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Retrieves a specific ProjectContext instance.
|
|
70
|
+
*
|
|
71
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
72
|
+
* @param workspace The Salesforce workspace root path.
|
|
73
|
+
* @param projectName The name of the TypeScript project.
|
|
74
|
+
*/
|
|
75
|
+
static get(typescript, workspace, projectName) {
|
|
76
|
+
const normalizedWorkspace = typescript.server.toNormalizedPath(workspace);
|
|
77
|
+
const normalizedProject = typescript.server.toNormalizedPath(projectName);
|
|
78
|
+
return ProjectContext.workspaces
|
|
79
|
+
.get(normalizedWorkspace)
|
|
80
|
+
?.get(normalizedProject);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Retrieves all contexts within a given Salesforce workspace.
|
|
84
|
+
*
|
|
85
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
86
|
+
* @param workspace The Salesforce workspace root path.
|
|
87
|
+
*/
|
|
88
|
+
static getAllInWorkspace(typescript, workspace) {
|
|
89
|
+
const normalizedWorkspace = typescript.server.toNormalizedPath(workspace);
|
|
90
|
+
const ws = ProjectContext.workspaces.get(normalizedWorkspace);
|
|
91
|
+
return ws ? Array.from(ws.values()) : [];
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Retrieves the global registry of all workspaces.
|
|
95
|
+
*/
|
|
96
|
+
static getAllWorkspaces() {
|
|
97
|
+
return ProjectContext.workspaces;
|
|
98
|
+
}
|
|
99
|
+
workspace;
|
|
100
|
+
/**
|
|
101
|
+
* @param workspace The Salesforce workspace root path.
|
|
102
|
+
* @param typescript The TypeScript module reference provided by the plugin.
|
|
103
|
+
* @param project The TypeScript server project instance.
|
|
104
|
+
* @param host The TypeScript Language Service Host instance.
|
|
105
|
+
* @param vfs The Virtual File Store instance for managing virtual files.
|
|
106
|
+
*/
|
|
107
|
+
constructor(workspace, typescript, project, host, vfs) {
|
|
108
|
+
this.typescript = typescript;
|
|
109
|
+
this.project = project;
|
|
110
|
+
this.host = host;
|
|
111
|
+
this.vfs = vfs;
|
|
112
|
+
this.workspace = this.typescript.server.toNormalizedPath(workspace);
|
|
113
|
+
const normalizedProjectName = this.typescript.server.toNormalizedPath(this.project.getProjectName());
|
|
114
|
+
ProjectContext.register(this.typescript, this.workspace, normalizedProjectName, this);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Disposes of the project context, cleaning up resources and unregistering it.
|
|
118
|
+
*/
|
|
119
|
+
dispose() {
|
|
120
|
+
try {
|
|
121
|
+
const normalizedProjectName = this.typescript.server.toNormalizedPath(this.project.getProjectName());
|
|
122
|
+
ProjectContext.unregister(this.typescript, this.workspace, normalizedProjectName);
|
|
123
|
+
}
|
|
124
|
+
catch {
|
|
125
|
+
/** ignore errors during shutdown (e.g. project already disposed) */
|
|
126
|
+
}
|
|
127
|
+
this.vfs.clear();
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
exports.default = ProjectContext;
|
|
131
|
+
//# sourceMappingURL=projectContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projectContext.js","sourceRoot":"","sources":["../../src/projectContext.ts"],"names":[],"mappings":";;AAGA;;GAEG;AACH,MAAqB,cAAc;IAyHxB;IACA;IACA;IACA;IA3HV;;;;;;;;;;OAUG;IACK,MAAM,CAAU,UAAU,GAAG,IAAI,GAAG,EAGzC,CAAC;IAEJ;;;;;OAKG;IACK,MAAM,CAAC,eAAe,CAAC,UAAqB,EAAE,SAAiB;QACtE,MAAM,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;QACjE,IAAI,KAAK,GAAG,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QACtD,IAAI,CAAC,KAAK,EAAE,CAAC;YACZ,KAAK,GAAG,IAAI,GAAG,EAAE,CAAC;YAClB,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QAClD,CAAC;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IAED;;;;;;;OAOG;IACK,MAAM,CAAC,QAAQ,CACtB,UAAqB,EACrB,SAAiB,EACjB,WAAmB,EACnB,GAAmB;QAEnB,MAAM,mBAAmB,GAAG,UAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;QAC1E,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;YACR,oEAAoE;QACrE,CAAC;QAED,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;IAClB,CAAC;;AA7JF,iCA8JC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A simple in-memory virtual file system for storing file contents and versions.
|
|
3
|
+
*/
|
|
4
|
+
export interface VirtualFile {
|
|
5
|
+
buffer: Buffer;
|
|
6
|
+
version: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A store for managing virtual files.
|
|
10
|
+
*/
|
|
11
|
+
export declare class VirtualFileStore {
|
|
12
|
+
/**
|
|
13
|
+
* Map of file paths to their corresponding VirtualFile instances.
|
|
14
|
+
*
|
|
15
|
+
* @description
|
|
16
|
+
* Structure:
|
|
17
|
+
* ```
|
|
18
|
+
* {
|
|
19
|
+
* "<path>": VirtualFile
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
private files;
|
|
24
|
+
/**
|
|
25
|
+
* Sets the content of a virtual file, updating its version.
|
|
26
|
+
*
|
|
27
|
+
* @param path The file path to set in the virtual file system.
|
|
28
|
+
* @param content The content to store, either as a string or a Buffer.
|
|
29
|
+
*/
|
|
30
|
+
set(path: string, content: string | Buffer): void;
|
|
31
|
+
/**
|
|
32
|
+
* Sets a virtual file directly.
|
|
33
|
+
*
|
|
34
|
+
* @param path The file path to set in the virtual file system.
|
|
35
|
+
* @param virtualFile The VirtualFile instance to store.
|
|
36
|
+
*/
|
|
37
|
+
setVirtualFile(path: string, virtualFile: VirtualFile): void;
|
|
38
|
+
/**
|
|
39
|
+
* Retrieves a virtual file by its path.
|
|
40
|
+
*
|
|
41
|
+
* @param path The file path to retrieve from the virtual file system.
|
|
42
|
+
*/
|
|
43
|
+
get(path: string): VirtualFile | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Checks if a virtual file exists at the given path.
|
|
46
|
+
*
|
|
47
|
+
* @param path The file path to check in the virtual file system.
|
|
48
|
+
*/
|
|
49
|
+
has(path: string): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Deletes a virtual file at the given path.
|
|
52
|
+
*
|
|
53
|
+
* @param path The file path to delete from the virtual file system.
|
|
54
|
+
*/
|
|
55
|
+
delete(path: string): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Clears all virtual files from the store.
|
|
58
|
+
*/
|
|
59
|
+
clear(): void;
|
|
60
|
+
/**
|
|
61
|
+
* Returns an array of all file paths in the virtual file system.
|
|
62
|
+
*/
|
|
63
|
+
list(): string[];
|
|
64
|
+
}
|
package/dist/src/vfs.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VirtualFileStore = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* A store for managing virtual files.
|
|
6
|
+
*/
|
|
7
|
+
class VirtualFileStore {
|
|
8
|
+
/**
|
|
9
|
+
* Map of file paths to their corresponding VirtualFile instances.
|
|
10
|
+
*
|
|
11
|
+
* @description
|
|
12
|
+
* Structure:
|
|
13
|
+
* ```
|
|
14
|
+
* {
|
|
15
|
+
* "<path>": VirtualFile
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
files = new Map();
|
|
20
|
+
/**
|
|
21
|
+
* Sets the content of a virtual file, updating its version.
|
|
22
|
+
*
|
|
23
|
+
* @param path The file path to set in the virtual file system.
|
|
24
|
+
* @param content The content to store, either as a string or a Buffer.
|
|
25
|
+
*/
|
|
26
|
+
set(path, content) {
|
|
27
|
+
const buffer = Buffer.isBuffer(content)
|
|
28
|
+
? content
|
|
29
|
+
: Buffer.from(content, "utf8");
|
|
30
|
+
const existing = this.files.get(path);
|
|
31
|
+
const version = (existing?.version ?? 0) + 1;
|
|
32
|
+
this.files.set(path, { buffer, version });
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Sets a virtual file directly.
|
|
36
|
+
*
|
|
37
|
+
* @param path The file path to set in the virtual file system.
|
|
38
|
+
* @param virtualFile The VirtualFile instance to store.
|
|
39
|
+
*/
|
|
40
|
+
setVirtualFile(path, virtualFile) {
|
|
41
|
+
this.files.set(path, virtualFile);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Retrieves a virtual file by its path.
|
|
45
|
+
*
|
|
46
|
+
* @param path The file path to retrieve from the virtual file system.
|
|
47
|
+
*/
|
|
48
|
+
get(path) {
|
|
49
|
+
return this.files.get(path);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Checks if a virtual file exists at the given path.
|
|
53
|
+
*
|
|
54
|
+
* @param path The file path to check in the virtual file system.
|
|
55
|
+
*/
|
|
56
|
+
has(path) {
|
|
57
|
+
return this.files.has(path);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Deletes a virtual file at the given path.
|
|
61
|
+
*
|
|
62
|
+
* @param path The file path to delete from the virtual file system.
|
|
63
|
+
*/
|
|
64
|
+
delete(path) {
|
|
65
|
+
return this.files.delete(path);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Clears all virtual files from the store.
|
|
69
|
+
*/
|
|
70
|
+
clear() {
|
|
71
|
+
this.files.clear();
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Returns an array of all file paths in the virtual file system.
|
|
75
|
+
*/
|
|
76
|
+
list() {
|
|
77
|
+
return Array.from(this.files.keys());
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.VirtualFileStore = VirtualFileStore;
|
|
81
|
+
//# sourceMappingURL=vfs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vfs.js","sourceRoot":"","sources":["../../src/vfs.ts"],"names":[],"mappings":";;;AAQA;;GAEG;AACH,MAAa,gBAAgB;IAC5B;;;;;;;;;;OAUG;IACK,KAAK,GAAG,IAAI,GAAG,EAAuB,CAAC;IAE/C;;;;;OAKG;IAC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m/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/tsserverlibrary.d.ts","../src/vfs.ts","../src/projectcontext.ts","../src/language-service/index.ts","../src/lib/salesforce.ts","../src/lib/ts/index.ts","../src/index.ts","../src/lib/ts/file.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/web-globals/blob.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/web-globals/console.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/web-globals/crypto.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/web-globals/encoding.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/utility.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/client-stats.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/h2c-client.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-call-history.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/snapshot-agent.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/cache-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@7.16.0/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/web-globals/importmeta.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/web-globals/messaging.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/web-globals/performance.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/web-globals/streams.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/web-globals/timers.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/web-globals/url.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/inspector/promises.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/path/posix.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/path/win32.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/quic.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/test/reporters.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/util/types.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@25.0.9/node_modules/@types/node/index.d.ts"],"fileIdsList":[[71,131,132,134,142,146,149,151,152,153,165],[71,133,134,142,146,149,151,152,153,165],[134,142,146,149,151,152,153,165],[71,134,142,146,149,151,152,153,165,173],[71,134,135,140,142,145,146,149,151,152,153,155,165,170,182],[71,134,135,136,142,145,146,149,151,152,153,165],[71,134,142,146,149,151,152,153,165],[71,134,137,142,146,149,151,152,153,165,183],[71,134,138,139,142,146,149,151,152,153,156,165],[71,134,139,142,146,149,151,152,153,165,170,179],[71,134,140,142,145,146,149,151,152,153,155,165],[71,133,134,141,142,146,149,151,152,153,165],[71,134,142,143,146,149,151,152,153,165],[71,134,142,144,145,146,149,151,152,153,165],[71,133,134,142,145,146,149,151,152,153,165],[71,134,142,145,146,147,149,151,152,153,165,170,182],[71,134,142,145,146,147,149,151,152,153,165,170,173],[71,121,134,142,145,146,148,149,151,152,153,155,165,170,182],[71,134,142,145,146,148,149,151,152,153,155,165,170,179,182],[71,134,142,146,148,149,150,151,152,153,165,170,179,182],[69,70,71,72,73,74,75,76,77,78,79,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],[71,134,142,145,146,149,151,152,153,165],[71,134,142,146,149,151,153,165],[71,134,142,146,149,151,152,153,154,165,182],[71,134,142,145,146,149,151,152,153,155,165,170],[71,134,142,146,149,151,152,153,156,165],[71,134,142,146,149,151,152,153,157,165],[71,134,142,145,146,149,151,152,153,160,165],[71,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],[71,134,142,146,149,151,152,153,162,165],[71,134,142,146,149,151,152,153,163,165],[71,134,139,142,146,149,151,152,153,155,165,173],[71,134,142,145,146,149,151,152,153,165,166],[71,134,142,146,149,151,152,153,165,167,183,186],[71,134,142,145,146,149,151,152,153,165,170,172,173],[71,134,142,146,149,151,152,153,165,171,173],[71,134,142,146,149,151,152,153,165,173,183],[71,134,142,146,149,151,152,153,165,174],[71,131,134,142,146,149,151,152,153,165,170,176],[71,134,142,146,149,151,152,153,165,170,175],[71,134,142,145,146,149,151,152,153,165,177,178],[71,134,142,146,149,151,152,153,165,177,178],[71,134,139,142,146,149,151,152,153,155,165,170,179],[71,134,142,146,149,151,152,153,165,180],[71,134,142,146,149,151,152,153,155,165,181],[71,134,142,146,148,149,151,152,153,163,165,182],[71,134,142,146,149,151,152,153,165,183,184],[71,134,139,142,146,149,151,152,153,165,184],[71,134,142,146,149,151,152,153,165,170,185],[71,134,142,146,149,151,152,153,154,165,186],[71,134,142,146,149,151,152,153,165,187],[71,134,137,142,146,149,151,152,153,165],[71,134,139,142,146,149,151,152,153,165],[71,134,142,146,149,151,152,153,165,183],[71,121,134,142,146,149,151,152,153,165],[71,134,142,146,149,151,152,153,165,182],[71,134,142,146,149,151,152,153,165,188],[71,134,142,146,149,151,152,153,160,165],[71,134,142,146,149,151,152,153,165,178],[71,121,134,142,145,146,147,149,151,152,153,160,165,170,173,182,185,186,188],[71,134,142,146,149,151,152,153,165,170,189],[60,71,134,142,146,149,151,152,153,165],[71,87,90,93,94,134,142,146,149,151,152,153,165,182],[71,90,134,142,146,149,151,152,153,165,170,182],[71,90,94,134,142,146,149,151,152,153,165,182],[71,134,142,146,149,151,152,153,165,170],[71,84,134,142,146,149,151,152,153,165],[71,88,134,142,146,149,151,152,153,165],[71,86,87,90,134,142,146,149,151,152,153,165,182],[71,134,142,146,149,151,152,153,155,165,179],[71,134,142,146,149,151,152,153,165,190],[71,84,134,142,146,149,151,152,153,165,190],[71,86,90,134,142,146,149,151,152,153,155,165,182],[71,81,82,83,85,89,134,142,145,146,149,151,152,153,165,170,182],[71,90,98,106,134,142,146,149,151,152,153,165],[71,82,88,134,142,146,149,151,152,153,165],[71,90,115,116,134,142,146,149,151,152,153,165],[71,82,85,90,134,142,146,149,151,152,153,165,173,182,190],[71,90,134,142,146,149,151,152,153,165],[71,86,90,134,142,146,149,151,152,153,165,182],[71,81,134,142,146,149,151,152,153,165],[71,84,85,86,88,89,90,91,92,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,116,117,118,119,120,134,142,146,149,151,152,153,165],[71,90,108,111,134,142,146,149,151,152,153,165],[71,90,98,99,100,134,142,146,149,151,152,153,165],[71,88,90,99,101,134,142,146,149,151,152,153,165],[71,89,134,142,146,149,151,152,153,165],[71,82,84,90,134,142,146,149,151,152,153,165],[71,90,94,99,101,134,142,146,149,151,152,153,165],[71,94,134,142,146,149,151,152,153,165],[71,88,90,93,134,142,146,149,151,152,153,165,182],[71,82,86,90,98,134,142,146,149,151,152,153,165],[71,90,108,134,142,146,149,151,152,153,165],[71,101,134,142,146,149,151,152,153,165],[71,84,90,115,134,142,146,149,151,152,153,165,173,188,190],[61,62,63,64,65,66,71,134,142,146,149,151,152,153,165],[61,62,63,71,134,142,146,149,151,152,153,157,165],[61,71,134,142,146,149,151,152,153,165],[61,62,71,134,142,146,149,151,152,153,165]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"196cb558a13d4533a5163286f30b0509ce0210e4b316c56c38d4c0fd2fb38405","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"e134052a6b1ded61693b4037f615dc72f14e2881e79c1ddbff6c514c8a516b05","impliedFormat":1},{"version":"73b15a0b7cf5c6df9076b9408c5ce682f11813453bf54c54cb284f075b5224cf","impliedFormat":1},{"version":"316369f55440f7972b51c31152dc262f939fa7af9b9ac3d8148a9a340427c71b","signature":"46ff04965e8696573773c4045354b221eb8cd4bd3a1b62843779ee1a8eaf831c"},{"version":"4c1e5f8dc9ca17cc73d2d8f832aa6439202c1a75a7b20fe34b1dd8e6edf99f82","signature":"8db4ea825cfce815224788585efaa46a9a8df814cb43491acc0b39e6c6733bdc"},{"version":"81f9d66aa1ed36725cc576c903294b1298c9b43a7f08b8d341868e8b6229fa69","signature":"e25418f6e23011dae220675b697d2fc299601f2fbf15c9db88e6be7234eee585"},{"version":"a3808eb0ed125d51b4a0e6b6e75ac50931c0ac9d4e52b6baff4a2669b6cdf335","signature":"2d79794a7d57bc6b4c13baee711dcaf79ca320a14366232a19965197e95ded23"},{"version":"cf05a9d49808c9b7b4d0c423dc2f1131bcadf6e9ff14f1b0f8b4c467e1b9e159","signature":"616f447fb214a968a9853654d51acda4158829b39e4b623c480dec78d6422a50"},{"version":"58fa51532afda3a1a3e91a543bae99b037f1c7f8ba08d6ad8434067ef977130e","signature":"4ec839851758a5446b98a383422b954bc3d325540ec79dbae9a17ba9f6032d7e"},{"version":"f8862b39a20d3717fa02c3eddc987987279ff8ac7b8396b553ceb69af0632d1a","signature":"0e93787b1d02bd37cf867ba2f969e1f463bec96f212558e4b5dbefb2139346ac"},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"0ccdaa19852d25ecd84eec365c3bfa16e7859cadecf6e9ca6d0dbbbee439743f","affectsGlobalScope":true,"impliedFormat":1},{"version":"438b41419b1df9f1fbe33b5e1b18f5853432be205991d1b19f5b7f351675541e","affectsGlobalScope":true,"impliedFormat":1},{"version":"096116f8fedc1765d5bd6ef360c257b4a9048e5415054b3bf3c41b07f8951b0b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5e01375c9e124a83b52ee4b3244ed1a4d214a6cfb54ac73e164a823a4a7860a","affectsGlobalScope":true,"impliedFormat":1},{"version":"f90ae2bbce1505e67f2f6502392e318f5714bae82d2d969185c4a6cecc8af2fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b58e207b93a8f1c88bbf2a95ddc686ac83962b13830fe8ad3f404ffc7051fb4","affectsGlobalScope":true,"impliedFormat":1},{"version":"1fefabcb2b06736a66d2904074d56268753654805e829989a46a0161cd8412c5","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"c18a99f01eb788d849ad032b31cafd49de0b19e083fe775370834c5675d7df8e","affectsGlobalScope":true,"impliedFormat":1},{"version":"5247874c2a23b9a62d178ae84f2db6a1d54e6c9a2e7e057e178cc5eea13757fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","impliedFormat":1},{"version":"23cd712e2ce083d68afe69224587438e5914b457b8acf87073c22494d706a3d0","impliedFormat":1},{"version":"487b694c3de27ddf4ad107d4007ad304d29effccf9800c8ae23c2093638d906a","impliedFormat":1},{"version":"3a80bc85f38526ca3b08007ee80712e7bb0601df178b23fbf0bf87036fce40ce","impliedFormat":1},{"version":"ccf4552357ce3c159ef75f0f0114e80401702228f1898bdc9402214c9499e8c0","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"68834d631c8838c715f225509cfc3927913b9cc7a4870460b5b60c8dbdb99baf","impliedFormat":1},{"version":"2931540c47ee0ff8a62860e61782eb17b155615db61e36986e54645ec67f67c2","impliedFormat":1},{"version":"ccab02f3920fc75c01174c47fcf67882a11daf16baf9e81701d0a94636e94556","impliedFormat":1},{"version":"f6faf5f74e4c4cc309a6c6a6c4da02dbb840be5d3e92905a23dcd7b2b0bd1986","impliedFormat":1},{"version":"ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","impliedFormat":1},{"version":"36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","impliedFormat":1},{"version":"914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","impliedFormat":1},{"version":"33e981bf6376e939f99bd7f89abec757c64897d33c005036b9a10d9587d80187","impliedFormat":1},{"version":"7fd1b31fd35876b0aa650811c25ec2c97a3c6387e5473eb18004bed86cdd76b6","impliedFormat":1},{"version":"b41767d372275c154c7ea6c9d5449d9a741b8ce080f640155cc88ba1763e35b3","impliedFormat":1},{"version":"3bacf516d686d08682751a3bd2519ea3b8041a164bfb4f1d35728993e70a2426","impliedFormat":1},{"version":"7fb266686238369442bd1719bc0d7edd0199da4fb8540354e1ff7f16669b4323","impliedFormat":1},{"version":"0a60a292b89ca7218b8616f78e5bbd1c96b87e048849469cccb4355e98af959a","impliedFormat":1},{"version":"0b6e25234b4eec6ed96ab138d96eb70b135690d7dd01f3dd8a8ab291c35a683a","impliedFormat":1},{"version":"9666f2f84b985b62400d2e5ab0adae9ff44de9b2a34803c2c5bd3c8325b17dc0","impliedFormat":1},{"version":"40cd35c95e9cf22cfa5bd84e96408b6fcbca55295f4ff822390abb11afbc3dca","impliedFormat":1},{"version":"b1616b8959bf557feb16369c6124a97a0e74ed6f49d1df73bb4b9ddf68acf3f3","impliedFormat":1},{"version":"5b03a034c72146b61573aab280f295b015b9168470f2df05f6080a2122f9b4df","impliedFormat":1},{"version":"40b463c6766ca1b689bfcc46d26b5e295954f32ad43e37ee6953c0a677e4ae2b","impliedFormat":1},{"version":"249b9cab7f5d628b71308c7d9bb0a808b50b091e640ba3ed6e2d0516f4a8d91d","impliedFormat":1},{"version":"80aae6afc67faa5ac0b32b5b8bc8cc9f7fa299cff15cf09cc2e11fd28c6ae29e","impliedFormat":1},{"version":"f473cd2288991ff3221165dcf73cd5d24da30391f87e85b3dd4d0450c787a391","impliedFormat":1},{"version":"499e5b055a5aba1e1998f7311a6c441a369831c70905cc565ceac93c28083d53","impliedFormat":1},{"version":"54c3e2371e3d016469ad959697fd257e5621e16296fa67082c2575d0bf8eced0","impliedFormat":1},{"version":"beb8233b2c220cfa0feea31fbe9218d89fa02faa81ef744be8dce5acb89bb1fd","impliedFormat":1},{"version":"c183b931b68ad184bc8e8372bf663f3d33304772fb482f29fb91b3c391031f3e","impliedFormat":1},{"version":"5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","impliedFormat":1},{"version":"59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","impliedFormat":1},{"version":"addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","impliedFormat":1},{"version":"48cc3ec153b50985fb95153258a710782b25975b10dd4ac8a4f3920632d10790","impliedFormat":1},{"version":"adf27937dba6af9f08a68c5b1d3fce0ca7d4b960c57e6d6c844e7d1a8e53adae","impliedFormat":1},{"version":"e1528ca65ac90f6fa0e4a247eb656b4263c470bb22d9033e466463e13395e599","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"866078923a56d026e39243b4392e282c1c63159723996fa89243140e1388a98d","impliedFormat":1},{"version":"dd0109710de4cd93e245121ab86d8c66d20f3ead80074b68e9c3e349c4f53342","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3275d55fac10b799c9546804126239baf020d220136163f763b55a74e50e750","affectsGlobalScope":true,"impliedFormat":1},{"version":"fa68a0a3b7cb32c00e39ee3cd31f8f15b80cac97dce51b6ee7fc14a1e8deb30b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1cf059eaf468efcc649f8cf6075d3cb98e9a35a0fe9c44419ec3d2f5428d7123","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c36e755bced82df7fb6ce8169265d0a7bb046ab4e2cb6d0da0cb72b22033e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"7a93de4ff8a63bafe62ba86b89af1df0ccb5e40bb85b0c67d6bbcfdcf96bf3d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"90e85f9bc549dfe2b5749b45fe734144e96cd5d04b38eae244028794e142a77e","affectsGlobalScope":true,"impliedFormat":1},{"version":"e0a5deeb610b2a50a6350bd23df6490036a1773a8a71d70f2f9549ab009e67ee","affectsGlobalScope":true,"impliedFormat":1},{"version":"435b3711465425770ed2ee2f1cf00ce071835265e0851a7dc4600ab4b007550e","impliedFormat":1},{"version":"7e49f52a159435fc8df4de9dc377ef5860732ca2dc9efec1640531d3cf5da7a3","impliedFormat":1},{"version":"dd4bde4bdc2e5394aed6855e98cf135dfdf5dd6468cad842e03116d31bbcc9bc","impliedFormat":1},{"version":"4d4e879009a84a47c05350b8dca823036ba3a29a3038efed1be76c9f81e45edf","affectsGlobalScope":true,"impliedFormat":1},{"version":"cf83d90d5faf27b994c2e79af02e32b555dbfe42cd9bd1571445f2168d1f4e2d","impliedFormat":1},{"version":"9ba13b47cb450a438e3076c4a3f6afb9dc85e17eae50f26d4b2d72c0688c9251","impliedFormat":1},{"version":"b64cd4401633ea4ecadfd700ddc8323a13b63b106ac7127c1d2726f32424622c","impliedFormat":1},{"version":"37c6e5fe5715814412b43cc9b50b24c67a63c4e04e753e0d1305970d65417a60","impliedFormat":1},{"version":"0e28335ac43f4d94dd2fe6d9e6fa6813570640839addd10d309d7985f33a6308","impliedFormat":1},{"version":"ee0e4946247f842c6dd483cbb60a5e6b484fee07996e3a7bc7343dfb68a04c5d","impliedFormat":1},{"version":"ef051f42b7e0ef5ca04552f54c4552eac84099d64b6c5ad0ef4033574b6035b8","impliedFormat":1},{"version":"853a43154f1d01b0173d9cbd74063507ece57170bad7a3b68f3fa1229ad0a92f","impliedFormat":1},{"version":"56231e3c39a031bfb0afb797690b20ed4537670c93c0318b72d5180833d98b72","impliedFormat":1},{"version":"5cc7c39031bfd8b00ad58f32143d59eb6ffc24f5d41a20931269011dccd36c5e","impliedFormat":1},{"version":"b0b69c61b0f0ec8ca15db4c8c41f6e77f4cacb784d42bca948f42dea33e8757e","affectsGlobalScope":true,"impliedFormat":1},{"version":"f96a48183254c00d24575401f1a761b4ce4927d927407e7862a83e06ce5d6964","impliedFormat":1},{"version":"cc25940cfb27aa538e60d465f98bb5068d4d7d33131861ace43f04fe6947d68f","impliedFormat":1},{"version":"ac86245c2f31335bfd52cbe7fc760f9fc4f165387875869a478a6d9616a95e72","impliedFormat":1},{"version":"01ff95aa1443e3f7248974e5a771f513cb2ac158c8898f470a1792f817bee497","impliedFormat":1},{"version":"9d96a7ce809392ff2cb99691acf7c62e632fe56897356ba013b689277aca3619","impliedFormat":1},{"version":"42a05d8f239f74587d4926aba8cc54792eed8e8a442c7adc9b38b516642aadfe","impliedFormat":1},{"version":"5d21b58d60383cc6ab9ad3d3e265d7d25af24a2c9b506247e0e50b0a884920be","impliedFormat":1},{"version":"101f482fd48cb4c7c0468dcc6d62c843d842977aea6235644b1edd05e81fbf22","impliedFormat":1},{"version":"ae6757460f37078884b1571a3de3ebaf724d827d7e1d53626c02b3c2a408ac63","affectsGlobalScope":true,"impliedFormat":1},{"version":"27c0a08e343c6a0ae17bd13ba6d44a9758236dc904cd5e4b43456996cd51f520","impliedFormat":1},{"version":"3ef397f12387eff17f550bc484ea7c27d21d43816bbe609d495107f44b97e933","impliedFormat":1},{"version":"1023282e2ba810bc07905d3668349fbd37a26411f0c8f94a70ef3c05fe523fcf","impliedFormat":1},{"version":"b214ebcf76c51b115453f69729ee8aa7b7f8eccdae2a922b568a45c2d7ff52f7","impliedFormat":1},{"version":"429c9cdfa7d126255779efd7e6d9057ced2d69c81859bbab32073bad52e9ba76","impliedFormat":1},{"version":"6f80e51ba310608cd71bcdc09a171d7bbfb3b316048601c9ec215ce16a8dcfbc","impliedFormat":1},{"version":"63054ef6518309c85b11e00537eef47a2b8609c6c20630b1a1daaecf86ea0d28","affectsGlobalScope":true,"impliedFormat":1},{"version":"7f2c62938251b45715fd2a9887060ec4fbc8724727029d1cbce373747252bdd7","impliedFormat":1},{"version":"e3ace08b6bbd84655d41e244677b474fd995923ffef7149ddb68af8848b60b05","impliedFormat":1},{"version":"132580b0e86c48fab152bab850fc57a4b74fe915c8958d2ccb052b809a44b61c","impliedFormat":1},{"version":"af4ab0aa8908fc9a655bb833d3bc28e117c4f0e1038c5a891546158beb25accb","impliedFormat":1},{"version":"69c9a5a9392e8564bd81116e1ed93b13205201fb44cb35a7fde8c9f9e21c4b23","impliedFormat":1},{"version":"5f8fc37f8434691ffac1bfd8fc2634647da2c0e84253ab5d2dd19a7718915b35","impliedFormat":1},{"version":"5981c2340fd8b076cae8efbae818d42c11ffc615994cb060b1cd390795f1be2b","impliedFormat":1},{"version":"2ca2bca6845a7234eff5c3d192727a068fca72ac565f3c819c6b04ccc83dadc0","impliedFormat":1},{"version":"ed4f674fc8c0c993cc7e145069ac44129e03519b910c62be206a0cc777bdc60b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0250da3eb85c99624f974e77ef355cdf86f43980251bc371475c2b397ba55bcd","impliedFormat":1},{"version":"f1c93e046fb3d9b7f8249629f4b63dc068dd839b824dd0aa39a5e68476dc9420","impliedFormat":1},{"version":"3d3a5f27ffbc06c885dd4d5f9ee20de61faf877fe2c3a7051c4825903d9a7fdc","impliedFormat":1},{"version":"12806f9f085598ef930edaf2467a5fa1789a878fba077cd27e85dc5851e11834","impliedFormat":1},{"version":"17d06eb5709839c7ce719f0c38ada6f308fb433f2cd6d8c87b35856e07400950","impliedFormat":1},{"version":"a43fe41c33d0a192a0ecaf9b92e87bef3709c9972e6d53c42c49251ccb962d69","impliedFormat":1},{"version":"a177959203c017fad3ecc4f3d96c8757a840957a4959a3ae00dab9d35961ca6c","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc727ccf9b36e257ff982ea0badeffbfc2c151802f741bddff00c6af3b784cf","impliedFormat":1},{"version":"2a00d005e3af99cd1cfa75220e60c61b04bfb6be7ca7453bfe2ef6cca37cc03c","impliedFormat":1},{"version":"4844a4c9b4b1e812b257676ed8a80b3f3be0e29bf05e742cc2ea9c3c6865e6c6","impliedFormat":1},{"version":"064878a60367e0407c42fb7ba02a2ea4d83257357dc20088e549bd4d89433e9c","impliedFormat":1},{"version":"14d4bd22d1b05824971b98f7e91b2484c90f1a684805c330476641417c3d9735","impliedFormat":1},{"version":"586eaf66bace2e731cee0ddfbfac326ad74a83c1acfeac4afb2db85ad23226c7","impliedFormat":1},{"version":"b484ec11ba00e3a2235562a41898d55372ccabe607986c6fa4f4aba72093749f","impliedFormat":1},{"version":"d1a14d87cedcf4f0b8173720d6eb29cc02878bf2b6dabf9c9d9cee742f275368","impliedFormat":1},{"version":"e60efae9fe48a2955f66bf4cbf0f082516185b877daf50d9c5e2a009660a7714","impliedFormat":1},{"version":"041a7781b9127ab568d2cdcce62c58fdea7c7407f40b8c50045d7866a2727130","impliedFormat":1},{"version":"b37f83e7deea729aa9ce5593f78905afb45b7532fdff63041d374f60059e7852","impliedFormat":1},{"version":"e1cb68f3ef3a8dd7b2a9dfb3de482ed6c0f1586ba0db4e7d73c1d2147b6ffc51","impliedFormat":1},{"version":"55cdbeebe76a1fa18bbd7e7bf73350a2173926bd3085bb050cf5a5397025ee4e","impliedFormat":1}],"root":[[62,68]],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"module":1,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9},"referencedMap":[[131,1],[132,1],[133,2],[71,3],[134,4],[135,5],[136,6],[69,7],[137,8],[138,9],[139,10],[140,11],[141,12],[142,13],[143,13],[144,14],[145,15],[146,16],[147,17],[72,7],[70,7],[148,18],[149,19],[150,20],[190,21],[151,22],[152,23],[153,22],[154,24],[155,25],[156,26],[157,27],[158,27],[159,27],[160,28],[161,29],[162,30],[163,31],[164,32],[165,33],[166,33],[167,34],[168,7],[169,7],[170,35],[171,36],[172,35],[173,37],[174,38],[175,39],[176,40],[177,41],[178,42],[179,43],[180,44],[181,45],[182,46],[183,47],[184,48],[185,49],[186,50],[187,51],[73,22],[74,7],[75,52],[76,53],[77,7],[78,54],[79,7],[122,55],[123,56],[124,57],[125,57],[126,58],[127,7],[128,4],[129,59],[130,56],[188,60],[189,61],[80,7],[58,7],[59,7],[11,7],[10,7],[2,7],[12,7],[13,7],[14,7],[15,7],[16,7],[17,7],[18,7],[19,7],[3,7],[20,7],[21,7],[4,7],[22,7],[26,7],[23,7],[24,7],[25,7],[27,7],[28,7],[29,7],[5,7],[30,7],[31,7],[32,7],[33,7],[6,7],[37,7],[34,7],[35,7],[36,7],[38,7],[7,7],[39,7],[44,7],[45,7],[40,7],[41,7],[42,7],[43,7],[8,7],[49,7],[46,7],[47,7],[48,7],[50,7],[9,7],[51,7],[52,7],[53,7],[55,7],[54,7],[1,7],[56,7],[57,7],[61,62],[60,7],[98,63],[110,64],[96,65],[111,66],[120,67],[87,68],[88,69],[86,70],[119,71],[114,72],[118,73],[90,74],[107,75],[89,76],[117,77],[84,78],[85,72],[91,79],[92,7],[97,80],[95,79],[82,81],[121,82],[112,83],[101,84],[100,79],[102,85],[105,86],[99,87],[103,88],[115,71],[93,89],[94,90],[106,91],[83,66],[109,92],[108,79],[104,93],[113,7],[81,7],[116,94],[67,95],[64,96],[65,97],[68,97],[66,97],[63,98],[62,7]],"latestChangedDtsFile":"./src/lib/ts/index.d.ts","version":"5.9.3"}
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tatzeroko/typescript-plugin",
|
|
3
|
+
"description": "Extends TypeScript with Salesforce-specific types and enhanced inference.",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"author": "Tatzeroko Contributors",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/tatzeroko/language-tools.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/tatzeroko/language-tools/issues"
|
|
13
|
+
},
|
|
14
|
+
"homepage": "https://github.com/tatzeroko/language-tools#readme",
|
|
15
|
+
"packageManager": "pnpm@10.28.0",
|
|
16
|
+
"main": "dist/src/index.js",
|
|
17
|
+
"types": "dist/src/index.d.ts",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"default": "./dist/src/index.js",
|
|
24
|
+
"types": "./dist/src/index.d.ts"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "tsc"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/node": "^25.0.3",
|
|
32
|
+
"typescript": "^5.9.3"
|
|
33
|
+
}
|
|
34
|
+
}
|