From 2bd479c4498a42ee62269771fafad5f12965295c Mon Sep 17 00:00:00 2001 From: Amaresh S M Date: Thu, 15 May 2025 00:16:56 +0530 Subject: [PATCH 1/2] chore: add step to include example selector for new language in esquerySelectorPlaceholder --- docs/adding-languages.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/adding-languages.md b/docs/adding-languages.md index 5b1976a9..2151b73e 100644 --- a/docs/adding-languages.md +++ b/docs/adding-languages.md @@ -23,6 +23,7 @@ Add an SVG logo into the `public/languages/` directory. 1. Default the default code for the new language (such as `defaultJsonCode` or `defaultCssCode`). 1. Add an entry in the `defaultCode` variable for the new language's default code. 1. Export a variable containing the default options for the new language (such as `defaultJsonOptions` or `defaultCssOptions`). +1. Add an entry to the `esquerySelectorPlaceholder` constant for the new language, using an appropriate example selector. ## Step 4: Update `src/hooks/use-explorer.ts` (yes, again) From b6987cebe2b0fbc640aff0a5529ef523dfcdfc8a Mon Sep 17 00:00:00 2001 From: Amaresh S M Date: Thu, 12 Jun 2025 19:54:28 +0530 Subject: [PATCH 2/2] Update adding-languages.md --- docs/adding-languages.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/adding-languages.md b/docs/adding-languages.md index 2151b73e..8186a5e0 100644 --- a/docs/adding-languages.md +++ b/docs/adding-languages.md @@ -23,7 +23,7 @@ Add an SVG logo into the `public/languages/` directory. 1. Default the default code for the new language (such as `defaultJsonCode` or `defaultCssCode`). 1. Add an entry in the `defaultCode` variable for the new language's default code. 1. Export a variable containing the default options for the new language (such as `defaultJsonOptions` or `defaultCssOptions`). -1. Add an entry to the `esquerySelectorPlaceholder` constant for the new language, using an appropriate example selector. +1. Add an entry to the `esquerySelectorPlaceholder` constant for the new language(must match Language enum), using an appropriate example selector. ## Step 4: Update `src/hooks/use-explorer.ts` (yes, again)