vscode-extensions

Where can I find a list of all possible keys for tm-themes for syntax highlighting?

我的梦境 提交于 2019-11-26 18:32:45
问题 In the tmTheme file for my current text editor theme there are a number of options, including the ones in the code below. Is there a list somewhere that defines all possible tags that could be included in this list (eg. background , inactiveSelection , findHighlight , etc)? <dict> <key>background</key> <string>#1a1a1a</string> <key>caret</key> <string>#B6ECF9AF</string> <key>foreground</key> <string>#ecf0f1</string> <key>invisibles</key> <string>#F3FFB51A</string> <key>lineHighlight</key>

Create Custom Language in Visual Studio Code

二次信任 提交于 2019-11-26 15:37:48
问题 Is there a way to extend the supported languages/grammars in Visual Studio Code? I'd like to add a custom language syntax, but I've not been able to find any information on how language services are provided. Can anybody point to any references or even examples of existing language implementations? 回答1: It's possible with the new version 0.9.0. There's an official documentation on how to add a custom language: https://github.com/Microsoft/vscode-docs/blob/0.9.0/release-notes/latest.md You

VSCode extensions location variable

╄→尐↘猪︶ㄣ 提交于 2019-11-26 14:57:47
问题 In an extension I am writing, I want to redefine an existing setting in the workspace to point at a script I am packaging with the extension. On a mac this script lives in ~/.vscode/extensions/publisher.name.version/script for example. If I assume that this is where the extension lives then in my activate function I can update this value using export async function activate(context: vscode.ExtensionContext) { const home = process.env.HOME; const execLocation = home + "/.vscode/extensions

Regex look behind in VS Code?

ε祈祈猫儿з 提交于 2019-11-26 09:59:16
问题 I\'m working on a grammar extension in VS Code, and I\'m having difficulty with a look behind regex pattern. Given the following string, I want to only return cmp when it\'s preceded by the @fmt( @fmt(cmp,foo) The matching string I used in another editor was this: (?<=[@|©](fmt)\\()(\\w+) However, this is not working in VS Code, when I do a regex search it comes back with the error that it\'s not a valid expression. Playing around with it, the problem is the <= characters, which indicate the