This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GitHub Copilot Instructions for REST API Development | |
## General Guidelines: | |
- Follow modern **TypeScript** best practices. | |
- Prioritize **modular and reusable code** for maintainability. | |
- Always use **ESLint** and **Prettier** for code formatting and linting. | |
- Ensure compatibility with **Node.js LTS versions**. | |
## API Development: | |
- Adhere to **RESTful API principles**. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { exec } from 'child_process'; | |
import * as vscode from 'vscode'; | |
export function registerChatTools(context: vscode.ExtensionContext) { | |
context.subscriptions.push(vscode.lm.registerTool("runScript", new RunInTerminalTool())); | |
} | |
interface IRunInTerminalParameters { | |
command: string; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: https://github.com/microsoft/vscode-extension-samples/tree/main/chat-sample | |
import { | |
AssistantMessage, | |
BasePromptElementProps, | |
Chunk, | |
PrioritizedList, | |
PromptElement, | |
PromptElementProps, | |
PromptMetadata, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { renderPrompt } from '@vscode/prompt-tsx'; | |
import * as vscode from 'vscode'; | |
import { ToolCallRound, ToolResultMetadata, ToolUserPrompt } from './tools-prompt'; | |
// define a chat handler | |
export const handler: vscode.ChatRequestHandler = async ( | |
request: vscode.ChatRequest, | |
context: vscode.ChatContext, | |
stream: vscode.ChatResponseStream, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
az login |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference types="cypress" /> | |
// *********************************************************** | |
// This example plugins/index.js can be used to load plugins | |
// | |
// You can change the location of this file or turn off loading | |
// the plugins file with the 'pluginsFile' configuration option. | |
// | |
// You can read more here: | |
// https://on.cypress.io/plugins-guide | |
// *********************************************************** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"TAGS": "not @ignore", | |
"cypress-plugin-snapshots": { | |
"autoCleanUp": true, | |
"autopassNewSnapshots": true, | |
"diffLines": 3, | |
"prettier": true, | |
"imageConfig": { | |
"createDiffImage": true, |