diff --git a/.changeset/real-actors-peel.md b/.changeset/real-actors-peel.md new file mode 100644 index 000000000000..11de9a261136 --- /dev/null +++ b/.changeset/real-actors-peel.md @@ -0,0 +1,8 @@ +--- +'@astrojs/language-server': patch +'@astrojs/check': patch +'@astrojs/ts-plugin': patch +'astro-vscode': patch +--- + +Fixes link targets in documentation following repository relocation. diff --git a/README.md b/README.md index 878ae8780165..5f5c8d017be1 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,10 @@ Join us on [Discord](https://astro.build/chat) to meet other maintainers. We'll | [@astrojs/db](packages/db) | [![@astrojs/db version](https://img.shields.io/npm/v/@astrojs/db.svg?label=%20)](packages/db/CHANGELOG.md) | | [@astrojs/rss](packages/astro-rss) | [![@astrojs/rss version](https://img.shields.io/npm/v/@astrojs/rss.svg?label=%20)](packages/astro-rss/CHANGELOG.md) | | [@astrojs/netlify](packages/integrations/netlify) | [![@astrojs/netlify version](https://img.shields.io/npm/v/@astrojs/netlify.svg?label=%20)](packages/integrations/netlify/CHANGELOG.md) | +| [@astrojs/check](packages/language-tools/astro-check) | [![astro-check version](https://img.shields.io/npm/v/@astrojs/check.svg?label=%20)](packages/language-tools/astro-check/CHANGELOG.md) | +| [@astrojs/language-server](packages/language-tools/language-server) | [![@astrojs/language-server version](https://img.shields.io/npm/v/@astrojs/language-server.svg?label=%20)](packages/language-tools/language-server/CHANGELOG.md) | +| [@astrojs/ts-plugin](packages/language-tools/ts-plugin) | [![@astrojs/ts-plugin version](https://img.shields.io/npm/v/@astrojs/ts-plugin.svg?label=%20)](packages/language-tools/ts-plugin/CHANGELOG.md) | +| [astro-vscode](packages/language-tools/vscode) | [![astro-vscode version](https://img.shields.io/npm/v/astro-vscode.svg?label=%20)](packages/language-tools/vscode/CHANGELOG.md) | [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/6178/badge)](https://bestpractices.coreinfrastructure.org/projects/6178) @@ -77,7 +81,7 @@ Several official projects are maintained outside of this repo: | Project | Repository | | ------------------------------------------------------------------- | ----------------------------------------------------------------------- | | [@astrojs/compiler](https://github.com/withastro/compiler) | [withastro/compiler](https://github.com/withastro/compiler) | -| [Astro Language Tools](https://github.com/withastro/language-tools) | [withastro/language-tools](https://github.com/withastro/language-tools) | +| [Starlight](https://github.com/withastro/starlight) | [withastro/starlight](https://github.com/withastro/starlight) | ## Links diff --git a/packages/language-tools/astro-check/README.md b/packages/language-tools/astro-check/README.md index c525d743fc28..edd8c13eda95 100644 --- a/packages/language-tools/astro-check/README.md +++ b/packages/language-tools/astro-check/README.md @@ -2,7 +2,7 @@ This package powers the `astro check` CLI command for running type checking and diagnostics in Astro projects. -This package's internal logic is powered by [the Astro language server](https://github.com/withastro/language-tools/blob/main/packages/language-server/src/check.ts). +This package's internal logic is powered by [the Astro language server](https://github.com/withastro/astro/blob/main/packages/language-tools/language-server/src/check.ts). ## Documentation @@ -30,9 +30,9 @@ Copyright (c) 2022–present [Astro][astro] [astro]: https://astro.build/ [docs]: https://docs.astro.build/en/guides/typescript/#type-checking -[contributing]: https://github.com/withastro/language-tools/blob/main/CONTRIBUTING.md +[contributing]: https://github.com/withastro/astro/blob/main/packages/language-tools/CONTRIBUTING.md [coc]: https://github.com/withastro/.github/blob/main/CODE_OF_CONDUCT.md [community]: https://github.com/withastro/.github/blob/main/COMMUNITY_GUIDE.md [discord]: https://astro.build/chat/ -[issues]: https://github.com/withastro/language-tools/issues +[issues]: https://github.com/withastro/astro/issues [astro-integration]: https://docs.astro.build/en/guides/integrations-guide/ diff --git a/packages/language-tools/astro-check/package.json b/packages/language-tools/astro-check/package.json index ff018b534994..5d8d41d372a1 100644 --- a/packages/language-tools/astro-check/package.json +++ b/packages/language-tools/astro-check/package.json @@ -4,7 +4,7 @@ "version": "0.9.5", "author": "withastro", "license": "MIT", - "homepage": "https://github.com/withastro/language-tools/tree/main/packages/astro-check", + "homepage": "https://github.com/withastro/astro/tree/main/packages/language-tools/astro-check", "repository": { "type": "git", "url": "https://github.com/withastro/astro.git", diff --git a/packages/language-tools/language-server/CHANGELOG.md b/packages/language-tools/language-server/CHANGELOG.md index ff76a6486cc6..096c8c886516 100644 --- a/packages/language-tools/language-server/CHANGELOG.md +++ b/packages/language-tools/language-server/CHANGELOG.md @@ -4,7 +4,7 @@ ### Minor Changes -- [#14584](https://github.com/withastro/astro/pull/14584) [`3c7ab17`](https://github.com/withastro/astro/commit/3c7ab178da26d095777495bcee94b468937936a3) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Adds a new setting for disabling the Auto Import Cache. The cache can cause an issue where new files are not able to be automatically imported using autocomplete in certain cases. Check https://github.com/withastro/language-tools/issues/1035 for more details. +- [#14584](https://github.com/withastro/astro/pull/14584) [`3c7ab17`](https://github.com/withastro/astro/commit/3c7ab178da26d095777495bcee94b468937936a3) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Adds a new setting for disabling the Auto Import Cache. The cache can cause an issue where new files are not able to be automatically imported using autocomplete in certain cases. Check https://github.com/withastro/astro/issues/14642 for more details. ## 2.15.5 diff --git a/packages/language-tools/language-server/src/core/astro2tsx.ts b/packages/language-tools/language-server/src/core/astro2tsx.ts index 30904eb5f7b8..78b122c6ea8f 100644 --- a/packages/language-tools/language-server/src/core/astro2tsx.ts +++ b/packages/language-tools/language-server/src/core/astro2tsx.ts @@ -28,7 +28,7 @@ export function safeConvertToTSX(content: string, options: ConvertToTSXOptions) return tsx; } catch (e) { 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/language-tools/issues\nError: ${e}.`, + `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}.`, ); return { @@ -46,7 +46,7 @@ export function safeConvertToTSX(content: string, options: ConvertToTSXOptions) code: 1000, location: { file: options.filename!, line: 1, column: 1, length: content.length }, severity: 1, - 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/language-tools/issues`, + 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`, }, ], metaRanges: { diff --git a/packages/language-tools/language-server/src/core/parseAstro.ts b/packages/language-tools/language-server/src/core/parseAstro.ts index f9f8f4182461..d69bdba11b16 100644 --- a/packages/language-tools/language-server/src/core/parseAstro.ts +++ b/packages/language-tools/language-server/src/core/parseAstro.ts @@ -26,7 +26,7 @@ function safeParseAst(fileName: string, input: string, parseOptions: ParseOption return parseResult; } catch (e) { 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/language-tools/issues\nError: ${e}.`, + `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}.`, ); return { @@ -44,7 +44,7 @@ function safeParseAst(fileName: string, input: string, parseOptions: ParseOption length: input.length, }, severity: 1, - 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/language-tools/issues`, + 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`, }, ], }; diff --git a/packages/language-tools/ts-plugin/src/astro2tsx.ts b/packages/language-tools/ts-plugin/src/astro2tsx.ts index 220e12750d0a..fcbbd7ef16cc 100644 --- a/packages/language-tools/ts-plugin/src/astro2tsx.ts +++ b/packages/language-tools/ts-plugin/src/astro2tsx.ts @@ -11,7 +11,7 @@ function safeConvertToTSX(content: string, options: ConvertToTSXOptions) { return tsx; } catch (e) { 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/language-tools/issues\nError: ${e}.`, + `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}.`, ); return { @@ -29,7 +29,7 @@ function safeConvertToTSX(content: string, options: ConvertToTSXOptions) { code: 1000, location: { file: options.filename!, line: 1, column: 1, length: content.length }, severity: 1, - text: `The Astro compiler encountered an unknown error while parsing this file. Please create an issue with your code and the error shown in the server's logs: https://github.com/withastro/language-tools/issues`, + text: `The Astro compiler encountered an unknown error while parsing this file. Please create an issue with your code and the error shown in the server's logs: https://github.com/withastro/astro/issues`, }, ], metaRanges: { diff --git a/packages/language-tools/vscode/CHANGELOG.md b/packages/language-tools/vscode/CHANGELOG.md index 23ca8f126b2b..816cefb7518b 100644 --- a/packages/language-tools/vscode/CHANGELOG.md +++ b/packages/language-tools/vscode/CHANGELOG.md @@ -4,7 +4,7 @@ ### Minor Changes -- [#14584](https://github.com/withastro/astro/pull/14584) [`3c7ab17`](https://github.com/withastro/astro/commit/3c7ab178da26d095777495bcee94b468937936a3) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Adds a new setting for disabling the Auto Import Cache. The cache can cause an issue where new files are not able to be automatically imported using autocomplete in certain cases. Check https://github.com/withastro/language-tools/issues/1035 for more details. +- [#14584](https://github.com/withastro/astro/pull/14584) [`3c7ab17`](https://github.com/withastro/astro/commit/3c7ab178da26d095777495bcee94b468937936a3) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Adds a new setting for disabling the Auto Import Cache. The cache can cause an issue where new files are not able to be automatically imported using autocomplete in certain cases. Check https://github.com/withastro/astro/issues/14642 for more details. ## 2.15.5 @@ -29,7 +29,7 @@ ### Patch Changes -- 43f66cd: Fixes publishing on OpenVSX. For full changelogs between 2.11.0 and this version, please see [CHANGELOG.md](https://github.com/withastro/language-tools/blob/main/packages/vscode/CHANGELOG.md) in the repository. +- 43f66cd: Fixes publishing on OpenVSX. For full changelogs between 2.11.0 and this version, please see [CHANGELOG.md](https://github.com/withastro/astro/blob/main/packages/language-tools/vscode/CHANGELOG.md) in the repository. ## 2.15.1 diff --git a/packages/language-tools/vscode/README.md b/packages/language-tools/vscode/README.md index caf19e8e9cdc..85199f3fe523 100644 --- a/packages/language-tools/vscode/README.md +++ b/packages/language-tools/vscode/README.md @@ -2,7 +2,7 @@ > 🧑‍🚀 Not sure what Astro is? See our website at [astro.build](https://astro.build)! -Provides language support for `.astro` files. This extension is powered by the [Astro language server](https://github.com/withastro/language-tools/tree/main/packages/language-server). +Provides language support for `.astro` files. This extension is powered by the [Astro language server](https://github.com/withastro/astro/tree/main/packages/language-tools/language-server). ## Features diff --git a/packages/language-tools/vscode/package.json b/packages/language-tools/vscode/package.json index 7f955ac78d87..a6aa1471a39c 100644 --- a/packages/language-tools/vscode/package.json +++ b/packages/language-tools/vscode/package.json @@ -152,7 +152,7 @@ "scope": "resource", "type": "boolean", "default": true, - "markdownDescription": "Enable the auto import cache. Yields a faster intellisense when automatically importing a file, but can cause issues with new files not being detected. Change is applied on restart. See [#1035](https://github.com/withastro/language-tools/issues/1035)." + "markdownDescription": "Enable the auto import cache. Yields a faster intellisense when automatically importing a file, but can cause issues with new files not being detected. Change is applied on restart. See [#14642](https://github.com/withastro/astro/issues/14642)." }, "astro.updateImportsOnFileMove.enabled": { "scope": "resource",