Skip to content

Autoclosing Single Quote in Macro Programming #255

Closed
@kkdaisuki

Description

@kkdaisuki

Hello!

I am working on some macros recently on VS Code. Nevertheless I find it quite bothering that whenever I try to create a quoted expression, the plugin automatically closed it for me. A simple example,

def concatImpl(a: Expr[String], b: Expr[String])(using Quotes): String =
  a.valueOrAbort + b.valueOrAbort

inline def concat(a: String, b: String)(using Quotes): String = ${ concatImpl('...'...) }
//                                                                                ^
//                                            A single quote is automatically created here by the plugin during editing

It seems that language-configuration.json defines single quote to be one of the autoclosing pairs. Removing it would certainly solve this problem, but it may also impact the user experience of the users without the need to use macros. What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions