Use the Microsoft CFS registry instead of npm's registry directly (#12787)

This commit is contained in:
Bob Brown 2024-09-30 12:46:12 -07:00 коммит произвёл GitHub
Родитель b70f1562c1
Коммит 1ec1c9bb94
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
6 изменённых файлов: 4788 добавлений и 4856 удалений

2
.github/actions/.npmrc поставляемый Normal file
Просмотреть файл

@ -0,0 +1,2 @@
registry=https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/
always-auth=true

6658
.github/actions/package-lock.json сгенерированный поставляемый

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -48,3 +48,9 @@ instructions provided by the bot. You will only need to do this once across all
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
### Adding/Updating package.json dependencies
We maintain a public Azure Artifacts feed that we point the package manager to in .npmrc files. If you want to add a dependency or update a version in package.json, you may need to contact us so we can add it to our feed. Please ping our team in a PR or new issue if you experience this issue.
For local development, you can delete the .npmrc file and the matching `yarn.lock` file while you wait for us to update the feed. However, these changes will need to be reverted in your branch before we will accept a PR.

2
Extension/.npmrc Normal file
Просмотреть файл

@ -0,0 +1,2 @@
registry=https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/
always-auth=true

Просмотреть файл

@ -144,7 +144,7 @@ export class CodeActionProvider implements vscode.CodeActionProvider {
if (codeActionCodeInfo !== undefined) {
if (codeActionCodeInfo.fixAllTypeCodeAction !== undefined &&
(codeActionCodeInfo.uriToInfo.size > 1 ||
codeActionCodeInfo.uriToInfo.values().next().value.numValidWorkspaceEdits > 1)) {
(codeActionCodeInfo.uriToInfo.values().next().value?.numValidWorkspaceEdits ?? 0) > 1)) {
// Only show the "fix all type" if there is more than one fix for the type.
fixCodeActions.push(codeActionCodeInfo.fixAllTypeCodeAction);
}
@ -161,7 +161,7 @@ export class CodeActionProvider implements vscode.CodeActionProvider {
if (codeActionCodeInfo.removeAllTypeCodeAction !== undefined &&
codeActionCodeInfo.uriToInfo.size > 0 &&
(codeActionCodeInfo.uriToInfo.size > 1 ||
codeActionCodeInfo.uriToInfo.values().next().value.identifiers.length > 1)) {
(codeActionCodeInfo.uriToInfo.values().next().value?.identifiers?.length ?? 0) > 1)) {
// Only show the "clear all type" if there is more than one fix for the type.
removeAllTypeAvailable = true;
}

Разница между файлами не показана из-за своего большого размера Загрузить разницу