This is a sample Visual Studio Code extension that provides stock price information using Yahoo Finance. The extension integrates with GitHub Copilot Chat to offer a seamless experience for users to get stock information.
- Fetch current stock prices using Yahoo Finance.
- Integrate with GitHub Copilot Chat for interactive stock price queries.
- Register and use custom chat participants and tools.
- Visual Studio Code (version 1.95.0 or higher)
- Node.js (version 14.x or higher)
- npm
-
Clone the repository:
git clone https://github.com/your-username/sample-copilot-chat.git cd sample-copilot-chat
-
Install the dependencies:
npm install
-
Compile the TypeScript code:
npm run compile
- Open the project in Visual Studio Code.
- Press
F5
to open a new window with your extension loaded. - Run your command from the command palette by pressing (
Ctrl+Shift+P
orCmd+Shift+P
on Mac) and typingHello World
.
- Set breakpoints in your code inside
src/extension.ts
to debug your extension. - Find output from your extension in the debug console.
- Run the "watch" task via the Tasks: Run Task command.
- Open the Testing view from the activity bar and click the "Run Test" button, or use the hotkey
Ctrl/Cmd + ; A
. - See the output of the test result in the Test Results view.
src/extension.ts
: Main file where the extension is implemented.src/stockTools.ts
: Contains the implementation of theStockPriceTool
class..vscode/
: Contains VS Code specific configuration files.package.json
: Manifest file that declares the extension and its dependencies.tsconfig.json
: TypeScript configuration file.eslint.config.mjs
: ESLint configuration file.
Contributions are welcome! Please open an issue or submit a pull request for any changes or improvements.
This project is licensed under the MIT License. See the LICENSE file for details.