From 21a07b94d49c12c2d1a0d51e0a117cf266ed4b70 Mon Sep 17 00:00:00 2001 From: "Stephen Weatherford (MSFT)" Date: Mon, 26 Aug 2019 13:04:30 -0700 Subject: [PATCH] Lang conf file must be copied to dist (#276) * Lang conf file must be copied to dist * PR fix --- gulpfile.ts | 15 ++++++++++----- package.json | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) 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" ]