@shopify/theme-language-server-common
Version:
<h1 align="center" style="position: relative;" > <br> <img src="https://github.com/Shopify/theme-check-vscode/blob/main/images/shopify_glyph.png?raw=true" alt="logo" width="141" height="160"> <br> Theme Language Server </h1>
18 lines (17 loc) • 787 B
TypeScript
import { Connection } from 'vscode-languageserver';
import { RenameFilesParams } from 'vscode-languageserver-protocol';
import { ClientCapabilities } from '../ClientCapabilities';
import { DocumentManager } from '../documents';
/**
* The RenameHandler is responsible for handling workspace/didRenameFiles notifications.
*
* Stuff we'll handle:
* - When a snippet is renamed, then we'll change all the render calls
* - When an asset is renamed, then we'll change the asset_url calls
* - etc.
*/
export declare class RenameHandler {
private handlers;
constructor(connection: Connection, capabilities: ClientCapabilities, documentManager: DocumentManager, findThemeRootURI: (uri: string) => Promise<string>);
onDidRenameFiles(params: RenameFilesParams): Promise<void>;
}