From e350da8ab7264576814006ef833ec779ecc69726 Mon Sep 17 00:00:00 2001 From: BoykoAlex Date: Fri, 13 Jul 2018 20:10:11 -0400 Subject: [PATCH] Boot hints first trial --- .../spring-boot-language-server/build.sh | 2 +- .../commons-vscode/icons/boot-icon.svg | 8 ++++++++ .../commons-vscode/src/highlight-service.ts | 16 +++++++++++++--- 3 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 vscode-extensions/commons-vscode/icons/boot-icon.svg diff --git a/headless-services/spring-boot-language-server/build.sh b/headless-services/spring-boot-language-server/build.sh index 995aac236..9c5bf4644 100755 --- a/headless-services/spring-boot-language-server/build.sh +++ b/headless-services/spring-boot-language-server/build.sh @@ -4,4 +4,4 @@ set -e -f ../pom.xml \ -pl spring-boot-language-server \ -am \ - clean install + clean install -DskipTests diff --git a/vscode-extensions/commons-vscode/icons/boot-icon.svg b/vscode-extensions/commons-vscode/icons/boot-icon.svg new file mode 100644 index 000000000..3183d7108 --- /dev/null +++ b/vscode-extensions/commons-vscode/icons/boot-icon.svg @@ -0,0 +1,8 @@ + + + + + Asset 1 + + \ No newline at end of file diff --git a/vscode-extensions/commons-vscode/src/highlight-service.ts b/vscode-extensions/commons-vscode/src/highlight-service.ts index cd7915166..a6e4b4310 100644 --- a/vscode-extensions/commons-vscode/src/highlight-service.ts +++ b/vscode-extensions/commons-vscode/src/highlight-service.ts @@ -28,9 +28,18 @@ export class HighlightService { constructor() { this.DECORATION = VSCode.window.createTextEditorDecorationType({ // textDecoration: "underline", - gutterIconPath: path.resolve(__dirname, "../icons/boot-icon.png"), - gutterIconSize: "contain", - outline: "#32BA56 dotted thin" + // gutterIconPath: path.resolve(__dirname, "../icons/boot-icon.png"), + // gutterIconSize: "contain", + // outline: "#32BA56 dotted thin", + before: { + contentIconPath: path.resolve(__dirname, "../icons/boot-12.png"), + margin: '2px 2px 0px 0px' + }, + backgroundColor: 'rgba(109,179,63,0.25)', + borderColor: 'rgba(109,179,63,0.25)', + borderSpacing: '4px', + borderRadius: '4px', + borderWidth: '4px' }); this.highlights = new Map(); } @@ -49,6 +58,7 @@ export class HighlightService { let highlights : Range[] = this.highlights.get(uri) || []; let decorations = highlights.map(hl => toDecoration(hl)); editor.setDecorations(this.DECORATION, decorations); + editor.setDecorations(this.DECORATION, decorations); } } }