File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/cursorless-vscode/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ async function openResultDocument(
159159 const skipMessage =
160160 "Snippets containing `scopeTypes` and/or `excludeDescendantScopeTypes` attributes are not supported by community snippets." ;
161161
162- const contentParts : string [ ] = [
162+ const content : string [ ] = [
163163 `# Snippets migrated from Cursorless` ,
164164 "" ,
165165 `From: ${ sourceDirectory } ` ,
@@ -171,7 +171,7 @@ async function openResultDocument(
171171 ] ;
172172
173173 if ( migratedPartiallyKeys . length > 0 ) {
174- contentParts . push (
174+ content . push (
175175 `## Migrated ${ migratedPartiallyKeys . length } snippet files partially` ,
176176 skipMessage ,
177177 ...migratedPartiallyKeys . map (
@@ -181,15 +181,15 @@ async function openResultDocument(
181181 }
182182
183183 if ( result . skipped . length > 0 ) {
184- contentParts . push (
184+ content . push (
185185 `## Skipped ${ result . skipped . length } snippet files` ,
186186 skipMessage ,
187187 ...result . skipped . map ( ( key ) => `- ${ key } ` ) ,
188188 ) ;
189189 }
190190
191191 const textDocument = await vscode . workspace . openTextDocument ( {
192- content : contentParts . join ( "\n" ) ,
192+ content : content . join ( "\n" ) ,
193193 language : "markdown" ,
194194 } ) ;
195195 await vscode . window . showTextDocument ( textDocument ) ;
You can’t perform that action at this time.
0 commit comments