Improving some error marker messages
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
eclipse.preferences.version=1
|
||||
encoding/<project>=UTF-8
|
||||
@@ -0,0 +1,4 @@
|
||||
eclipse.preferences.version=1
|
||||
encoding//src/main/java=UTF-8
|
||||
encoding//src/test/java=UTF-8
|
||||
encoding/<project>=UTF-8
|
||||
@@ -0,0 +1,3 @@
|
||||
eclipse.preferences.version=1
|
||||
encoding//src/main/java=UTF-8
|
||||
encoding/<project>=UTF-8
|
||||
@@ -10,13 +10,15 @@
|
||||
*******************************************************************************/
|
||||
package org.springframework.ide.vscode.commons.languageserver.reconcile;
|
||||
|
||||
import org.springframework.ide.vscode.commons.util.ValueParseException;
|
||||
|
||||
/**
|
||||
* Exception if there is a failure when parsing a value. It does not wrap
|
||||
* other exceptions such that when thrown, the parse exception is the "deepest"
|
||||
* error.
|
||||
*
|
||||
*/
|
||||
public class ReconcileException extends Exception implements ProblemTypeProvider {
|
||||
public class ReconcileException extends ValueParseException implements ProblemTypeProvider {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private final ProblemType problemType;
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
eclipse.preferences.version=1
|
||||
encoding//src/main/java=UTF-8
|
||||
encoding//src/test/java=UTF-8
|
||||
encoding/<project>=UTF-8
|
||||
@@ -0,0 +1,4 @@
|
||||
eclipse.preferences.version=1
|
||||
encoding//src/main/java=UTF-8
|
||||
encoding//src/test/java=UTF-8
|
||||
encoding/<project>=UTF-8
|
||||
@@ -32,6 +32,7 @@ import org.springframework.ide.vscode.commons.util.ExceptionUtil;
|
||||
import org.springframework.ide.vscode.commons.util.IntegerRange;
|
||||
import org.springframework.ide.vscode.commons.util.Log;
|
||||
import org.springframework.ide.vscode.commons.util.StringUtil;
|
||||
import org.springframework.ide.vscode.commons.util.ValueParseException;
|
||||
import org.springframework.ide.vscode.commons.util.ValueParser;
|
||||
import org.springframework.ide.vscode.commons.util.text.IDocument;
|
||||
import org.springframework.ide.vscode.commons.yaml.ast.NodeUtil;
|
||||
@@ -194,7 +195,7 @@ public class SchemaBasedYamlASTReconciler implements YamlASTReconciler {
|
||||
Throwable e = ExceptionUtil.getDeepestCause(_e);
|
||||
|
||||
// If value parse exception, do not append any additional information
|
||||
if (e instanceof ReconcileException) {
|
||||
if (e instanceof ValueParseException) {
|
||||
String msg = e.getMessage();
|
||||
if (StringUtil.hasText(msg)) {
|
||||
return msg;
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
eclipse.preferences.version=1
|
||||
encoding//src/main/java=UTF-8
|
||||
encoding//src/test/java=UTF-8
|
||||
encoding//src/test/resources=UTF-8
|
||||
encoding/<project>=UTF-8
|
||||
@@ -72,4 +72,6 @@ Then package it:
|
||||
|
||||
npm run vsce-package
|
||||
|
||||
This produces a `.vsix` file which you can install directly into vscode.
|
||||
This produces a `.vsix` file which you can install directly into vscode.
|
||||
|
||||
*Version: 0.0.1-201701250238*
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"displayName": "Spring Boot Application Properties Support",
|
||||
"description": "Provides validation and content assist for Spring Boot application.properties and application.yml file",
|
||||
"icon": "spring-boot-logo.png",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.1-201701250238",
|
||||
"publisher": "Pivotal",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -19,7 +19,10 @@
|
||||
"Linters"
|
||||
],
|
||||
"keywords": [
|
||||
"java-properties", "spring-boot", "application-properties", "application-yaml"
|
||||
"java-properties",
|
||||
"spring-boot",
|
||||
"application-properties",
|
||||
"application-yaml"
|
||||
],
|
||||
"activationEvents": [
|
||||
"onLanguage:ini",
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
eclipse.preferences.version=1
|
||||
encoding//src/main/java=UTF-8
|
||||
encoding//src/main/resources=UTF-8
|
||||
encoding//src/test/java=UTF-8
|
||||
encoding//src/test/resources=UTF-8
|
||||
encoding/<project>=UTF-8
|
||||
@@ -59,4 +59,6 @@ Then package it:
|
||||
|
||||
npm run vsce-package
|
||||
|
||||
This produces a `.vsix` file which you can install directly into vscode.
|
||||
This produces a `.vsix` file which you can install directly into vscode.
|
||||
|
||||
*Version: 0.0.1-201701250238*
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"displayName": "Concourse CI Pipeline Editor",
|
||||
"description": "Provides validation and content assist for Concourse CI pipeline and task configuration yml files",
|
||||
"icon": "icon.png",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.1-201701250238",
|
||||
"publisher": "Pivotal",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -15,8 +15,14 @@
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.springframework.ide.eclipse.core.springbuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.springframework.ide.eclipse.core.springnature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||
</natures>
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
eclipse.preferences.version=1
|
||||
encoding//src/main/java=UTF-8
|
||||
encoding//src/main/resources=UTF-8
|
||||
encoding//src/test/java=UTF-8
|
||||
encoding//src/test/resources=UTF-8
|
||||
encoding/<project>=UTF-8
|
||||
@@ -35,3 +35,6 @@ read its detailed documentation.
|
||||
[linting]: https://s29.postimg.org/67wu0d7yv/linting.png
|
||||
[ca]: https://s29.postimg.org/q52r9bqtz/content_assist.png
|
||||
[hovers]: https://s29.postimg.org/3rv0mipw7/hovers.png
|
||||
|
||||
|
||||
*Version: 0.0.2-201701250238*
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"displayName": "Cloudfoundry Manifest YML Support",
|
||||
"description": "Adds linting, content assist and hoverinfo's for Cloudfoundry Deployment Manifests (a.k.a. `manifest.yml`) files.",
|
||||
"icon": "icon.png",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.2-201701250238",
|
||||
"publisher": "Pivotal",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -39,15 +39,19 @@
|
||||
"configuration": "./yaml-support/language-configuration.json"
|
||||
}
|
||||
],
|
||||
"grammars": [{
|
||||
"language": "manifest-yaml",
|
||||
"scopeName": "source.yaml",
|
||||
"path": "./yaml-support/yaml.tmLanguage"
|
||||
}],
|
||||
"snippets": [{
|
||||
"language": "manifest-yaml",
|
||||
"path": "./snippets.json"
|
||||
}]
|
||||
"grammars": [
|
||||
{
|
||||
"language": "manifest-yaml",
|
||||
"scopeName": "source.yaml",
|
||||
"path": "./yaml-support/yaml.tmLanguage"
|
||||
}
|
||||
],
|
||||
"snippets": [
|
||||
{
|
||||
"language": "manifest-yaml",
|
||||
"path": "./snippets.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
"main": "./out/lib/Main",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user