Skip to content

Commit

Permalink
Rename RenderSnippetHoverProvider with SnippetHoverProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmengo committed Jan 17, 2025
1 parent 71d2d4d commit ff3bc6c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import {
LiquidObjectAttributeHoverProvider,
LiquidObjectHoverProvider,
LiquidTagHoverProvider,
SnippetHoverProvider,
TranslationHoverProvider,
RenderSnippetHoverProvider,
} from './providers';
import { HtmlAttributeValueHoverProvider } from './providers/HtmlAttributeValueHoverProvider';
import { findCurrentNode } from '@shopify/theme-check-common';
Expand Down Expand Up @@ -51,7 +51,7 @@ export class HoverProvider {
new HtmlAttributeHoverProvider(),
new HtmlAttributeValueHoverProvider(),
new TranslationHoverProvider(getTranslationsForURI, documentManager),
new RenderSnippetHoverProvider(getLiquidDocDefinitionsForURI),
new SnippetHoverProvider(getLiquidDocDefinitionsForURI),
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { DocumentManager } from '../../documents';
import { HoverProvider } from '../HoverProvider';
import { LiquidDocDefinition, MetafieldDefinitionMap } from '@shopify/theme-check-common';

describe('Module: RenderSnippetHoverProvider', async () => {
describe('Module: SnippetHoverProvider', async () => {
let provider: HoverProvider;
let getLiquidDoc: () => Promise<LiquidDocDefinition>;
const mockDefinitions = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { Hover, HoverParams } from 'vscode-languageserver';
import { BaseHoverProvider } from '../BaseHoverProvider';

export class RenderSnippetHoverProvider implements BaseHoverProvider {
export class SnippetHoverProvider implements BaseHoverProvider {
constructor(
private getLiquidDocDefinitionsForURI: (
uri: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ export { HtmlTagHoverProvider } from './HtmlTagHoverProvider';
export { HtmlAttributeHoverProvider } from './HtmlAttributeHoverProvider';
export { HtmlAttributeValueHoverProvider } from './HtmlAttributeValueHoverProvider';
export { TranslationHoverProvider } from './TranslationHoverProvider';
export { RenderSnippetHoverProvider } from './RenderSnippetHoverProvider';
export { SnippetHoverProvider } from './SnippetHoverProvider';

0 comments on commit ff3bc6c

Please sign in to comment.