diff --git a/.gitignore b/.gitignore index 5b8efc2..067c01a 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,4 @@ langServerInstall debugAdapterInstall grammarsDownload.zip syntaxes +grammars diff --git a/package.json b/package.json index c19faa4..3ea7e6b 100644 --- a/package.json +++ b/package.json @@ -38,18 +38,18 @@ ".kt", ".kts" ], - "configuration": "./resources/syntaxes/kotlin.configuration.json" + "configuration": "./resources/grammars/kotlin.configuration.json" } ], "grammars": [ { "language": "kotlin", "scopeName": "source.kotlin", - "path": "./resources/syntaxes/Kotlin.tmLanguage.json" + "path": "./resources/grammars/Kotlin.tmLanguage.json" }, { "scopeName": "markdown.kotlin.codeblock", - "path": "./resources/syntaxes/codeblock.json", + "path": "./resources/grammars/codeblock.json", "injectTo": [ "text.html.markdown" ], diff --git a/scripts/downloadGrammar.js b/scripts/downloadGrammar.js index c24937e..9d7e4ca 100644 --- a/scripts/downloadGrammar.js +++ b/scripts/downloadGrammar.js @@ -9,7 +9,7 @@ const fs = require("fs"); const GRAMMAR_URL = "https://github.com/fwcd/kotlin-language-server/releases/latest/download/grammars.zip"; const RESOURCES_PATH = path.join(__dirname, "..", "resources"); const DOWNLOAD_PATH = path.join(RESOURCES_PATH, "grammarsDownload.zip"); -const EXTRACT_PATH = path.join(RESOURCES_PATH, "syntaxes"); +const EXTRACT_PATH = path.join(RESOURCES_PATH); console.log("Downloading grammars..."); request.get(GRAMMAR_URL)