aboutsummaryrefslogtreecommitdiffstats
path: root/language-web/src/main/js/xtext/services/ValidationService.js
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-10-30 13:48:52 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-10-31 19:26:13 +0100
commitcdb493b0a47bcf64e8e670b94fa399fcd731f531 (patch)
treeb6b03aec77ef87a2dda7585be7884a30c65d93f5 /language-web/src/main/js/xtext/services/ValidationService.js
parentfeat(web): add xtext content assist (diff)
downloadrefinery-cdb493b0a47bcf64e8e670b94fa399fcd731f531.tar.gz
refinery-cdb493b0a47bcf64e8e670b94fa399fcd731f531.tar.zst
refinery-cdb493b0a47bcf64e8e670b94fa399fcd731f531.zip
chore(web): refactor xtext client
Diffstat (limited to 'language-web/src/main/js/xtext/services/ValidationService.js')
-rw-r--r--language-web/src/main/js/xtext/services/ValidationService.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/language-web/src/main/js/xtext/services/ValidationService.js b/language-web/src/main/js/xtext/services/ValidationService.js
deleted file mode 100644
index 85c9953d..00000000
--- a/language-web/src/main/js/xtext/services/ValidationService.js
+++ /dev/null
@@ -1,33 +0,0 @@
1/*******************************************************************************
2 * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others.
3 * This program and the accompanying materials are made available under the
4 * terms of the Eclipse Public License 2.0 which is available at
5 * http://www.eclipse.org/legal/epl-2.0.
6 *
7 * SPDX-License-Identifier: EPL-2.0
8 *******************************************************************************/
9
10define(['xtext/services/XtextService', 'jquery'], function(XtextService, jQuery) {
11
12 /**
13 * Service class for validation.
14 */
15 function ValidationService(serviceUrl, resourceId) {
16 this.initialize(serviceUrl, 'validate', resourceId);
17 };
18
19 ValidationService.prototype = new XtextService();
20
21 ValidationService.prototype._checkPreconditions = function(editorContext, params) {
22 return this._state === undefined;
23 }
24
25 ValidationService.prototype._onConflict = function(editorContext, cause) {
26 this.setState(undefined);
27 return {
28 suppressForcedUpdate: true
29 };
30 };
31
32 return ValidationService;
33}); \ No newline at end of file