Skip to content

Commit add220e

Browse files
authored
Merge pull request #11 from CodinGame/add-postgresql-mysql
feat: add configuration for Mysql, Postgres and Ocaml
2 parents a33d1ad + e1352c9 commit add220e

File tree

3 files changed

+34
-3
lines changed

3 files changed

+34
-3
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-languageclient-wrapper",
3-
"version": "1.4.2",
3+
"version": "1.5.0",
44
"private": false,
55
"description": "Enhanced Monaco editor with TextMate grammars and more",
66
"scripts": {

src/staticOptions.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,25 @@ const staticOptions = asLanguageClientOptionsById({
150150
mutualizable: true,
151151
vscodeExtensionIds: ['lua']
152152
},
153+
mysql: {
154+
documentSelector: [{
155+
language: 'sql'
156+
}],
157+
// Disable code actions
158+
middleware: {
159+
provideCodeActions () {
160+
return []
161+
}
162+
},
163+
mutualizable: false
164+
},
165+
ocaml: {
166+
documentSelector: [{
167+
scheme: 'file',
168+
language: 'ocaml'
169+
}],
170+
mutualizable: false
171+
},
153172
'php-serenata': {
154173
// https://gitlab.com/Serenata/visual-studio-code-client/-/blob/master/src/extension.ts#L120
155174
documentSelector: [
@@ -187,6 +206,18 @@ const staticOptions = asLanguageClientOptionsById({
187206
],
188207
mutualizable: true
189208
},
209+
postgresql: {
210+
documentSelector: [{
211+
language: 'postgresql'
212+
}],
213+
// Disable code actions
214+
middleware: {
215+
provideCodeActions () {
216+
return []
217+
}
218+
},
219+
mutualizable: false
220+
},
190221
python: {
191222
documentSelector: [
192223
{ language: 'python' }

0 commit comments

Comments
 (0)