Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: CI

on:
pull_request:

permissions:
contents: read

jobs:
test-suite:
name: Test suite
runs-on: macos-15

steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 2

- name: Set up Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '20'
cache: npm

- name: Enforce package quarantine
run: npm run check:package-quarantine

- name: Install dependencies
run: |
for attempt in 1 2 3; do
npm ci && break
if [ "$attempt" -eq 3 ]; then
exit 1
fi
done

- name: Compile
run: npm run compile

- name: Run hygiene checks
run: npm run hygiene

- name: Run lint
run: npm run lint

- name: Verify command registrations
run: npm run check:commands

- name: Run test suite
run: npm run test
env:
TEST_JUNIT_XML_PATH: ${{ runner.temp }}/test-results.xml

- name: Publish test summary
if: ${{ !cancelled() }}
uses: test-summary/action@37b508cfee6d4d080eedd00b5bb240a6a784a6a5 # v2
with:
paths: ${{ runner.temp }}/*test-results.xml

- name: Upload test results
if: ${{ !cancelled() }}
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
Comment thread
Copilot marked this conversation as resolved.
with:
name: mocha-test-results
path: ${{ runner.temp }}/*test-results.xml
51 changes: 0 additions & 51 deletions azure-pipeline.pr.yml

This file was deleted.

1 change: 1 addition & 0 deletions build/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ module.exports.indentationFilter = [
'!**/LICENSE.{txt,rtf}',
'!**/LICENSE',
'!**/*.yml',
'!.github/**/*.yml',
'!resources/emojis.json',

// except multiple specific files
Expand Down
3 changes: 3 additions & 0 deletions src/@types/vscode.proposed.authIssuers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
*--------------------------------------------------------------------------------------------*/

declare module 'vscode' {

// https://github.com/microsoft/vscode/issues/248775

export interface AuthenticationSession {
/**
* The authorization server that issued this session, when provided by the authentication provider.
Expand Down
7 changes: 7 additions & 0 deletions src/@types/vscode.proposed.chatParticipantAdditions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,15 @@ declare module 'vscode' {
ranges: Range[];
}

/** The Auto routing tier a request was resolved with. */
export type ChatAutoModeTier = 'efficiency' | 'balance' | 'intelligence' | 'fast';

export class ChatResponseTextEditPart {
uri: Uri;
edits: TextEdit[];
isDone?: boolean;
/** The Auto routing tier that produced these edits, for edit attribution. */
autoTier?: ChatAutoModeTier;
constructor(uri: Uri, done: true);
constructor(uri: Uri, edits: TextEdit | TextEdit[]);
}
Expand All @@ -61,6 +66,8 @@ declare module 'vscode' {
uri: Uri;
edits: NotebookEdit[];
isDone?: boolean;
/** The Auto routing tier that produced these edits, for edit attribution. */
autoTier?: ChatAutoModeTier;
constructor(uri: Uri, done: true);
constructor(uri: Uri, edits: NotebookEdit | NotebookEdit[]);
}
Expand Down
2 changes: 2 additions & 0 deletions src/@types/vscode.proposed.chatSessionsProvider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,8 @@ declare module 'vscode' {
};
readonly maxInputTokens?: number;
readonly maxOutputTokens?: number;
/** The total context window, independent of the input and output token limits. */
readonly maxContextWindowTokens?: number;
readonly capabilities?: {
readonly vision?: boolean;
readonly toolCalling?: boolean;
Expand Down
Loading