From 1cdab07d3a409eeafe5e97713fe6481b61b8a585 Mon Sep 17 00:00:00 2001 From: Lucas Koehler Date: Thu, 3 Mar 2022 15:48:27 +0100 Subject: [PATCH] Align plugin API getSession method signatures with VS Code API Add missing readonly modifiers. Fixes #10836 Contributed on behalf of STMicroelectronics Signed-off-by: Lucas Koehler --- packages/plugin/src/theia.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugin/src/theia.d.ts b/packages/plugin/src/theia.d.ts index 73af2d7699440..fc0739f758a36 100644 --- a/packages/plugin/src/theia.d.ts +++ b/packages/plugin/src/theia.d.ts @@ -11388,7 +11388,7 @@ export module '@theia/plugin' { * @param options The [getSessionOptions](#GetSessionOptions) to use * @returns A thenable that resolves to an authentication session */ - export function getSession(providerId: string, scopes: string[], options: AuthenticationGetSessionOptions & { createIfNone: true }): Thenable; + export function getSession(providerId: string, scopes: readonly string[], options: AuthenticationGetSessionOptions & { createIfNone: true }): Thenable; /** * Get an authentication session matching the desired scopes. Rejects if a provider with providerId is not @@ -11416,7 +11416,7 @@ export module '@theia/plugin' { * @param options The [getSessionOptions](#GetSessionOptions) to use * @returns A thenable that resolves to an authentication session if available, or undefined if there are no sessions */ - export function getSession(providerId: string, scopes: string[], options?: AuthenticationGetSessionOptions): Thenable; + export function getSession(providerId: string, scopes: readonly string[], options?: AuthenticationGetSessionOptions): Thenable; /** * An [event](#Event) which fires when the authentication sessions of an authentication provider have