Skip to content

Commit

Permalink
Rename SnippetHoverProvider -> RenderSnippetHoverProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmengo committed Jan 20, 2025
1 parent 98b6b73 commit 05ca64d
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 @@ -17,8 +17,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 @@ -54,7 +54,7 @@ export class HoverProvider {
new HtmlAttributeHoverProvider(),
new HtmlAttributeValueHoverProvider(),
new TranslationHoverProvider(getTranslationsForURI, documentManager),
new SnippetHoverProvider(getLiquidDocDefinitionsForURI),
new RenderSnippetHoverProvider(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: SnippetHoverProvider', async () => {
describe('Module: RenderSnippetHoverProvider', 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 SnippetHoverProvider implements BaseHoverProvider {
export class RenderSnippetHoverProvider 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 { SnippetHoverProvider } from './SnippetHoverProvider';
export { RenderSnippetHoverProvider } from './RenderSnippetHoverProvider';

0 comments on commit 05ca64d

Please sign in to comment.