Merge commit 'be3e8236086165e5e45a5a10783823874b3f3ebd' as 'lib/vscode'
This commit is contained in:
2
lib/vscode/extensions/csharp/.vscodeignore
Normal file
2
lib/vscode/extensions/csharp/.vscodeignore
Normal file
@ -0,0 +1,2 @@
|
||||
test/**
|
||||
cgmanifest.json
|
18
lib/vscode/extensions/csharp/cgmanifest.json
Normal file
18
lib/vscode/extensions/csharp/cgmanifest.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"registrations": [
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"name": "dotnet/csharp-tmLanguage",
|
||||
"repositoryUrl": "https://github.com/dotnet/csharp-tmLanguage",
|
||||
"commitHash": "572697a2c2267430010b3534281f73337144e94f"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
"version": "0.1.0",
|
||||
"description": "The file syntaxes/csharp.tmLanguage.json was derived from https://github.com/dotnet/csharp-tmLanguage"
|
||||
}
|
||||
],
|
||||
"version": 1
|
||||
}
|
32
lib/vscode/extensions/csharp/language-configuration.json
Normal file
32
lib/vscode/extensions/csharp/language-configuration.json
Normal file
@ -0,0 +1,32 @@
|
||||
{
|
||||
"comments": {
|
||||
"lineComment": "//",
|
||||
"blockComment": ["/*", "*/"]
|
||||
},
|
||||
"brackets": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"]
|
||||
],
|
||||
"autoClosingPairs": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
|
||||
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] }
|
||||
],
|
||||
"surroundingPairs": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
["<", ">"],
|
||||
["'", "'"],
|
||||
["\"", "\""]
|
||||
],
|
||||
"folding": {
|
||||
"markers": {
|
||||
"start": "^\\s*#region\\b",
|
||||
"end": "^\\s*#endregion\\b"
|
||||
}
|
||||
}
|
||||
}
|
43
lib/vscode/extensions/csharp/package.json
Normal file
43
lib/vscode/extensions/csharp/package.json
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"name": "csharp",
|
||||
"displayName": "%displayName%",
|
||||
"description": "%description%",
|
||||
"version": "1.0.0",
|
||||
"publisher": "vscode",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"vscode": "0.10.x"
|
||||
},
|
||||
"scripts": {
|
||||
"update-grammar": "node ../../build/npm/update-grammar.js dotnet/csharp-tmLanguage grammars/csharp.tmLanguage ./syntaxes/csharp.tmLanguage.json"
|
||||
},
|
||||
|
||||
"contributes": {
|
||||
"languages": [
|
||||
{
|
||||
"id": "csharp",
|
||||
"extensions": [
|
||||
".cs",
|
||||
".csx",
|
||||
".cake"
|
||||
],
|
||||
"aliases": [
|
||||
"C#",
|
||||
"csharp"
|
||||
],
|
||||
"configuration": "./language-configuration.json"
|
||||
}
|
||||
],
|
||||
"grammars": [
|
||||
{
|
||||
"language": "csharp",
|
||||
"scopeName": "source.cs",
|
||||
"path": "./syntaxes/csharp.tmLanguage.json"
|
||||
}
|
||||
],
|
||||
"snippets": [{
|
||||
"language": "csharp",
|
||||
"path": "./snippets/csharp.code-snippets"
|
||||
}]
|
||||
}
|
||||
}
|
4
lib/vscode/extensions/csharp/package.nls.json
Normal file
4
lib/vscode/extensions/csharp/package.nls.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"displayName": "C# Language Basics",
|
||||
"description": "Provides snippets, syntax highlighting, bracket matching and folding in C# files."
|
||||
}
|
16
lib/vscode/extensions/csharp/snippets/csharp.code-snippets
Normal file
16
lib/vscode/extensions/csharp/snippets/csharp.code-snippets
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"Region Start": {
|
||||
"prefix": "#region",
|
||||
"body": [
|
||||
"#region $0"
|
||||
],
|
||||
"description": "Folding Region Start"
|
||||
},
|
||||
"Region End": {
|
||||
"prefix": "#endregion",
|
||||
"body": [
|
||||
"#endregion"
|
||||
],
|
||||
"description": "Folding Region End"
|
||||
}
|
||||
}
|
4333
lib/vscode/extensions/csharp/syntaxes/csharp.tmLanguage.json
Normal file
4333
lib/vscode/extensions/csharp/syntaxes/csharp.tmLanguage.json
Normal file
File diff suppressed because it is too large
Load Diff
17
lib/vscode/extensions/csharp/test/colorize-fixtures/test.cs
Normal file
17
lib/vscode/extensions/csharp/test/colorize-fixtures/test.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
namespace SampleNamespace
|
||||
{
|
||||
class TestClass
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
int[] radii = { 15, 32, 108, 74, 9 };
|
||||
const double pi = 3.14159;
|
||||
foreach (int radius in radii) {
|
||||
double circumference = pi * (2 * radius);
|
||||
// Display the number of command line arguments:
|
||||
System.Console.WriteLine("Circumference = {0:N2}", circumference);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1377
lib/vscode/extensions/csharp/test/colorize-results/test_cs.json
Normal file
1377
lib/vscode/extensions/csharp/test/colorize-results/test_cs.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user