els-component-extraction-addon
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -37,4 +37,8 @@ "use strict"; | ||
filePath, | ||
[componentName, { range, source, uri }] | ||
[rawComponentName, { range, source, uri }] | ||
) => { | ||
if (!rawComponentName.trim()) { | ||
console.log("no component name found"); | ||
return; | ||
} | ||
try { | ||
@@ -45,4 +49,5 @@ // const ast = server.templateCompletionProvider.getAST(document.getText(range)); | ||
command: "els.executeInEmberCLI", | ||
arguments: [filePath, `g component ${componentName}`], | ||
arguments: [filePath, `g component ${rawComponentName}`], | ||
}); | ||
const componentName = rawComponentName.trim().split(" ").pop(); | ||
// going to wait for file changes api | ||
@@ -49,0 +54,0 @@ await new Promise((resolve) => setTimeout(resolve, 2000)); |
{ | ||
"name": "els-component-extraction-addon", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Ember Language Server Templates Code Actions extension", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5344
101