@astrojs/language-server 2.16.0 → 2.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core/astro2tsx.js
CHANGED
|
@@ -18,7 +18,7 @@ function safeConvertToTSX(content, options) {
|
|
|
18
18
|
return tsx;
|
|
19
19
|
}
|
|
20
20
|
catch (e) {
|
|
21
|
-
console.error(`There was an error transforming ${options.filename} to TSX. An empty file will be returned instead. Please create an issue: https://github.com/withastro/
|
|
21
|
+
console.error(`There was an error transforming ${options.filename} to TSX. An empty file will be returned instead. Please create an issue: https://github.com/withastro/astro/issues\nError: ${e}.`);
|
|
22
22
|
return {
|
|
23
23
|
code: '',
|
|
24
24
|
map: {
|
|
@@ -34,7 +34,7 @@ function safeConvertToTSX(content, options) {
|
|
|
34
34
|
code: 1000,
|
|
35
35
|
location: { file: options.filename, line: 1, column: 1, length: content.length },
|
|
36
36
|
severity: 1,
|
|
37
|
-
text: `The Astro compiler encountered an unknown error while transform this file to TSX. Please create an issue with your code and the error shown in the server's logs: https://github.com/withastro/
|
|
37
|
+
text: `The Astro compiler encountered an unknown error while transform this file to TSX. Please create an issue with your code and the error shown in the server's logs: https://github.com/withastro/astro/issues`,
|
|
38
38
|
},
|
|
39
39
|
],
|
|
40
40
|
metaRanges: {
|
package/dist/core/parseAstro.js
CHANGED
|
@@ -15,7 +15,7 @@ function safeParseAst(fileName, input, parseOptions) {
|
|
|
15
15
|
return parseResult;
|
|
16
16
|
}
|
|
17
17
|
catch (e) {
|
|
18
|
-
console.error(`There was an error parsing ${fileName}'s AST. An empty AST will be returned instead to avoid breaking the server. Please create an issue: https://github.com/withastro/
|
|
18
|
+
console.error(`There was an error parsing ${fileName}'s AST. An empty AST will be returned instead to avoid breaking the server. Please create an issue: https://github.com/withastro/astro/issues\nError: ${e}.`);
|
|
19
19
|
return {
|
|
20
20
|
ast: {
|
|
21
21
|
type: 'root',
|
|
@@ -31,7 +31,7 @@ function safeParseAst(fileName, input, parseOptions) {
|
|
|
31
31
|
length: input.length,
|
|
32
32
|
},
|
|
33
33
|
severity: 1,
|
|
34
|
-
text: `The Astro compiler encountered an unknown error while parsing this file's AST. Please create an issue with your code and the error shown in the server's logs: https://github.com/withastro/
|
|
34
|
+
text: `The Astro compiler encountered an unknown error while parsing this file's AST. Please create an issue with your code and the error shown in the server's logs: https://github.com/withastro/astro/issues`,
|
|
35
35
|
},
|
|
36
36
|
],
|
|
37
37
|
};
|