diff options
author | Johannes Rieken <johannes.rieken@gmail.com> | 2022-07-19 17:12:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-19 17:12:55 +0300 |
commit | 2d38d3f2dc1fc2b20544a882e77cd2c05e9a5efa (patch) | |
tree | 1f868f1f60c1a1e00559f3f41cb83d8070af61f7 /src | |
parent | f8aeb2013e6184b64bfd7455f5df6799c7c30a11 (diff) |
fix https://github.com/microsoft/vscode/issues/155572 (#155617)
Diffstat (limited to 'src')
-rw-r--r-- | src/vs/workbench/contrib/snippets/browser/commands/insertSnippet.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vs/workbench/contrib/snippets/browser/commands/insertSnippet.ts b/src/vs/workbench/contrib/snippets/browser/commands/insertSnippet.ts index aba3f4c5582..5b10727b169 100644 --- a/src/vs/workbench/contrib/snippets/browser/commands/insertSnippet.ts +++ b/src/vs/workbench/contrib/snippets/browser/commands/insertSnippet.ts @@ -79,7 +79,7 @@ export class InsertSnippetAction extends SnippetEditorAction { }); } - async runEditorCommand(accessor: ServicesAccessor, editor: ICodeEditor, arg: any) { + async runEditorCommand(accessor: ServicesAccessor, editor: ICodeEditor, args: any[]) { const languageService = accessor.get(ILanguageService); const snippetService = accessor.get(ISnippetsService); @@ -94,7 +94,7 @@ export class InsertSnippetAction extends SnippetEditorAction { const snippet = await new Promise<Snippet | undefined>((resolve, reject) => { const { lineNumber, column } = editor.getPosition(); - const { snippet, name, langId } = Args.fromUser(arg); + const { snippet, name, langId } = Args.fromUser(args[0]); if (snippet) { return resolve(new Snippet( |