Skip to content

Commit 5005371

Browse files
authored
Merge pull request #15 from CodinGame/add-verilog
Add verilog
2 parents e2805fe + 84bb304 commit 5005371

File tree

61 files changed

+1997
-6781
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1997
-6781
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codingame/monaco-editor-wrapper",
3-
"version": "1.6.0",
3+
"version": "1.7.0",
44
"private": false,
55
"description": "Enhanced Monaco editor with TextMate grammars and more",
66
"scripts": {

src/languages/extensions/configurations/cpptools.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2203,7 +2203,7 @@
22032203
"C_Cpp.default.dotConfig": {
22042204
"type": "string",
22052205
"default": null,
2206-
"markdownDescription": "%c_cpp.configuration.default.dotConfig.markdownDescription%",
2206+
"markdownDescription": "The value to use in a configuration if `dotConfig` is not specified, or the value to insert if `${default}` is present in `dotConfig`.",
22072207
"scope": 4
22082208
},
22092209
"C_Cpp.updateChannel": {
@@ -2316,7 +2316,7 @@
23162316
"tags": [
23172317
"experimental"
23182318
],
2319-
"description": "Show icon for 'Debug and Run' in shortcut menu bar",
2319+
"description": "Show the Run and Debug play button in the editor title bar for C++ files",
23202320
"scope": 1
23212321
}
23222322
}

src/languages/extensions/configurations/java.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
"null",
201201
"integer"
202202
],
203-
"default": null,
203+
"default": 90,
204204
"minimum": 1,
205205
"description": "The number of days (if enabled) to keep unused workspace cache data. Beyond this limit, cached workspace data may be removed.",
206206
"scope": 1

