From 1a0b7654e8f4f36a5178ecaa6f1b25504b4233e4 Mon Sep 17 00:00:00 2001 From: Ugur Aslan Date: Mon, 9 Dec 2024 11:06:56 +0100 Subject: [PATCH] removed incompatible babel parser plugin --- package-lock.json | 4 ++-- package.json | 2 +- src/completionProviders/templateTags.js | 1 - src/parsers/ast.js | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 66c65e8..122a41d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "lightning-blits", - "version": "1.2.0", + "version": "1.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "lightning-blits", - "version": "1.2.0", + "version": "1.2.1", "license": "Apache-2", "dependencies": { "@babel/traverse": "^7.23.2", diff --git a/package.json b/package.json index ddb72c4..9c3a90f 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "publisher": "lightningjs", "displayName": "Lightning Blits", "description": "Template syntax highlighting and code completion for the Lightning Blits framework", - "version": "1.2.0", + "version": "1.2.1", "repository": { "type": "git", "url": "https://github.com/lightning-js/blits-vscode-extension.git" diff --git a/src/completionProviders/templateTags.js b/src/completionProviders/templateTags.js index 35c348e..0fd8431 100644 --- a/src/completionProviders/templateTags.js +++ b/src/completionProviders/templateTags.js @@ -344,7 +344,6 @@ const getCompletionItems = async (document, currentDoc, position, isBlits, fileP if (isCursorInsideTemplate) { const componentData = await analyzeBlitsComponent(currentDoc, fileExt, filePath) - console.log(JSON.stringify(componentData, null, 2)) return await completionItems.componentNames.suggest(componentData) } diff --git a/src/parsers/ast.js b/src/parsers/ast.js index eb44a55..4252976 100644 --- a/src/parsers/ast.js +++ b/src/parsers/ast.js @@ -18,7 +18,7 @@ const parser = require('@babel/parser') const parseAST = (code, fileExtension) => { - const pluginList = ['objectRestSpread', 'optionalChaining', 'nullishCoalescingOperator', 'flow'] + const pluginList = ['objectRestSpread', 'optionalChaining', 'nullishCoalescingOperator'] if (fileExtension === 'ts' || fileExtension === 'tsx') { pluginList.push('typescript')