Merge branch 'main' of https://github.com/microsoft/vscode-docs into vnext
This commit is contained in:
Коммит
061b1da615
|
@ -67,7 +67,7 @@ The following screenshot shows the different chat concepts in the Visual Studio
|
|||
|
||||
## Develop a chat extension
|
||||
|
||||
A chat extension is an extension that has a dependency on the [Copilot Chat extension](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat) and contributes a chat participant. You can find details about how to define `extensionDependencies` in the [extension manifest](/api/references/extension-manifest).
|
||||
A chat extension is an extension that contributes a chat participant to the [Chat](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat) view.
|
||||
|
||||
The minimum functionality that is needed for implementing a chat extension is:
|
||||
|
||||
|
@ -336,6 +336,7 @@ Once you have created your AI extension, you can publish your extension to the V
|
|||
- By publishing to the VS Marketplace, your extension is adhering to the [GitHub Copilot extensibility acceptable development and use policy](https://docs.github.com/en/early-access/copilot/github-copilot-extensibility-platform-partnership-plugin-acceptable-development-and-use-policy).
|
||||
- Update the attributes in the `package.json` to make it easy for users to find your extension. Add "AI" and "Chat" to the `categories` field in your `package.json`.
|
||||
- Upload to the Marketplace as described in [Publishing Extension](https://code.visualstudio.com/api/working-with-extensions/publishing-extension).
|
||||
- If your extension already contributes functionality other than chat, we recommend that you do not introduce an extension dependency on GitHub Copilot in the [extension manifest](/api/references/extension-manifest). This ensures that extension users that do not use GitHub Copilot can use the non-chat functionality without having to install GitHub Copilot.
|
||||
|
||||
## Related content
|
||||
|
||||
|
|
|
@ -215,6 +215,7 @@ Once you have created your AI extension, you can publish your extension to the V
|
|||
- Before publishing to the VS Marketplace we recommend that you read the [Microsoft AI tools and practices guidelines](https://www.microsoft.com/en-us/ai/tools-practices). These guidelines provide best practices for the responsible development and use of AI technologies.
|
||||
- By publishing to the VS Marketplace, your extension is adhering to the [GitHub Copilot extensibility acceptable development and use policy](https://docs.github.com/en/early-access/copilot/github-copilot-extensibility-platform-partnership-plugin-acceptable-development-and-use-policy).
|
||||
- Update the attributes in the `package.json` to make it easy for users to find your extension. Add "AI" to the `categories` field in your `package.json`. If your extension contributes a Chat Participant, add "Chat" as well.
|
||||
- If your extension already contributes functionality other than using the Language Model API, we recommend that you do not introduce an extension dependency on GitHub Copilot in the [extension manifest](/api/references/extension-manifest). This ensures that extension users that do not use GitHub Copilot can use the non language model functionality without having to install GitHub Copilot. Make sure to have appropriate error handling when accessing language models for this case.
|
||||
- Upload to the Marketplace as described in [Publishing Extension](https://code.visualstudio.com/api/working-with-extensions/publishing-extension).
|
||||
|
||||
## Related content
|
||||
|
|
|
@ -12,8 +12,19 @@ MetaSocialImage: images/debugging/debugging-social.png
|
|||
|
||||
One of the key features of Visual Studio Code is its great debugging support. VS Code's built-in debugger helps accelerate your edit, compile, and debug loop.
|
||||
|
||||
<iframe width="560" height="315" src="https://www.youtube.com/embed/3HiLLByBWkg" title="Getting started with debugging in VS Code" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||
|
||||
## User interface
|
||||
|
||||
The following diagram shows the main components of the debugging user interface:
|
||||
|
||||
![Debugging diagram](images/debugging/debugging_hero.png)
|
||||
|
||||
1. **Run and Debug view**: displays all information related to running, debugging, and managing debug configuration settings.
|
||||
1. **Debug toolbar**: has buttons for the most common debugging actions.
|
||||
1. **Debug console**: enables viewing and interacting with the output of your code running in the debugger.
|
||||
1. **Debug sidebar**: during a debug session, lets you interact with the call stack, breakpoints, variables, and watch variables.
|
||||
|
||||
## Debugger extensions
|
||||
|
||||
VS Code has built-in debugging support for the [Node.js](https://nodejs.org/) runtime and can debug JavaScript, TypeScript, or any other language that gets transpiled to JavaScript.
|
||||
|
@ -529,10 +540,9 @@ To learn about VS Code's Node.js debugging support, take a look at:
|
|||
* [Node.js](/docs/nodejs/nodejs-debugging.md) - Describes the Node.js debugger, which is included in VS Code.
|
||||
* [TypeScript](/docs/typescript/typescript-debugging.md) - The Node.js debugger also supports TypeScript debugging.
|
||||
|
||||
To see tutorials on the basics of Node.js debugging, check out these videos:
|
||||
To see a tutorial on the basics of debugging, check out this video:
|
||||
|
||||
* [Intro Video - Debugging](/docs/introvideos/debugging.md) - Showcases the basics of debugging.
|
||||
* [Getting started with Node.js debugging](https://www.youtube.com/watch?v=2oFKNL7vYV8) - Shows how to attach a debugger to a running Node.js process.
|
||||
* [Getting started with debugging in VS Code](https://www.youtube.com/watch?v=3HiLLByBWkg) - Learn about debugging in VS Code.
|
||||
|
||||
To learn about debugging support for other programming languages via VS Code extensions:
|
||||
|
||||
|
|
|
@ -61,4 +61,4 @@ The Visual Studio Code editor supports debugging [Electron](https://www.electron
|
|||
|
||||
* [Debugging](/docs/editor/debugging.md) - Read about general VS Code debugging features.
|
||||
* [Node.js Debugging](/docs/nodejs/nodejs-debugging.md) - Learn about the built-in Node.js debugger.
|
||||
* [Video: Getting started with Node.js debugging](https://www.youtube.com/watch?v=2oFKNL7vYV8) - Attach to a running Node.js process.
|
||||
* [Video: Getting started with debugging in VS Code](https://www.youtube.com/watch?v=3HiLLByBWkg) - Learn about debugging in VS Code.
|
||||
|
|
|
@ -96,7 +96,7 @@ Launch configs are the traditional way to set up debugging in VS Code, and provi
|
|||
|
||||
In this section we'll go into more detail about configurations and features for more advanced debugging scenarios. You'll find instruction for debugging with [source maps](/docs/nodejs/nodejs-debugging.md#source-maps), [stepping over external code](/docs/nodejs/nodejs-debugging.md#skipping-uninteresting-code), doing [remote debugging](/docs/nodejs/nodejs-debugging.md#remote-debugging), and much more.
|
||||
|
||||
If you'd like to watch an introductory video, see [Getting started with Node.js debugging](https://www.youtube.com/watch?v=2oFKNL7vYV8).
|
||||
If you'd like to watch an introductory video, see [Getting started with debugging in VS Code](https://www.youtube.com/watch?v=3HiLLByBWkg).
|
||||
|
||||
>**Note**: If you are just getting started with VS Code, you can learn about general debugging features and creating `launch.json` configuration files in the [Debugging](/docs/editor/debugging.md) topic.
|
||||
|
||||
|
@ -686,10 +686,9 @@ In case you didn't already read the Node.js section, take a look at:
|
|||
|
||||
* [Node.js](/docs/nodejs/nodejs-tutorial.md) - End to end Node scenario with a sample application
|
||||
|
||||
To see tutorials on the basics of Node.js debugging, check out these videos:
|
||||
To see a tutorial on the basics of debugging in VS Code, check out this video:
|
||||
|
||||
* [Intro Video - Debugging](/docs/introvideos/debugging.md) - Introductory video showcasing the basics of debugging.
|
||||
* [Getting started with Node.js debugging](https://www.youtube.com/watch?v=2oFKNL7vYV8) - Learn how to attach to a running Node.js process.
|
||||
* [Getting started with debugging in VS Code](https://www.youtube.com/watch?v=3HiLLByBWkg).
|
||||
|
||||
To learn about VS Code's task running support, go to:
|
||||
|
||||
|
|
|
@ -203,7 +203,7 @@ There is much more to explore with Visual Studio Code, please try the following
|
|||
* [Node.js profile template](/docs/editor/profiles.md#nodejs-profile-template) - Create a new [profile](/docs/editor/profiles) with a curated set of extensions, settings, and snippets.
|
||||
* [Settings](/docs/getstarted/settings.md) - Learn how to customize VS Code for how you like to work.
|
||||
* [Debugging](/docs/editor/debugging.md) - This is where VS Code really shines.
|
||||
* [Video: Getting started with Node.js debugging](https://www.youtube.com/watch?v=2oFKNL7vYV8) - Learn how to attach to a running Node.js process.
|
||||
* [Video: Getting started with debugging in VS Code](https://www.youtube.com/watch?v=3HiLLByBWkg) - Learn how to use debugging in VS Code.
|
||||
* [Node.js debugging](/docs/nodejs/nodejs-debugging.md) - Learn more about VS Code's built-in Node.js debugging.
|
||||
* [Debugging recipes](/docs/nodejs/debugging-recipes.md) - Examples for scenarios like client-side and container debugging.
|
||||
* [Tasks](/docs/editor/tasks.md) - Running tasks with Gulp, Grunt and Jake. Showing Errors and Warnings.
|
||||
|
|
Загрузка…
Ссылка в новой задаче