News

Microsoft Tests Copilot-Powered Tool to Modernize JavaScript/TypeScript in VS Code

Microsoft is previewing a new AI-assisted tool for Visual Studio Code Insiders called the JavaScript/TypeScript Modernizer. It's designed to help developers modernize older JavaScript or TypeScript projects by upgrading npm dependencies and fixing resulting breaking changes, with GitHub Copilot doing much of the work through an interactive Chat workflow in the editor.

It comes with the preview version of the GitHub Copilot App Modernization VS Code Extension when installed in VS Code Insiders, Microsoft's preview/nightly build of VS Code where you get the newest features and experiments first, updated frequently, before they roll into the regular Stable release.

The tool is just about to hit 500,000 installs, having debuted in May and being updated just today.

GitHub Copilot App Modernization
[Click on image for larger view.] GitHub Copilot App Modernization (source: Microsoft).

"In a nutshell, it analyzes your project (looking at files like package.json), suggests an upgrade plan, and then automatically updates your npm packages to their latest versions," Microsoft said yesterday. "As it upgrades libraries, it also helps apply any necessary code changes to accommodate breaking changes or new APIs."

The announcement on Microsoft's DevBlogs site details how to get set up, which involves using VS Code Insiders with Node.js/npm and GitHub Copilot enabled, installing the extension, turning on the "appmod.experimental.task.typescript.upgrade": true experimental setting in VS Code, and restarting the editor. It also lists step-by-step guidance to modernize a JS/TS app, which involves opening a project with a package.json in VS Code Insiders, launching the GitHub Copilot App Modernization panel, clicking "Upgrade npm Packages," following the Copilot Chat agent's prompts as it updates dependencies and fixes breaking changes, and then reviewing, testing, and committing the resulting changes. The guidance says the preview is best used for one project at a time and warns of common issues that might arise in any preview.

"You might encounter some rough edges or cases where the tool can't fully modernize a complex app," Microsoft said. "If the tool gets stuck or something isn't working as expected please let us know."

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Full-Stack with a Side of Copilot: Building and Deploying an App the AI-Accelerated Way

    In this Q&A, developer and VSLive! speaker Esteban Garcia explains how GitHub Copilot can accelerate the full software development lifecycle -- from architecture and code to tests, CI/CD, and Azure deployment -- and how to use it as a repeatable engineering workflow rather than just a faster autocomplete tool.

  • VS Code 1.127 Further Integrates Advanced Browser-AI Tech

    Microsoft's July 1 Visual Studio Code update continues a recent push to make the editor's integrated browser a more capable development surface -- and a more useful tool for AI agents.

  • Support Vector Regression with SGD Training Using C#

    Support vector regression can predict numeric values effectively, and this article shows how to implement and train a kernel SVR model in C# using stochastic sub-gradient descent.

  • New GitHub Switch Limits Repo Issue Creation to Collaborators Only

    After publicly touting pull request limits as a way to cut maintainer noise, GitHub is taking the same idea further with a new setting that lets repository admins restrict issue creation to collaborators only.

Subscribe on YouTube