src/languages/extensions/configurations/scalameta.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"properties": {
55
"metals.serverVersion": {
66
"type": "string",
7-
"default": "0.11.1+114-58f06ff8-SNAPSHOT",
7+
"default": "0.11.1+170-7320cac2-SNAPSHOT",
88
"markdownDescription": "The version of the Metals server artifact. Requires reloading the window.\n\n**Change only if you know what you're doing**",
99
"scope": 3
1010
},
@@ -19,6 +19,11 @@
1919
"markdownDescription": "Optional list of properties to pass along to the Metals server. By default, the environment variable `JAVA_OPTS` and `.jvmopts` file are respected. Each property needs to be a separate item.\n\nExample: `-Dhttps.proxyHost=…`, `-Dhttps.proxyPort=…` or `-Dmetals.statistics=all`",
2020
"scope": 3
2121
},
22+
"metals.coursierMirror": {
23+
"type": "string",
24+
"markdownDescription": "Optional alternative repository to maven central if maven central is not available. For example: `https://jcenter.bintray.com`, which will be used to set to property described [here](https://get-coursier.io/blog/#mirrors)",
25+
"scope": 3
26+
},
2227
"metals.ammoniteJvmProperties": {
2328
"type": "array",
2429
"items": {
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
[
2+
{
3+
"title": "SystemVerilog Language Server",
4+
"properties": {
5+
"systemverilog.includeIndexing": {
6+
"type": "array",
7+
"default": [
8+
"**/*.{sv,svh,v,vh}"
9+
],
10+
"description": "Files included for indexing (glob pattern).",
11+
"scope": 3
12+
},
13+
"systemverilog.excludeIndexing": {
14+
"type": "array",
15+
"default": [],
16+
"description": "Files excluded for indexing (glob pattern).",
17+
"scope": 3
18+
},
19+
"systemverilog.linter": {
20+
"type": "string",
21+
"enum": [
22+
"icarus",
23+
"verilator"
24+
],
25+
"default": "icarus",
26+
"description": "Linter to use",
27+
"scope": 3
28+
},
29+
"systemverilog.launchConfiguration": {
30+
"type": "string",
31+
"default": "iverilog -t null",
32+
"description": "Command used for linting",
33+
"examples": [
34+
"verilator -sv --lint-only --Wall",
35+
"iverilog -t null"
36+
],
37+
"scope": 3
38+
},
39+
"systemverilog.defines": {
40+
"type": "array",
41+
"default": [],
42+
"description": "Defines needed for linting.",
43+
"scope": 3
44+
},
45+
"systemverilog.lintOnUnsaved": {
46+
"type": "boolean",
47+
"default": true,
48+
"description": "Enable linting on unsaved files",
49+
"scope": 3
50+
},
51+
"systemverilog.formatCommand": {
52+
"type": "string",
53+
"default": "verible-verilog-format",
54+
"description": "Verible verilog format command",
55+
"scope": 3
56+
},
57+
"systemverilog.disableCompletionProvider": {
58+
"type": "boolean",
59+
"default": false,
60+
"description": "Disable auto completion provided by the language server",
61+
"scope": 3
62+
},
63+
"systemverilog.disableHoverProvider": {
64+
"type": "boolean",
65+
"default": false,
66+
"description": "Disable hover over help provided by the language server",
67+
"scope": 3
68+
},
69+
"systemverilog.disableSignatureHelpProvider": {
70+
"type": "boolean",
71+
"default": false,
72+
"description": "Disable signature help provided by the language server",
73+
"scope": 3
74+
},
75+
"systemverilog.disableLinting": {
76+
"type": "boolean",
77+
"default": false,
78+
"description": "Disable verilator linting",
79+
"scope": 3
80+
}
81+
}
82+
}
83+
]

src/languages/extensions/configurations/verilog.json

Lines changed: 0 additions & 92 deletions
This file was deleted.

src/languages/extensions/configurations/vscode-python.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@
1313
"scope": 2,
1414
"type": "string"
1515
},
16+
"python.createNewFileEnabled": {
17+
"default": "false",
18+
"description": "Enable the `Python: New Python File` command.",
19+
"scope": 2,
20+
"type": "boolean",
21+
"tags": [
22+
"experimental"
23+
]
24+
},
1625
"python.defaultInterpreterPath": {
1726
"default": "python",
1827
"description": "Path to default Python to use when extension loads up for the first time, no longer used once an interpreter is selected for the workspace. See https://aka.ms/AAfekmf to understand when this is used.",

src/languages/extensions/extensionConfigurationLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const loader = {
1515
'cobol': async () => (await import(/* webpackChunkName: "configuration-registration-cobol" */ './configurations/cobol.json')).default,
1616
'elixir': async () => (await import(/* webpackChunkName: "configuration-registration-elixir" */ './configurations/elixir.json')).default,
1717
'erlang': async () => (await import(/* webpackChunkName: "configuration-registration-erlang" */ './configurations/erlang.json')).default,
18-
'verilog': async () => (await import(/* webpackChunkName: "configuration-registration-verilog" */ './configurations/verilog.json')).default,
18+
'svlangserver': async () => (await import(/* webpackChunkName: "configuration-registration-svlangserver" */ './configurations/svlangserver.json')).default,
1919
'postgresql': async () => (await import(/* webpackChunkName: "configuration-registration-postgresql" */ './configurations/postgresql.json')).default,
2020
'java': async () => (await import(/* webpackChunkName: "configuration-registration-java" */ './configurations/java.json')).default,
2121
'lua': async () => (await import(/* webpackChunkName: "configuration-registration-lua" */ './configurations/lua.json')).default,

src/languages/extensions/grammarLoader.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,8 @@ const loader = {
9090
'text.html.elixir': async () => (await import(/* webpackChunkName: "grammar-text-html-elixir" */ './grammars/elixir/html (eex).json')).default,
9191
'source.erlang': async () => (await import(/* webpackChunkName: "grammar-source-erlang" */ './grammars/erlang/Erlang.plist.json')).default,
9292
'source.tcl': async () => (await import(/* webpackChunkName: "grammar-source-tcl" */ './grammars/tcl/tcl.tmlanguage.yaml.json')).default,
93-
'source.verilog': async () => (await import(/* webpackChunkName: "grammar-source-verilog" */ './grammars/verilog/verilog.tmLanguage.json')).default,
94-
'source.systemverilog': async () => (await import(/* webpackChunkName: "grammar-source-systemverilog" */ './grammars/verilog/systemverilog.tmLanguage.json')).default,
95-
'source.bsv': async () => (await import(/* webpackChunkName: "grammar-source-bsv" */ './grammars/verilog/BSV.tmLanguage.json')).default,
96-
'source.ucfconstraints': async () => (await import(/* webpackChunkName: "grammar-source-ucfconstraints" */ './grammars/verilog/ucf.tmLanguage.json')).default,
97-
'source.sdc': async () => (await import(/* webpackChunkName: "grammar-source-sdc" */ './grammars/verilog/sdc.tmLanguage.json')).default,
98-
'markdown.verilog.codeblock': async () => (await import(/* webpackChunkName: "grammar-markdown-verilog-codeblock" */ './grammars/verilog/codeblock.json')).default,
93+
'source.systemverilog': async () => (await import(/* webpackChunkName: "grammar-source-systemverilog" */ './grammars/svlangserver/systemverilog.tmLanguage.json')).default,
94+
'markdown.verilog.codeblock': async () => (await import(/* webpackChunkName: "grammar-markdown-verilog-codeblock" */ './grammars/svlangserver/codeblock.json')).default,
9995
'source.pgsql': async () => (await import(/* webpackChunkName: "grammar-source-pgsql" */ './grammars/postgresql/pgsql.tmLanguage.json')).default,
10096
'text.aspnetcorerazor': async () => (await import(/* webpackChunkName: "grammar-text-aspnetcorerazor" */ './grammars/omnisharp/aspnetcorerazor.tmLanguage.json')).default,
10197
'source.pip-requirements': async () => (await import(/* webpackChunkName: "grammar-source-pip-requirements" */ './grammars/vscode-python/pip-requirements.tmLanguage.json')).default,

0 commit comments

Comments
 (0)