Skip to content

Commit f718b2e

Browse files
committed
Merge branch 'main' into isidorn/wicked-carp
2 parents eceab56 + d7705dd commit f718b2e

146 files changed

Lines changed: 2620 additions & 925 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/commands.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,15 @@
622622
"action": "close",
623623
"reason": "not_planned",
624624
"comment": "Thank you for your submission. This issue has been closed as it doesn't meet our community guidelines or appears to be spam.\n\n**If you believe this was closed in error:**\n- Please review our [Code of Conduct](https://opensource.microsoft.com/codeofconduct/)\n- Ensure your issue contains a clear description of the problem or feature request\n- Feel free to open a new issue with appropriate detail if this was a legitimate concern\n\n**For legitimate issues, please include:**\n- Clear description of the problem\n- Steps to reproduce (for bugs)\n- Expected vs actual behavior\n- VS Code version and environment details\n\nThank you for helping us maintain a welcoming and productive community."
625+
},
626+
{
627+
"type": "label",
628+
"name": "~capi",
629+
"addLabel": "capi",
630+
"removeLabel": "~capi",
631+
"assign": [
632+
"samvantran",
633+
"thispaul"
634+
]
625635
}
626-
627636
]

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
22
// --- Chat ---
33
// "inlineChat.enableV2": true,
4+
"chat.tools.terminal.autoApprove": {
5+
"/^npm (test|lint|run compile)\\b/": true,
6+
"/^npx tsc\\b.*--noEmit/": true,
7+
"scripts/test.bat": true,
8+
"scripts/test.sh": true,
9+
"scripts/test-integration.bat": true,
10+
"scripts/test-integration.sh": true,
11+
},
412

513
// --- Editor ---
614
"editor.insertSpaces": false,

build/win32/code.iss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,9 +1534,8 @@ begin
15341534
if CurStep = ssPostInstall then
15351535
begin
15361536
#ifdef AppxPackageName
1537-
if not WizardIsTaskSelected('addcontextmenufiles') then begin
1538-
RegDeleteKeyIncludingSubkeys({#EnvironmentRootKey}, 'Software\Classes\{#RegValueName}ContextMenu');
1539-
end else begin
1537+
// Remove the old context menu registry keys for insiders
1538+
if QualityIsInsiders() and WizardIsTaskSelected('addcontextmenufiles') then begin
15401539
RegDeleteKeyIncludingSubkeys({#EnvironmentRootKey}, 'Software\Classes\*\shell\{#RegValueName}');
15411540
RegDeleteKeyIncludingSubkeys({#EnvironmentRootKey}, 'Software\Classes\directory\shell\{#RegValueName}');
15421541
RegDeleteKeyIncludingSubkeys({#EnvironmentRootKey}, 'Software\Classes\directory\background\shell\{#RegValueName}');

extensions/git/src/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3457,7 +3457,7 @@ export class CommandCenter {
34573457
return [createBranch, { label: '', kind: QuickPickItemKind.Separator }, ...branchItems];
34583458
};
34593459

3460-
const placeHolder = l10n.t('Select a branch to create the new worktree from');
3460+
const placeHolder = l10n.t('Select a branch or tag to create the new worktree from');
34613461
const choice = await this.pickRef(getBranchPicks(), placeHolder);
34623462

34633463
if (!choice) {

extensions/github-authentication/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@
5555
"type": "string",
5656
"markdownDescription": "%config.github-enterprise.uri.description%",
5757
"pattern": "^(?:$|(https?)://(?!github\\.com).*)"
58+
},
59+
"github-authentication.useElectronFetch": {
60+
"type": "boolean",
61+
"default": true,
62+
"scope": "application",
63+
"markdownDescription": "%config.github-authentication.useElectronFetch.description%"
5864
}
5965
}
6066
}

extensions/github-authentication/package.nls.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"displayName": "GitHub Authentication",
33
"description": "GitHub Authentication Provider",
44
"config.github-enterprise.title": "GHE.com & GitHub Enterprise Server Authentication",
5-
"config.github-enterprise.uri.description": "The URI for your GHE.com or GitHub Enterprise Server instance.\n\nExamples:\n* GHE.com: `https://octocat.ghe.com`\n* GitHub Enterprise Server: `https://github.octocat.com`\n\n> **Note:** This should _not_ be set to a GitHub.com URI. If your account exists on GitHub.com or is a GitHub Enterprise Managed User, you do not need any additional configuration and can simply log in to GitHub."
5+
"config.github-enterprise.uri.description": "The URI for your GHE.com or GitHub Enterprise Server instance.\n\nExamples:\n* GHE.com: `https://octocat.ghe.com`\n* GitHub Enterprise Server: `https://github.octocat.com`\n\n> **Note:** This should _not_ be set to a GitHub.com URI. If your account exists on GitHub.com or is a GitHub Enterprise Managed User, you do not need any additional configuration and can simply log in to GitHub.",
6+
"config.github-authentication.useElectronFetch.description": "When true, uses Electron's built-in fetch function for HTTP requests. When false, uses the Node.js global fetch function. This setting only applies when running in the Electron environment. **Note:** A restart is required for this setting to take effect."
67
}

extensions/github-authentication/src/extension.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,21 @@ export function activate(context: vscode.ExtensionContext) {
7979
}
8080
}
8181
}));
82+
83+
// Listener to prompt for reload when the fetch implementation setting changes
84+
context.subscriptions.push(vscode.workspace.onDidChangeConfiguration(async e => {
85+
if (e.affectsConfiguration('github-authentication.useElectronFetch')) {
86+
const selection = await vscode.window.showInformationMessage(
87+
vscode.l10n.t('GitHub Authentication - Reload required'),
88+
{
89+
modal: true,
90+
detail: vscode.l10n.t('A reload is required for the fetch setting change to take effect.')
91+
},
92+
vscode.l10n.t('Reload Window')
93+
);
94+
if (selection) {
95+
await vscode.commands.executeCommand('workbench.action.reloadWindow');
96+
}
97+
}
98+
}));
8299
}

extensions/github-authentication/src/node/fetch.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,19 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6+
import { workspace } from 'vscode';
7+
68
let _fetch: typeof fetch;
7-
try {
8-
_fetch = require('electron').net.fetch;
9-
} catch {
9+
10+
const useElectronFetch = workspace.getConfiguration('github-authentication').get<boolean>('useElectronFetch', true);
11+
if (useElectronFetch) {
12+
try {
13+
_fetch = require('electron').net.fetch;
14+
} catch {
15+
_fetch = fetch;
16+
}
17+
} else {
1018
_fetch = fetch;
1119
}
20+
1221
export const fetching = _fetch;

extensions/html-language-features/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)