@platformos/platformos-language-server-common 0.0.9 → 0.0.10
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/CHANGELOG.md +10 -0
- package/dist/ClientCapabilities.js +1 -1
- package/dist/ClientCapabilities.js.map +1 -1
- package/dist/TypeSystem.d.ts +1 -1
- package/dist/TypeSystem.js +4 -5
- package/dist/TypeSystem.js.map +1 -1
- package/dist/codeActions/CodeActionsProvider.d.ts +1 -1
- package/dist/commands/ExecuteCommandProvider.d.ts +1 -1
- package/dist/commands/providers/ApplyFixesProvider.d.ts +2 -2
- package/dist/commands/providers/ApplyFixesProvider.js +2 -2
- package/dist/commands/providers/ApplyFixesProvider.js.map +1 -1
- package/dist/commands/providers/ApplySuggestionProvider.d.ts +2 -2
- package/dist/commands/providers/ApplySuggestionProvider.js +2 -2
- package/dist/commands/providers/ApplySuggestionProvider.js.map +1 -1
- package/dist/commands/providers/RunChecksProvider.d.ts +2 -2
- package/dist/commands/providers/RunChecksProvider.js +2 -2
- package/dist/commands/providers/RunChecksProvider.js.map +1 -1
- package/dist/completions/CompletionsProvider.d.ts +1 -1
- package/dist/completions/params/LiquidCompletionParams.js +2 -2
- package/dist/completions/providers/RenderPartialParameterCompletionProvider.js +2 -2
- package/dist/completions/providers/TranslationCompletionProvider.js +3 -3
- package/dist/completions/providers/TranslationCompletionProvider.js.map +1 -1
- package/dist/documentLinks/DocumentLinksProvider.js +5 -5
- package/dist/hover/providers/RenderPartialParameterHoverProvider.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/rename/RenameProvider.d.ts +1 -1
- package/dist/rename/RenameProvider.js +1 -1
- package/dist/rename/providers/LiquidVariableRenameProvider.js +3 -3
- package/dist/rename/providers/LiquidVariableRenameProvider.js.map +1 -1
- package/dist/renamed/handlers/AssetRenameHandler.d.ts +1 -1
- package/dist/renamed/handlers/AssetRenameHandler.js +1 -1
- package/dist/renamed/handlers/PartialRenameHandler.d.ts +1 -1
- package/dist/renamed/handlers/PartialRenameHandler.js +5 -5
- package/dist/server/safe.d.ts +1 -1
- package/dist/server/safe.js +1 -1
- package/dist/server/startServer.js +4 -5
- package/dist/server/startServer.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/debounce.d.ts +1 -1
- package/dist/utils/debounce.js +1 -1
- package/dist/utils/liquidDoc.js +5 -5
- package/package.json +4 -4
package/dist/utils/debounce.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export interface DebouncedFunction<F extends Function> {
|
|
|
24
24
|
* This is useful in cases where you have an "expensive" function that you only want
|
|
25
25
|
* to execute after the user is idle for a little bit.
|
|
26
26
|
*
|
|
27
|
-
* e.g. Run
|
|
27
|
+
* e.g. Run platformos-check after the user has stopped typing for at least 100ms.
|
|
28
28
|
*
|
|
29
29
|
* The debounced function has the same type signature as its argument.
|
|
30
30
|
*
|
package/dist/utils/debounce.js
CHANGED
|
@@ -11,7 +11,7 @@ exports.debounce = debounce;
|
|
|
11
11
|
* This is useful in cases where you have an "expensive" function that you only want
|
|
12
12
|
* to execute after the user is idle for a little bit.
|
|
13
13
|
*
|
|
14
|
-
* e.g. Run
|
|
14
|
+
* e.g. Run platformos-check after the user has stopped typing for at least 100ms.
|
|
15
15
|
*
|
|
16
16
|
* The debounced function has the same type signature as its argument.
|
|
17
17
|
*
|
package/dist/utils/liquidDoc.js
CHANGED
|
@@ -21,7 +21,7 @@ function formatLiquidDocTagHandle(label, description, example) {
|
|
|
21
21
|
}
|
|
22
22
|
exports.SUPPORTED_LIQUID_DOC_TAG_HANDLES = {
|
|
23
23
|
[platformos_check_common_1.SupportedDocTagTypes.Param]: {
|
|
24
|
-
description: 'Provides information about a parameter for the
|
|
24
|
+
description: 'Provides information about a parameter for the partial.\n' +
|
|
25
25
|
`- The type of parameter is optional and can be ${Object.values(platformos_check_common_1.BasicParamTypes)
|
|
26
26
|
.map((type) => `\`${type}\``)
|
|
27
27
|
.join(', ')}\n` +
|
|
@@ -36,13 +36,13 @@ exports.SUPPORTED_LIQUID_DOC_TAG_HANDLES = {
|
|
|
36
36
|
template: `param {$2} $1$0`,
|
|
37
37
|
},
|
|
38
38
|
[platformos_check_common_1.SupportedDocTagTypes.Example]: {
|
|
39
|
-
description: 'Provides an example on how to use the
|
|
40
|
-
example: '{% doc %}\n' + ' @example {% render "
|
|
39
|
+
description: 'Provides an example on how to use the partial.',
|
|
40
|
+
example: '{% doc %}\n' + ' @example {% render "partial-name", arg1: "value" %}\n' + '{% enddoc %}\n',
|
|
41
41
|
template: `example $0`,
|
|
42
42
|
},
|
|
43
43
|
[platformos_check_common_1.SupportedDocTagTypes.Description]: {
|
|
44
|
-
description: 'Provides information on what the
|
|
45
|
-
example: '{% doc %}\n' + ' @description This
|
|
44
|
+
description: 'Provides information on what the partial does.',
|
|
45
|
+
example: '{% doc %}\n' + ' @description This partial renders a product image.\n' + '{% enddoc %}\n',
|
|
46
46
|
template: `description $0`,
|
|
47
47
|
},
|
|
48
48
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformos/platformos-language-server-common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"author": "platformOS",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"type-check": "tsc --noEmit -p ./tsconfig.json"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@platformos/liquid-html-parser": "^0.0.
|
|
31
|
-
"@platformos/platformos-check-common": "0.0.
|
|
32
|
-
"@platformos/platformos-graph": "0.0.
|
|
30
|
+
"@platformos/liquid-html-parser": "^0.0.10",
|
|
31
|
+
"@platformos/platformos-check-common": "0.0.10",
|
|
32
|
+
"@platformos/platformos-graph": "0.0.10",
|
|
33
33
|
"@vscode/web-custom-data": "^0.4.6",
|
|
34
34
|
"vscode-json-languageservice": "^5.7.1",
|
|
35
35
|
"vscode-languageserver": "^9.0.1",
|