diff --git a/generators/app/grammarConverter.js b/generators/app/grammarConverter.js index 8a711cd6..2e7118ca 100644 --- a/generators/app/grammarConverter.js +++ b/generators/app/grammarConverter.js @@ -43,6 +43,8 @@ function convertGrammar(location, extensionConfig) { } else { // load from disk var body = null; + // trim the spaces of the location path + location = location.trim() try { body = fs.readFileSync(location); } catch (error) { @@ -107,4 +109,4 @@ function processContent(extensionConfig, fileName, body) { extensionConfig.languageContent = body; }; -exports.convertGrammar = convertGrammar; \ No newline at end of file +exports.convertGrammar = convertGrammar;