Skip to content

Commit 282ae02

Browse files
committed
fix paths in theme preview
1 parent 9faff15 commit 282ae02

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Diff for: src/components/ThemePreview.tsx

+9-9
Original file line numberDiff line numberDiff line change
@@ -563,15 +563,15 @@ const ThemePreview: React.FC = () => {
563563
scopeName: string
564564
): Promise<IGrammarDefinition> => {
565565
const grammarMap: { [key: string]: string } = {
566-
'source.tsx': '/TypeScriptReact.tmLanguage.json',
567-
'source.js.jsx': '/JavaScriptReact.tmLanguage.json',
568-
'source.ts': '/TypeScript.tmLanguage.json',
569-
'source.js': '/JavaScript.tmLanguage.json',
570-
'source.css': '/css.tmLanguage.json',
571-
'text.html.markdown': '/markdown.tmLanguage.json',
572-
'text.html.basic': '/html.tmLanguage.json',
573-
'source.python': '/MagicPython.tmLanguage.json',
574-
'source.yaml': '/yaml.tmLanguage.json',
566+
'source.tsx': 'TypeScriptReact.tmLanguage.json',
567+
'source.js.jsx': 'JavaScriptReact.tmLanguage.json',
568+
'source.ts': 'TypeScript.tmLanguage.json',
569+
'source.js': 'JavaScript.tmLanguage.json',
570+
'source.css': 'css.tmLanguage.json',
571+
'text.html.markdown': 'markdown.tmLanguage.json',
572+
'text.html.basic': 'html.tmLanguage.json',
573+
'source.python': 'MagicPython.tmLanguage.json',
574+
'source.yaml': 'yaml.tmLanguage.json',
575575
}
576576

577577
if (scopeName in grammarMap) {

0 commit comments

Comments
 (0)