diff --git a/gulpfile.ts b/gulpfile.ts index ed0019b89..a2fb25c5c 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -14,13 +14,16 @@ import { gulp_installAzureAccount, gulp_webpack } from 'vscode-azureextensiondev const env = process.env; -export const jsonArmGrammarSourcePath: string = path.resolve('grammars/JSONC.arm.tmLanguage.json'); -export const jsonArmGrammarDestPath: string = path.resolve('dist/grammars/JSONC.arm.tmLanguage.json'); +const jsonArmGrammarSourcePath: string = path.resolve('grammars', 'JSONC.arm.tmLanguage.json'); +const jsonArmGrammarDestPath: string = path.resolve('dist', 'grammars', 'JSONC.arm.tmLanguage.json'); -export const tleGrammarSourcePath: string = path.resolve('grammars/arm-expression-string.tmLanguage.json'); -export const tleGrammarBuiltPath: string = path.resolve('dist/grammars/arm-expression-string.tmLanguage.json'); +const tleGrammarSourcePath: string = path.resolve('grammars', 'arm-expression-string.tmLanguage.json'); +const tleGrammarBuiltPath: string = path.resolve('dist', 'grammars', 'arm-expression-string.tmLanguage.json'); -export interface IGrammar { +const armConfigurationSourcePath: string = path.resolve('grammars', 'jsonc.arm.language-configuration.json'); +const armConfigurationDestPath: string = path.resolve('dist', 'grammars', 'jsonc.arm.language-configuration.json'); + +interface IGrammar { preprocess?: { "builtin-functions": string; [key: string]: string; @@ -104,6 +107,8 @@ async function buildGrammars(): Promise { fs.copyFileSync(jsonArmGrammarSourcePath, jsonArmGrammarDestPath); console.log(`Copied ${jsonArmGrammarDestPath}`); + fs.copyFileSync(armConfigurationSourcePath, armConfigurationDestPath); + console.log(`Copied ${armConfigurationDestPath}`); } // tslint:disable-next-line:no-suspicious-comment diff --git a/package.json b/package.json index 030e235a5..45ee05127 100644 --- a/package.json +++ b/package.json @@ -101,7 +101,7 @@ "aliases": [ "ARM Deployment Template" ], - "configuration": "grammars/jsonc.arm.language-configuration.json", + "configuration": "dist/grammars/jsonc.arm.language-configuration.json", "extensions": [ ".arm" ]