mirror of
https://github.com/microsoft/vscode.git
synced 2026-10-08 19:10:39 +01:00
* agentHost: use async filesystem grants (Written by Copilot) Avoid blocking the agent host event loop during relay resource and directory authorization. Await grant checks before dispatch and preserve session listing filters and symlink restrictions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * agentHost: preserve relay action ordering (Written by Copilot) Serialize asynchronous grant authorization and dispatch per relay client, including mixed request and notification forms, without changing synchronous local dispatch. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * eslint: guard sync filesystem calls (Written by Copilot) Reject synchronous filesystem calls in production code, convert 17 low-risk runtime call sites, and document narrow startup/shutdown exceptions and deferred synchronous contracts. Run custom rule tests through the CI build-test entry point. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * eslint: refine sync filesystem scope (Written by Copilot) Keep bootstrap, designated core startup/shutdown, and isolated askpass code out of the rule. Strengthen the diagnostic against disabling it and convert four more low-risk call sites to async without changing their existing contracts. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * eslint: justify sync FS exceptions (Written by Copilot) Explain the shutdown, ordering, readiness, and synchronous consumer constraints behind each suppression. Identify temporary migration blockers explicitly rather than treating descriptions of synchronous APIs as permanent justifications. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * eslint: fix bound sync FS detection (Written by Copilot) Track bound synchronous functions without flagging bind itself, and await cache-readiness filesystem probes instead of suppressing synchronous polling. Cover bound invocations and ready/missing marker behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Git integration for Visual Studio Code
Notice: This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.
Features
See Git support in VS Code to learn about the features of this extension.
API
The Git extension exposes an API, reachable by any other extension.
-
Copy
src/api/git.d.tsto your extension's sources; -
Include
git.d.tsin your extension's compilation. -
Get a hold of the API with the following snippet:
const gitExtension = vscode.extensions.getExtension<GitExtension>('vscode.git').exports; const git = gitExtension.getAPI(1);Note: To ensure that the
vscode.gitextension is activated before your extension, addextensionDependencies(docs) into thepackage.jsonof your extension:"extensionDependencies": [ "vscode.git" ]