mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Bump extensions to target es2024
I reviewed the various changes and library additions of es2024 and it seems they are widely supported across node and modern browsers
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./out",
|
"outDir": "./out",
|
||||||
"lib": [
|
"lib": [
|
||||||
"ES2020",
|
"ES2024",
|
||||||
"WebWorker"
|
"WebWorker"
|
||||||
],
|
],
|
||||||
"module": "Node16",
|
"module": "Node16",
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ async function build(options, didBuild) {
|
|||||||
sourcemap: false,
|
sourcemap: false,
|
||||||
format: 'esm',
|
format: 'esm',
|
||||||
platform: 'browser',
|
platform: 'browser',
|
||||||
target: ['es2020'],
|
target: ['es2024'],
|
||||||
...options,
|
...options,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -807,7 +807,7 @@ export class Repository implements Disposable {
|
|||||||
return this._cherryPickInProgress;
|
return this._cherryPickInProgress;
|
||||||
}
|
}
|
||||||
|
|
||||||
private _operations = new OperationManager(this.logger);
|
private readonly _operations: OperationManager;
|
||||||
get operations(): OperationManager { return this._operations; }
|
get operations(): OperationManager { return this._operations; }
|
||||||
|
|
||||||
private _state = RepositoryState.Idle;
|
private _state = RepositoryState.Idle;
|
||||||
@@ -866,6 +866,8 @@ export class Repository implements Disposable {
|
|||||||
private readonly logger: LogOutputChannel,
|
private readonly logger: LogOutputChannel,
|
||||||
private telemetryReporter: TelemetryReporter
|
private telemetryReporter: TelemetryReporter
|
||||||
) {
|
) {
|
||||||
|
this._operations = new OperationManager(this.logger);
|
||||||
|
|
||||||
const repositoryWatcher = workspace.createFileSystemWatcher(new RelativePattern(Uri.file(repository.root), '**'));
|
const repositoryWatcher = workspace.createFileSystemWatcher(new RelativePattern(Uri.file(repository.root), '**'));
|
||||||
this.disposables.push(repositoryWatcher);
|
this.disposables.push(repositoryWatcher);
|
||||||
|
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ export class GitHubBranchProtectionProvider implements BranchProtectionProvider
|
|||||||
onDidChangeBranchProtection = this._onDidChangeBranchProtection.event;
|
onDidChangeBranchProtection = this._onDidChangeBranchProtection.event;
|
||||||
|
|
||||||
private branchProtection: BranchProtection[];
|
private branchProtection: BranchProtection[];
|
||||||
private readonly globalStateKey = `branchProtection:${this.repository.rootUri.toString()}`;
|
private readonly globalStateKey: string;
|
||||||
|
|
||||||
private readonly disposables = new DisposableStore();
|
private readonly disposables = new DisposableStore();
|
||||||
|
|
||||||
@@ -120,6 +120,8 @@ export class GitHubBranchProtectionProvider implements BranchProtectionProvider
|
|||||||
private readonly logger: LogOutputChannel,
|
private readonly logger: LogOutputChannel,
|
||||||
private readonly telemetryReporter: TelemetryReporter
|
private readonly telemetryReporter: TelemetryReporter
|
||||||
) {
|
) {
|
||||||
|
this.globalStateKey = `branchProtection:${this.repository.rootUri.toString()}`;
|
||||||
|
|
||||||
this.disposables.add(this._onDidChangeBranchProtection);
|
this.disposables.add(this._onDidChangeBranchProtection);
|
||||||
|
|
||||||
// Restore branch protection from global state
|
// Restore branch protection from global state
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./out",
|
"outDir": "./out",
|
||||||
"lib": [
|
"lib": [
|
||||||
"ES2020",
|
"ES2024",
|
||||||
"WebWorker"
|
"WebWorker"
|
||||||
],
|
],
|
||||||
"module": "Node16",
|
"module": "Node16",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"sourceRoot": "../src",
|
"sourceRoot": "../src",
|
||||||
"lib": [
|
"lib": [
|
||||||
"ES2020",
|
"ES2024",
|
||||||
"WebWorker"
|
"WebWorker"
|
||||||
],
|
],
|
||||||
"module": "Node16",
|
"module": "Node16",
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"module": "es2020",
|
"module": "es2020",
|
||||||
"lib": [
|
"lib": [
|
||||||
"es2018",
|
"es2024",
|
||||||
"DOM",
|
"DOM",
|
||||||
"DOM.Iterable"
|
"DOM.Iterable"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"lib": [
|
"lib": [
|
||||||
"es2018",
|
"es2024",
|
||||||
"DOM",
|
"DOM",
|
||||||
"DOM.Iterable"
|
"DOM.Iterable"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
"module": "es2020",
|
"module": "es2020",
|
||||||
"lib": [
|
"lib": [
|
||||||
"es2018",
|
"es2024",
|
||||||
"DOM",
|
"DOM",
|
||||||
"DOM.Iterable"
|
"DOM.Iterable"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ class AccountAccessSecretStorage implements IAccountAccessSecretStorage, Disposa
|
|||||||
private readonly _onDidChangeEmitter = new EventEmitter<void>();
|
private readonly _onDidChangeEmitter = new EventEmitter<void>();
|
||||||
readonly onDidChange: Event<void> = this._onDidChangeEmitter.event;
|
readonly onDidChange: Event<void> = this._onDidChangeEmitter.event;
|
||||||
|
|
||||||
private readonly _key = `accounts-${this._cloudName}`;
|
private readonly _key: string;
|
||||||
|
|
||||||
private constructor(
|
private constructor(
|
||||||
private readonly _secretStorage: SecretStorage,
|
private readonly _secretStorage: SecretStorage,
|
||||||
@@ -98,6 +98,8 @@ class AccountAccessSecretStorage implements IAccountAccessSecretStorage, Disposa
|
|||||||
private readonly _logger: LogOutputChannel,
|
private readonly _logger: LogOutputChannel,
|
||||||
private readonly _migrations?: { clientId: string; authority: string }[],
|
private readonly _migrations?: { clientId: string; authority: string }[],
|
||||||
) {
|
) {
|
||||||
|
this._key = `accounts-${this._cloudName}`;
|
||||||
|
|
||||||
this._disposable = Disposable.from(
|
this._disposable = Disposable.from(
|
||||||
this._onDidChangeEmitter,
|
this._onDidChangeEmitter,
|
||||||
this._secretStorage.onDidChange(e => {
|
this._secretStorage.onDidChange(e => {
|
||||||
|
|||||||
@@ -21,11 +21,7 @@ export class CachedPublicClientApplication implements ICachedPublicClientApplica
|
|||||||
private readonly _disposable: Disposable;
|
private readonly _disposable: Disposable;
|
||||||
|
|
||||||
// Cache properties
|
// Cache properties
|
||||||
private readonly _secretStorageCachePlugin = new SecretStorageCachePlugin(
|
private readonly _secretStorageCachePlugin: SecretStorageCachePlugin;
|
||||||
this._secretStorage,
|
|
||||||
// Include the prefix as a differentiator to other secrets
|
|
||||||
`pca:${this._clientId}`
|
|
||||||
);
|
|
||||||
|
|
||||||
// Broker properties
|
// Broker properties
|
||||||
private readonly _isBrokerAvailable: boolean;
|
private readonly _isBrokerAvailable: boolean;
|
||||||
@@ -47,6 +43,12 @@ export class CachedPublicClientApplication implements ICachedPublicClientApplica
|
|||||||
private readonly _logger: LogOutputChannel,
|
private readonly _logger: LogOutputChannel,
|
||||||
telemetryReporter: MicrosoftAuthenticationTelemetryReporter
|
telemetryReporter: MicrosoftAuthenticationTelemetryReporter
|
||||||
) {
|
) {
|
||||||
|
this._secretStorageCachePlugin = new SecretStorageCachePlugin(
|
||||||
|
this._secretStorage,
|
||||||
|
// Include the prefix as a differentiator to other secrets
|
||||||
|
`pca:${this._clientId}`
|
||||||
|
);
|
||||||
|
|
||||||
const loggerOptions = new MsalLoggerOptions(_logger, telemetryReporter);
|
const loggerOptions = new MsalLoggerOptions(_logger, telemetryReporter);
|
||||||
const nativeBrokerPlugin = new NativeBrokerPlugin();
|
const nativeBrokerPlugin = new NativeBrokerPlugin();
|
||||||
this._isBrokerAvailable = nativeBrokerPlugin.isBrokerAvailable;
|
this._isBrokerAvailable = nativeBrokerPlugin.isBrokerAvailable;
|
||||||
|
|||||||
@@ -231,10 +231,16 @@ class PublicClientApplicationsSecretStorage implements IPublicClientApplicationS
|
|||||||
private readonly _onDidChangeEmitter = new EventEmitter<void>;
|
private readonly _onDidChangeEmitter = new EventEmitter<void>;
|
||||||
readonly onDidChange: Event<void> = this._onDidChangeEmitter.event;
|
readonly onDidChange: Event<void> = this._onDidChangeEmitter.event;
|
||||||
|
|
||||||
private readonly _oldKey = `publicClientApplications-${this._cloudName}`;
|
private readonly _oldKey: string;
|
||||||
private readonly _key = `publicClients-${this._cloudName}`;
|
private readonly _key: string;
|
||||||
|
|
||||||
|
private constructor(
|
||||||
|
private readonly _secretStorage: SecretStorage,
|
||||||
|
private readonly _cloudName: string
|
||||||
|
) {
|
||||||
|
this._oldKey = `publicClientApplications-${this._cloudName}`;
|
||||||
|
this._key = `publicClients-${this._cloudName}`;
|
||||||
|
|
||||||
private constructor(private readonly _secretStorage: SecretStorage, private readonly _cloudName: string) {
|
|
||||||
this._disposable = Disposable.from(
|
this._disposable = Disposable.from(
|
||||||
this._onDidChangeEmitter,
|
this._onDidChangeEmitter,
|
||||||
this._secretStorage.onDidChange(e => {
|
this._secretStorage.onDidChange(e => {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"outDir": "./dist/",
|
"outDir": "./dist/",
|
||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
"lib": [
|
"lib": [
|
||||||
"es2018",
|
"es2024",
|
||||||
"DOM",
|
"DOM",
|
||||||
"DOM.Iterable"
|
"DOM.Iterable"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,30 +1,9 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"target": "es2020",
|
"target": "es2024",
|
||||||
"lib": [
|
"lib": [
|
||||||
"ES2016",
|
"ES2024"
|
||||||
"ES2017.Object",
|
|
||||||
"ES2017.String",
|
|
||||||
"ES2017.Intl",
|
|
||||||
"ES2017.TypedArrays",
|
|
||||||
"ES2018.AsyncIterable",
|
|
||||||
"ES2018.AsyncGenerator",
|
|
||||||
"ES2018.Promise",
|
|
||||||
"ES2018.Regexp",
|
|
||||||
"ES2018.Intl",
|
|
||||||
"ES2019.Array",
|
|
||||||
"ES2019.Object",
|
|
||||||
"ES2019.String",
|
|
||||||
"ES2019.Symbol",
|
|
||||||
"ES2020.BigInt",
|
|
||||||
"ES2020.Promise",
|
|
||||||
"ES2020.String",
|
|
||||||
"ES2020.Symbol.WellKnown",
|
|
||||||
"ES2020.Intl",
|
|
||||||
"ES2021.Promise",
|
|
||||||
"ES2021.String",
|
|
||||||
"ES2021.WeakRef"
|
|
||||||
],
|
],
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user