More debug output for failing CI tests
This commit is contained in:
@@ -289,22 +289,18 @@ resources:
|
||||
build_name: spring-tools-4
|
||||
########################################################################################
|
||||
jobs:
|
||||
- name: run-concourse-ls-tests
|
||||
serial: true
|
||||
- name: concourse-ls-tests
|
||||
max_in_flight: 4
|
||||
plan:
|
||||
- get: every-minute
|
||||
trigger: true
|
||||
- get: sts4
|
||||
- aggregate:
|
||||
- get: maven-cache
|
||||
- get: sts4
|
||||
- task: run-concourse-ls-test
|
||||
config:
|
||||
platform: linux
|
||||
image_resource:
|
||||
type: docker-image
|
||||
source:
|
||||
repository: kdvolder/sts4-build-env
|
||||
run:
|
||||
dir: sts4/headless-services/concourse-language-server
|
||||
path: build.sh
|
||||
file: sts4/concourse/tasks/build-vsix.yml
|
||||
params:
|
||||
extension_id: vscode-concourse
|
||||
on_failure:
|
||||
put: slack-notification
|
||||
params:
|
||||
@@ -1572,7 +1568,7 @@ groups:
|
||||
# - publish-headless-snapshots
|
||||
- name: debugging
|
||||
jobs:
|
||||
- run-concourse-ls-tests
|
||||
- concourse-ls-tests
|
||||
- name: npm-packages
|
||||
jobs:
|
||||
- publish-jvm-launch-utils
|
||||
|
||||
@@ -13,6 +13,8 @@ package org.springframework.ide.vscode.commons.yaml.completion;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.ide.vscode.commons.languageserver.completion.ICompletionProposal;
|
||||
import org.springframework.ide.vscode.commons.util.Renderable;
|
||||
import org.springframework.ide.vscode.commons.util.text.DocumentRegion;
|
||||
@@ -34,9 +36,17 @@ import org.springframework.ide.vscode.commons.yaml.structure.YamlStructureParser
|
||||
* @author Kris De Volder
|
||||
*/
|
||||
public abstract class TopLevelAssistContext implements YamlAssistContext {
|
||||
|
||||
final static Logger logger = LoggerFactory.getLogger(TopLevelAssistContext.class);
|
||||
|
||||
@Override
|
||||
public YamlAssistContext traverse(YamlPathSegment s) throws Exception {
|
||||
YamlAssistContext result = _traverse(s);
|
||||
logger.debug("Traversing {} with {} => {}", this, s, result);
|
||||
return result;
|
||||
}
|
||||
|
||||
protected YamlAssistContext _traverse(YamlPathSegment s) {
|
||||
Integer documentSelector = s.toIndex();
|
||||
if (documentSelector!=null) {
|
||||
return getDocumentContext(documentSelector);
|
||||
|
||||
@@ -307,6 +307,12 @@ public class YTypeAssistContext extends AbstractYamlAssistContext {
|
||||
|
||||
@Override
|
||||
public YamlAssistContext traverse(YamlPathSegment s) throws Exception {
|
||||
YamlAssistContext result = _traverse(s);
|
||||
logger.debug("Traversing {} with {} => {}", this, s, result);
|
||||
return result;
|
||||
}
|
||||
|
||||
protected YamlAssistContext _traverse(YamlPathSegment s) {
|
||||
if (s.getType()==YamlPathSegmentType.VAL_AT_KEY) {
|
||||
if (typeUtil.isSequencable(type) || typeUtil.isMap(type)) {
|
||||
return contextWith(s, typeUtil.getDomainType(type));
|
||||
|
||||
Reference in New Issue
Block a user