mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-29 09:09:03 +01:00
Adding readonly to a few more array arguments
This commit is contained in:
@@ -673,7 +673,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
checkProposedApiEnabled(extension, 'editorInsets');
|
||||
return extHostEditorInsets.createWebviewEditorInset(editor, line, height, options, extension);
|
||||
},
|
||||
createTerminal(nameOrOptions?: vscode.TerminalOptions | vscode.ExtensionTerminalOptions | string, shellPath?: string, shellArgs?: string[] | string): vscode.Terminal {
|
||||
createTerminal(nameOrOptions?: vscode.TerminalOptions | vscode.ExtensionTerminalOptions | string, shellPath?: string, shellArgs?: readonly string[] | string): vscode.Terminal {
|
||||
if (typeof nameOrOptions === 'object') {
|
||||
if ('pty' in nameOrOptions) {
|
||||
return extHostTerminalService.createExtensionTerminal(nameOrOptions);
|
||||
|
||||
@@ -38,7 +38,7 @@ export interface IExtHostTerminalService extends ExtHostTerminalServiceShape, ID
|
||||
onDidChangeTerminalState: Event<vscode.Terminal>;
|
||||
onDidWriteTerminalData: Event<vscode.TerminalDataWriteEvent>;
|
||||
|
||||
createTerminal(name?: string, shellPath?: string, shellArgs?: string[] | string): vscode.Terminal;
|
||||
createTerminal(name?: string, shellPath?: string, shellArgs?: readonly string[] | string): vscode.Terminal;
|
||||
createTerminalFromOptions(options: vscode.TerminalOptions, internalOptions?: ITerminalInternalOptions): vscode.Terminal;
|
||||
createExtensionTerminal(options: vscode.ExtensionTerminalOptions): vscode.Terminal;
|
||||
attachPtyToTerminal(id: number, pty: vscode.Pseudoterminal): void;
|
||||
|
||||
Vendored
+4
-4
@@ -3530,7 +3530,7 @@ declare module 'vscode' {
|
||||
* value starting at 1.
|
||||
* @return This snippet string.
|
||||
*/
|
||||
appendChoice(values: string[], number?: number): SnippetString;
|
||||
appendChoice(values: readonly string[], number?: number): SnippetString;
|
||||
|
||||
/**
|
||||
* Builder-function that appends a variable (`${VAR}`) to
|
||||
@@ -3622,7 +3622,7 @@ declare module 'vscode' {
|
||||
* @param tokenType The token type.
|
||||
* @param tokenModifiers The token modifiers.
|
||||
*/
|
||||
push(range: Range, tokenType: string, tokenModifiers?: string[]): void;
|
||||
push(range: Range, tokenType: string, tokenModifiers?: readonly string[]): void;
|
||||
|
||||
/**
|
||||
* Finish and create a `SemanticTokens` instance.
|
||||
@@ -9522,7 +9522,7 @@ declare module 'vscode' {
|
||||
* @return A new Terminal.
|
||||
* @throws When running in an environment where a new process cannot be started.
|
||||
*/
|
||||
export function createTerminal(name?: string, shellPath?: string, shellArgs?: string[] | string): Terminal;
|
||||
export function createTerminal(name?: string, shellPath?: string, shellArgs?: readonly string[] | string): Terminal;
|
||||
|
||||
/**
|
||||
* Creates a {@link Terminal} with a backing shell process.
|
||||
@@ -11000,7 +11000,7 @@ declare module 'vscode' {
|
||||
*
|
||||
* @param thenable A thenable that resolves to {@link TextEdit pre-save-edits}.
|
||||
*/
|
||||
waitUntil(thenable: Thenable<TextEdit[]>): void;
|
||||
waitUntil(thenable: Thenable<readonly TextEdit[]>): void;
|
||||
|
||||
/**
|
||||
* Allows to pause the event loop until the provided thenable resolved.
|
||||
|
||||
Reference in New Issue
Block a user