Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .base-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"url": "https://github.com/Microsoft/vscode-extension-samples"
},
"engines": {
"vscode": "^1.74.0"
"vscode": "^1.100.0"
},
"categories": [
"Other"
Expand All @@ -36,7 +36,7 @@
"@eslint/js": "^9.13.0",
"@stylistic/eslint-plugin": "^2.9.0",
"@types/node": "^22",
"@types/vscode": "1.90.0",
"@types/vscode": "^1.100.0",
"eslint": "^9.13.0",
"typescript": "^5.8.2",
"typescript-eslint": "^8.26.0"
Expand Down
13 changes: 9 additions & 4 deletions .base-sample/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2020",
"lib": ["es2020"],
"target": "ES2024",
"lib": [
"ES2024"
],
"outDir": "out",
"sourceMap": true,
"rootDir": "src",
"strict": true
},
"exclude": ["node_modules", ".vscode-test"]
}
"exclude": [
"node_modules",
".vscode-test"
]
}
4 changes: 2 additions & 2 deletions .scripts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Node",
"target": "ES2022",
"target": "ES2024",
"lib": [
"ES2022"
"ES2024"
],
"noEmit": true,
"strict": true
Expand Down
19 changes: 10 additions & 9 deletions authenticationprovider-sample/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions authenticationprovider-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "AuthenticationProvider API Sample",
"version": "0.0.1",
"engines": {
"vscode": "^1.74.0"
"vscode": "^1.100.0"
},
"categories": [
"Other"
Expand Down Expand Up @@ -38,7 +38,7 @@
"@stylistic/eslint-plugin": "^2.9.0",
"@types/isomorphic-fetch": "^0.0.35",
"@types/node": "^22",
"@types/vscode": "^1.60.0",
"@types/vscode": "^1.100.0",
"eslint": "^9.13.0",
"typescript": "^5.9.2",
"typescript-eslint": "^8.39.0"
Expand Down
11 changes: 8 additions & 3 deletions authenticationprovider-sample/src/authProvider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
authentication,
AuthenticationGetSessionOptions,
AuthenticationProvider,
AuthenticationProviderAuthenticationSessionsChangeEvent,
AuthenticationSession,
Expand Down Expand Up @@ -75,7 +76,7 @@ export class AzureDevOpsAuthenticationProvider implements AuthenticationProvider
const changed: AuthenticationSession[] = [];

const previousToken = await this.currentToken;
const session = (await this.getSessions())[0];
const session = (await this.getSessions(undefined))[0];

if (session?.accessToken && !previousToken) {
added.push(session);
Expand All @@ -97,7 +98,7 @@ export class AzureDevOpsAuthenticationProvider implements AuthenticationProvider
}

// This function is called first when `vscode.authentication.getSessions` is called.
async getSessions(_scopes?: string[]): Promise<readonly AuthenticationSession[]> {
async getSessions(_scopes: string[] | undefined, _options?: AuthenticationGetSessionOptions): Promise<AuthenticationSession[]> {
this.ensureInitialized();
const token = await this.cacheTokenFromStorage();
return token ? [new AzureDevOpsPatSession(token)] : [];
Expand Down Expand Up @@ -137,6 +138,10 @@ export class AzureDevOpsAuthenticationProvider implements AuthenticationProvider
return;
}
await this.secretStorage.delete(AzureDevOpsAuthenticationProvider.secretKey);
this._onDidChangeSessions.fire({ removed: [new AzureDevOpsPatSession(token)] });
this._onDidChangeSessions.fire({
removed: [new AzureDevOpsPatSession(token)],
added: [],
changed: [],
});
}
}
8 changes: 4 additions & 4 deletions authenticationprovider-sample/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2020",
"target": "ES2024",
"outDir": "out",
"lib": [
"es6",
"ES2024",
"DOM"
],
"sourceMap": true,
"rootDir": "src",
"strict": true /* enable all strict type-checking options */
"strict": true /* enable all strict type-checking options */
/* Additional Checks */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
Expand All @@ -19,4 +19,4 @@
"node_modules",
".vscode-test"
]
}
}
19 changes: 10 additions & 9 deletions basic-multi-root-sample/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions basic-multi-root-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"url": "https://github.com/Microsoft/vscode-extension-samples"
},
"engines": {
"vscode": "^1.73.0"
"vscode": "^1.100.0"
},
"categories": [
"Other"
Expand Down Expand Up @@ -46,7 +46,7 @@
"@eslint/js": "^9.13.0",
"@stylistic/eslint-plugin": "^2.9.0",
"@types/node": "^22",
"@types/vscode": "^1.73.0",
"@types/vscode": "^1.100.0",
"eslint": "^9.13.0",
"typescript": "^5.9.2",
"typescript-eslint": "^8.39.0"
Expand Down
13 changes: 9 additions & 4 deletions basic-multi-root-sample/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2020",
"lib": ["es2020"],
"target": "ES2024",
"lib": [
"ES2024"
],
"outDir": "out",
"sourceMap": true,
"rootDir": ".",
"strict": true
},
"exclude": ["node_modules", ".vscode-test"]
}
"exclude": [
"node_modules",
".vscode-test"
]
}
19 changes: 10 additions & 9 deletions call-hierarchy-sample/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions call-hierarchy-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"url": "https://github.com/Microsoft/vscode-extension-samples"
},
"engines": {
"vscode": "^1.73.0"
"vscode": "^1.100.0"
},
"categories": [
"Other"
Expand All @@ -30,7 +30,7 @@
"@eslint/js": "^9.13.0",
"@stylistic/eslint-plugin": "^2.9.0",
"@types/node": "^22",
"@types/vscode": "^1.73.0",
"@types/vscode": "^1.100.0",
"eslint": "^9.13.0",
"typescript": "^5.9.2",
"typescript-eslint": "^8.39.0"
Expand Down
13 changes: 9 additions & 4 deletions call-hierarchy-sample/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2020",
"lib": ["es2020"],
"target": "ES2024",
"lib": [
"ES2024"
],
"outDir": "out",
"sourceMap": true,
"rootDir": "src",
"strict": true
},
"exclude": ["node_modules", ".vscode-test"]
}
"exclude": [
"node_modules",
".vscode-test"
]
}
14 changes: 6 additions & 8 deletions chat-model-provider-sample/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
{
"compilerOptions": {
"module": "Node16",
"target": "ES2022",
"target": "ES2024",
"lib": [
"ES2022"
"ES2024"
],
"sourceMap": true,
"rootDir": "src",
"strict": true, /* enable all strict type-checking options */
"strict": true, /* enable all strict type-checking options */
"outDir": "out",
"skipLibCheck": true /* Skip type checking of declaration files */
"skipLibCheck": true /* Skip type checking of declaration files */
/* Additional Checks */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
},
"include": [
"src/**/*",
"vscode.d.ts",
"vscode.proposed.chatProvider.d.ts"
],
"exclude": [
"vscode.d.ts"
]
}
}
Loading