This commit is contained in:
Christof Marti 2017-03-10 08:58:57 -08:00
Родитель 435bf936d7
Коммит 3ec632dde1
4 изменённых файлов: 112 добавлений и 0 удалений

13
.vscode/launch.json поставляемый Normal file
Просмотреть файл

@ -0,0 +1,13 @@
// A launch configuration that launches the extension inside a new window
{
"version": "0.1.0",
"configurations": [
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ]
}
]
}

Просмотреть файл

@ -0,0 +1,24 @@
{
"comments": {
"lineComment": "#"
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
]
}

34
package.json Normal file
Просмотреть файл

@ -0,0 +1,34 @@
{
"name": "azurecli",
"displayName": "Azure CLI",
"description": "Azure CLI Tools",
"version": "0.0.1",
"publisher": "vscode",
"engines": {
"vscode": "^1.10.0"
},
"categories": [
"Languages"
],
"contributes": {
"languages": [{
"id": "sha",
"aliases": ["Bash Azure Scrapbook", "sha"],
"extensions": [".sha"],
"configuration": "./language-configuration.json"
}],
"grammars": [{
"language": "sha",
"scopeName": "source.sha",
"path": "./syntaxes/sha.tmLanguage.json"
}],
"keybindings":[
{
"command": "workbench.action.terminal.runSelectedText",
"key": "ctrl+'",
"mac": "cmd+'",
"when": "editorTextFocus"
}
]
}
}

Просмотреть файл

@ -0,0 +1,41 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "Bash Azure Scrapbook",
"patterns": [
{
"include": "#keywords"
},
{
"include": "#identifiers"
},
{
"include": "#strings"
}
],
"repository": {
"keywords": {
"patterns": [{
"name": "keyword.control.sha",
"match": "\\b(az|acs|cloud|disk|group|lock|policy|role|tag|ad|component|documentdb|image|login|provider|snapshot|vm|appservice|configure|feature|iot|logout|redis|sql|vmss|account|batch|container|feedback|keyvault|network|resource|storage)\\b"
}]
},
"identifiers": {
"patterns": [{
"name": "variable.other.sha",
"match": "\\s--?[[:alnum:]]+\\s"
}]
},
"strings": {
"name": "string.quoted.double.sha",
"begin": "\"",
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.sha",
"match": "\\\\."
}
]
}
},
"scopeName": "source.sha"
}