File tree 2 files changed +12
-4
lines changed
theme-language-server-common/src/hover
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -298,6 +298,11 @@ type MetafieldDefinitionType = {
298
298
name : string ;
299
299
} ;
300
300
301
+ export type GetLiquidDocDefinitionsForURI = (
302
+ uri : string ,
303
+ snippetName : string ,
304
+ ) => Promise < LiquidDocDefinition > ;
305
+
301
306
export interface LiquidDocParameter {
302
307
name : string ;
303
308
description : string | null ;
Original file line number Diff line number Diff line change 1
1
import {
2
+ GetLiquidDocDefinitionsForURI ,
2
3
LiquidDocDefinition ,
3
4
MetafieldDefinitionMap ,
4
5
SourceCodeType ,
@@ -32,10 +33,12 @@ export class HoverProvider {
32
33
readonly getMetafieldDefinitions : ( rootUri : string ) => Promise < MetafieldDefinitionMap > ,
33
34
readonly getTranslationsForURI : GetTranslationsForURI = async ( ) => ( { } ) ,
34
35
readonly getSettingsSchemaForURI : GetThemeSettingsSchemaForURI = async ( ) => [ ] ,
35
- readonly getLiquidDocDefinitionsForURI : (
36
- uri : string ,
37
- snippetName : string ,
38
- ) => Promise < LiquidDocDefinition > ,
36
+ readonly getLiquidDocDefinitionsForURI : GetLiquidDocDefinitionsForURI = async (
37
+ _uri ,
38
+ snippetName ,
39
+ ) => ( {
40
+ name : snippetName ,
41
+ } ) ,
39
42
) {
40
43
const typeSystem = new TypeSystem (
41
44
themeDocset ,
You can’t perform that action at this time.
0 commit comments