Skip to content

Commit b26e424

Browse files
authored
Merge pull request microsoft#259860 from mjbvz/sparkling-otter
Bump extensions to target es2024
2 parents 16992b2 + 98ceff0 commit b26e424

File tree

16 files changed

+175
-324
lines changed

16 files changed

+175
-324
lines changed

extensions/css-language-features/server/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"outDir": "./out",
55
"lib": [
6-
"ES2020",
6+
"ES2024",
77
"WebWorker"
88
],
99
"module": "Node16",

extensions/esbuild-webview-common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function build(options, didBuild) {
3131
sourcemap: false,
3232
format: 'esm',
3333
platform: 'browser',
34-
target: ['es2020'],
34+
target: ['es2024'],
3535
...options,
3636
});
3737

extensions/git/src/repository.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ export class Repository implements Disposable {
807807
return this._cherryPickInProgress;
808808
}
809809

810-
private _operations = new OperationManager(this.logger);
810+
private readonly _operations: OperationManager;
811811
get operations(): OperationManager { return this._operations; }
812812

813813
private _state = RepositoryState.Idle;
@@ -866,6 +866,8 @@ export class Repository implements Disposable {
866866
private readonly logger: LogOutputChannel,
867867
private telemetryReporter: TelemetryReporter
868868
) {
869+
this._operations = new OperationManager(this.logger);
870+
869871
const repositoryWatcher = workspace.createFileSystemWatcher(new RelativePattern(Uri.file(repository.root), '**'));
870872
this.disposables.push(repositoryWatcher);
871873

extensions/github/src/branchProtection.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class GitHubBranchProtectionProvider implements BranchProtectionProvider
109109
onDidChangeBranchProtection = this._onDidChangeBranchProtection.event;
110110

111111
private branchProtection: BranchProtection[];
112-
private readonly globalStateKey = `branchProtection:${this.repository.rootUri.toString()}`;
112+
private readonly globalStateKey: string;
113113

114114
private readonly disposables = new DisposableStore();
115115

@@ -120,6 +120,8 @@ export class GitHubBranchProtectionProvider implements BranchProtectionProvider
120120
private readonly logger: LogOutputChannel,
121121
private readonly telemetryReporter: TelemetryReporter
122122
) {
123+
this.globalStateKey = `branchProtection:${this.repository.rootUri.toString()}`;
124+
123125
this.disposables.add(this._onDidChangeBranchProtection);
124126

125127
// Restore branch protection from global state

extensions/html-language-features/server/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"outDir": "./out",
55
"lib": [
6-
"ES2020",
6+
"ES2024",
77
"WebWorker"
88
],
99
"module": "Node16",

extensions/json-language-features/server/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"sourceMap": true,
66
"sourceRoot": "../src",
77
"lib": [
8-
"ES2020",
8+
"ES2024",
99
"WebWorker"
1010
],
1111
"module": "Node16",

extensions/markdown-language-features/notebook/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"allowSyntheticDefaultImports": true,
88
"module": "es2020",
99
"lib": [
10-
"es2018",
10+
"ES2024",
1111
"DOM",
1212
"DOM.Iterable"
1313
]

extensions/markdown-language-features/preview-src/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"jsx": "react",
66
"esModuleInterop": true,
77
"lib": [
8-
"es2018",
8+
"es2024",
99
"DOM",
1010
"DOM.Iterable"
1111
]

extensions/markdown-math/notebook/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"jsx": "react",
66
"module": "es2020",
77
"lib": [
8-
"es2018",
8+
"ES2024",
99
"DOM",
1010
"DOM.Iterable"
1111
]

extensions/microsoft-authentication/src/common/accountAccess.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,16 @@ class AccountAccessSecretStorage implements IAccountAccessSecretStorage, Disposa
9090
private readonly _onDidChangeEmitter = new EventEmitter<void>();
9191
readonly onDidChange: Event<void> = this._onDidChangeEmitter.event;
9292

93-
private readonly _key = `accounts-${this._cloudName}`;
93+
private readonly _key: string;
9494

9595
private constructor(
9696
private readonly _secretStorage: SecretStorage,
9797
private readonly _cloudName: string,
9898
private readonly _logger: LogOutputChannel,
9999
private readonly _migrations?: { clientId: string; authority: string }[],
100100
) {
101+
this._key = `accounts-${this._cloudName}`;
102+
101103
this._disposable = Disposable.from(
102104
this._onDidChangeEmitter,
103105
this._secretStorage.onDidChange(e => {

0 commit comments

Comments
 (0)