@player-tools/cli 0.5.2-next.0 → 0.5.2-next.1
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.
|
@@ -23,7 +23,7 @@ export interface LSPAssetsPluginConfig {
|
|
|
23
23
|
*/
|
|
24
24
|
export declare class LSPAssetsPlugin implements PlayerCLIPlugin {
|
|
25
25
|
private config;
|
|
26
|
-
constructor(config: LSPAssetsPluginConfig);
|
|
26
|
+
constructor(config: LSPAssetsPluginConfig | Array<LSPAssetsPluginConfig>);
|
|
27
27
|
onCreateLanguageService(lsp: PlayerLanguageService, exp: boolean): Promise<void>;
|
|
28
28
|
}
|
|
29
29
|
//# sourceMappingURL=LSPAssetsPlugin.d.ts.map
|
|
@@ -21,7 +21,12 @@ class LSPAssetsPlugin {
|
|
|
21
21
|
this.config = config;
|
|
22
22
|
}
|
|
23
23
|
async onCreateLanguageService(lsp, exp) {
|
|
24
|
-
|
|
24
|
+
if (Array.isArray(this.config)) {
|
|
25
|
+
await lsp.setAssetTypes(this.config.map((c) => c.path));
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
await lsp.setAssetTypes([this.config.path]);
|
|
29
|
+
}
|
|
25
30
|
}
|
|
26
31
|
}
|
|
27
32
|
exports.LSPAssetsPlugin = LSPAssetsPlugin;
|
|
@@ -5,7 +5,7 @@ import type { PlayerCLIPlugin } from "./index";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class LSPPluginPlugin implements PlayerCLIPlugin {
|
|
7
7
|
private plugin;
|
|
8
|
-
constructor(plugin: PlayerLanguageServicePlugin);
|
|
8
|
+
constructor(plugin: PlayerLanguageServicePlugin | Array<PlayerLanguageServicePlugin>);
|
|
9
9
|
onCreateLanguageService(lsp: PlayerLanguageService, exp: boolean): Promise<void>;
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=LSPPluginPlugin.d.ts.map
|
|
@@ -9,7 +9,12 @@ class LSPPluginPlugin {
|
|
|
9
9
|
this.plugin = plugin;
|
|
10
10
|
}
|
|
11
11
|
async onCreateLanguageService(lsp, exp) {
|
|
12
|
-
|
|
12
|
+
if (Array.isArray(this.plugin)) {
|
|
13
|
+
this.plugin.forEach((p) => lsp.addLSPPlugin(p));
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
lsp.addLSPPlugin(this.plugin);
|
|
17
|
+
}
|
|
13
18
|
}
|
|
14
19
|
}
|
|
15
20
|
exports.LSPPluginPlugin = LSPPluginPlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@player-tools/cli",
|
|
3
|
-
"version": "0.5.2-next.
|
|
3
|
+
"version": "0.5.2-next.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"@oclif/plugin-plugins"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@player-tools/dsl": "0.5.2-next.
|
|
25
|
-
"@player-tools/json-language-service": "0.5.2-next.
|
|
26
|
-
"@player-tools/xlr": "0.5.2-next.
|
|
27
|
-
"@player-tools/xlr-converters": "0.5.2-next.
|
|
28
|
-
"@player-tools/xlr-sdk": "0.5.2-next.
|
|
29
|
-
"@player-tools/xlr-utils": "0.5.2-next.
|
|
24
|
+
"@player-tools/dsl": "0.5.2-next.1",
|
|
25
|
+
"@player-tools/json-language-service": "0.5.2-next.1",
|
|
26
|
+
"@player-tools/xlr": "0.5.2-next.1",
|
|
27
|
+
"@player-tools/xlr-converters": "0.5.2-next.1",
|
|
28
|
+
"@player-tools/xlr-sdk": "0.5.2-next.1",
|
|
29
|
+
"@player-tools/xlr-utils": "0.5.2-next.1",
|
|
30
30
|
"react": "^18.2.0",
|
|
31
31
|
"tapable-ts": "^0.2.4",
|
|
32
32
|
"@babel/register": "^7.23.3",
|