codeflash-internal/js/VSC-Extension
snyk-io[bot] f7f3e7f0bd
[Snyk] Security upgrade diff from 8.0.2 to 8.0.3 (#2305)
![snyk-top-banner](https://res.cloudinary.com/snyk/image/upload/r-d/scm-platform/snyk-pull-requests/pr-banner-default.svg)

### Snyk has created this PR to fix 1 vulnerabilities in the npm
dependencies of this project.

#### Snyk changed the following file(s):

- `js/VSC-Extension/package.json`




#### Vulnerabilities that will be fixed with an upgrade:

|  | Issue | Score | 

:-------------------------:|:-------------------------|:-------------------------
![medium
severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/m.png
'medium severity') | Regular Expression Denial of Service (ReDoS)
<br/>[SNYK-JS-DIFF-14917201](https://snyk.io/vuln/SNYK-JS-DIFF-14917201)
| &nbsp;&nbsp;**708**&nbsp;&nbsp;




---

> [!IMPORTANT]
>
> - Check the changes in this PR to ensure they won't cause issues with
your project.
> - Max score is 1000. Note that the real score may have changed since
the PR was raised.
> - This PR was automatically created by Snyk using the credentials of a
real user.

---

**Note:** _You are seeing this because you or someone else with access
to this repository has authorized Snyk to open fix PRs._

For more information: <img
src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiI1YmZkM2I3OC1iNmQ1LTRmNTYtODBhNC1iZDg4YmMzMTA4NDAiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6IjViZmQzYjc4LWI2ZDUtNGY1Ni04MGE0LWJkODhiYzMxMDg0MCJ9fQ=="
width="0" height="0"/>
🧐 [View latest project
report](https://app.snyk.io/org/sarthak-aNe3RTvxtiDtBRn3AkWpLk/project/9d3b7f4a-fb81-42ff-ac9e-3cf1a6bff233?utm_source&#x3D;github-cloud-app&amp;utm_medium&#x3D;referral&amp;page&#x3D;fix-pr)
📜 [Customise PR
templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates?utm_source=github-cloud-app&utm_content=fix-pr-template)
🛠 [Adjust project
settings](https://app.snyk.io/org/sarthak-aNe3RTvxtiDtBRn3AkWpLk/project/9d3b7f4a-fb81-42ff-ac9e-3cf1a6bff233?utm_source&#x3D;github-cloud-app&amp;utm_medium&#x3D;referral&amp;page&#x3D;fix-pr/settings)
📚 [Read about Snyk's upgrade
logic](https://docs.snyk.io/scan-with-snyk/snyk-open-source/manage-vulnerabilities/upgrade-package-versions-to-fix-vulnerabilities?utm_source=github-cloud-app&utm_content=fix-pr-template)

---

**Learn how to fix vulnerabilities with free interactive lessons:**

🦉 [Regular Expression Denial of Service
(ReDoS)](https://learn.snyk.io/lesson/redos/?loc&#x3D;fix-pr)

[//]: #
'snyk:metadata:{"breakingChangeRiskLevel":null,"FF_showPullRequestBreakingChanges":false,"FF_showPullRequestBreakingChangesWebSearch":false,"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"diff","from":"8.0.2","to":"8.0.3"}],"env":"prod","issuesToFix":["SNYK-JS-DIFF-14917201"],"prId":"5bfd3b78-b6d5-4f56-80a4-bd88bc310840","prPublicId":"5bfd3b78-b6d5-4f56-80a4-bd88bc310840","packageManager":"npm","priorityScoreList":[708],"projectPublicId":"9d3b7f4a-fb81-42ff-ac9e-3cf1a6bff233","projectUrl":"https://app.snyk.io/org/sarthak-aNe3RTvxtiDtBRn3AkWpLk/project/9d3b7f4a-fb81-42ff-ac9e-3cf1a6bff233?utm_source=github-cloud-app&utm_medium=referral&page=fix-pr","prType":"fix","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":["updated-fix-title","priorityScore"],"type":"auto","upgrade":["SNYK-JS-DIFF-14917201"],"vulns":["SNYK-JS-DIFF-14917201"],"patch":[],"isBreakingChange":false,"remediationStrategy":"vuln"}'

Co-authored-by: snyk-io[bot] <141718529+snyk-io[bot]@users.noreply.github.com>
2026-01-27 17:37:39 +05:30
..
.vscode [VSC] React sidebar & reduce bundle size (#1761) 2025-09-04 18:58:54 +05:30
media [VSC] React sidebar & reduce bundle size (#1761) 2025-09-04 18:58:54 +05:30
packages Refactor optimization result properties in SidebarProvider, CommentThreadProvider, and OptimizationService 2026-01-20 01:45:53 +02:00
src Refactor optimization result properties in SidebarProvider, CommentThreadProvider, and OptimizationService 2026-01-20 01:45:53 +02:00
.gitignore ignore vsxix 2025-08-20 00:50:33 +03:00
.prettierignore [VSC] React sidebar & reduce bundle size (#1761) 2025-09-04 18:58:54 +05:30
.prettierrc prettier 2025-08-19 22:50:02 +03:00
.vscodeignore [VSC] React sidebar & reduce bundle size (#1761) 2025-09-04 18:58:54 +05:30
ARCHITECTURE.md [VSC] React sidebar & reduce bundle size (#1761) 2025-09-04 18:58:54 +05:30
CHANGELOG.md [VSC] React sidebar & reduce bundle size (#1761) 2025-09-04 18:58:54 +05:30
esbuild.js [Feat] Organization (#1888) 2025-10-29 13:05:40 -07:00
eslint.config.mjs [VSC-EXT] Thought process (#1798) 2025-09-18 11:48:00 -07:00
EXTENSION_GUIDE.md [VSC] React sidebar & reduce bundle size (#1761) 2025-09-04 18:58:54 +05:30
IMPLEMENTATION_SUMMARY.md [VSC] React sidebar & reduce bundle size (#1761) 2025-09-04 18:58:54 +05:30
License.md [VSC] React sidebar & reduce bundle size (#1761) 2025-09-04 18:58:54 +05:30
package-lock.json VSC version upgrade to 19 (#2128) 2025-12-23 22:21:52 +05:30
package.json [Snyk] Security upgrade diff from 8.0.2 to 8.0.3 (#2305) 2026-01-27 17:37:39 +05:30
README.md update 2025-11-13 16:44:32 -08:00
REFACTORING_SUMMARY.md [VSC] React sidebar & reduce bundle size (#1761) 2025-09-04 18:58:54 +05:30
tsconfig.json [VSC] manual patch apply and 3-way merge (LCS) & workspace state instead of ~/.config with lsp (CF-725) (#1834) 2025-10-01 13:35:32 -07:00
vsc-extension-quickstart.md prettier 2025-08-19 22:50:02 +03:00

Codeflash VS Code Extension

VS Code Marketplace License: BSL-1.1

With Codeflash, all the Python code you and your agents write can be always optimal. One-click optimization, automate optimization after every commit, and see optimization progress in real time, and more.

Codeflash does everything that an expert performance engineer would do to find optimizations. It profiles your code, generates multiple optimization ideas, generates tests, and finds the fastest code that is correct and safe to merge.

Features

  • One-Click Optimization - Find AI-generated optimizations easily with CodeLens hints
  • 📊 Real-time Progress - Track optimization progress with detailed status updates
  • Inline Optimization Suggestions - See optimization opportunities directly above function definitions
  • 🎯 Smart Function Detection - Automatically identifies optimizable Python functions
  • 🔄 Git Integration - Optimize only changed functions with "Optimize Changed Functions"
  • 🎨 Clean Interface - Keeps you in the flow, finds optimizations in the background and stays out of your way until it finds and optimization.

Requirements

  • Python 3.9+
  • Git repository (required)
  • VS Code 1.94.0+

Quick Start

  1. Install the Codeflash extension from the Extension Marketplace
  2. Follow the installation flow to initialize Codeflash
  3. Open a Python file - Codeflash activates automatically
  4. See optimize suggestions appear above optimizable functions
  5. Click to optimize or use the sidebar to manage optimizations

Usage

Inline CodeLens

 # optimize <- Click to optimize
def slow_function(data):
    result = []
    for item in data:
        if item in [1, 2, 3, 4, 5]:
            result.append(item * 2)
    return result

Key Workflow

  1. Code normally - Write and modify Python functions
  2. See suggestions - Codeflash shows optimization opportunities
  3. Optimize selectively - Choose which functions to improve
  4. Track progress - Monitor optimizations in the sidebar
  5. Review changes - View diffs and apply improvements

Documentation

📖 Complete Documentation: https://docs.codeflash.ai/

Key Resources:

Troubleshooting

Extension won't activate?

  • Ensure you've run codeflash init in your project
  • Verify Git repository exists (.git folder)
  • Check Python 3.9+ is installed and in PATH

No functions showing?

  • Open a .py file with functions
  • Wait for analysis to complete
  • Check VS Code Output → Codeflash for errors

Need help?