Embedded languages use outer language auto-closing characters
See original GitHub issue- VS Code Version: 1.60.1
- OS Version: OSX 11.6
When a language is embedded, the value of autoClosingPairs
is taken from the parent language, not the embedded one. Related to #117190
Steps to reproduce
-
Create a LaTeX file containing
\begin{cppcode} int main() { return 0; } \end{cppcode}
-
Check that inside the
cppcode
environment, we use thecpp
embedded language -
Insert
`
inside thecppcode
environment. It automatically gets closed by'
.
The latex language configuration adds ["`", "'"]
to autoClosingPairs
but not the latex cpp embedded language.
Am I missing something? For what it is worth, I am maintaining the LaTeX-Workshop extension.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (9 by maintainers)
Top Results From Across the Web
Embedded Programming Languages - Visual Studio Code
Learn how to create Language Servers to provide rich language features for embedded programming languages in Visual Studio Code.
Read more >Embedded Scripting Languages
cpp/c++ embedded scripting languages survey. ... Python is used as embedded scripting language by GDB - GNU Debugger ; WinDBG - Windows Debugger; ......
Read more >List of programming languages by type - Wikipedia
This is a list of notable programming languages, grouped by type. There is no overarching classification scheme for programming languages.
Read more >Living Standard - HTML Spec
Table of contents · 1 Introduction · 2 Common infrastructure · 3 Semantics, structure, and APIs of HTML documents · 4 The elements...
Read more >Avro vs json performance - Mesciuma |
It does not include markup languages used exclusively as document file formats If you use Avro, you can fairly easily generate an Avro...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You’re perfectly correct, all the typing code always uses the outer language characters because of the way this is implemented here.
I confirm that the problem still occur with a US keyboard layout.
In a regular python file, it works fine
according to https://github.com/microsoft/vscode/blob/main/extensions/python/language-configuration.json#L33.
Let me precise the issue. When a language is embedded, the value of
autoClosingPairs
is not overwritten but instead it still has the value of the parent language.