Skip to content

Commit 2a922fa

Browse files
committed
Update function signature to use readonly type
1 parent a1f828f commit 2a922fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/textHelpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type MarkdownCodeBlockFlavorQuickPickItems = QuickPickItem & {
77
detail: IncludeLanguageIdentifier;
88
};
99

10-
export async function generateSnippet(document: TextDocument, selections: Selection[], wrapInMarkdownCodeBlock = false): Promise<string> {
10+
export async function generateSnippet(document: TextDocument, selections: readonly Selection[], wrapInMarkdownCodeBlock = false): Promise<string> {
1111
const config = workspace.getConfiguration('snippet-copy') as ExtensionConfig;
1212
const texts: string[] = [];
1313
selections.forEach(selection => {

0 commit comments

Comments
 (0)