Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix https://github.com/microsoft/vscode/issues/155572 #155617

Merged
merged 1 commit into from Jul 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -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);
Expand All @@ -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(
Expand Down