Rename vscode-boot to vscode-spring-boot
To avoid confusing prefix matching between patterns like vscode-boot-* and vscode-boot-properties-*, vscide-boot-java-* This would pontially cause weird version strings in concourse resources.
This commit is contained in:
1
vscode-extensions/vscode-spring-boot/lib/.gitignore
vendored
Normal file
1
vscode-extensions/vscode-spring-boot/lib/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.js
|
||||
32
vscode-extensions/vscode-spring-boot/lib/Main.ts
Normal file
32
vscode-extensions/vscode-spring-boot/lib/Main.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
'use strict';
|
||||
// The module 'vscode' contains the VS Code extensibility API
|
||||
// Import the module and reference it with the alias vscode in your code below
|
||||
|
||||
import * as VSCode from 'vscode';
|
||||
import * as Path from 'path';
|
||||
import * as FS from 'fs';
|
||||
import * as Net from 'net';
|
||||
import * as ChildProcess from 'child_process';
|
||||
import {LanguageClient, LanguageClientOptions, SettingMonitor, ServerOptions, StreamInfo} from 'vscode-languageclient';
|
||||
import {TextDocument} from 'vscode';
|
||||
|
||||
import * as commons from 'commons-vscode';
|
||||
|
||||
const PROPERTIES_LANGUAGE_ID = "spring-boot-properties";
|
||||
const YAML_LANGUAGE_ID = "spring-boot-properties-yaml";
|
||||
const JAVA_LANGUAGE_ID = "java";
|
||||
|
||||
/** Called when extension is activated */
|
||||
export function activate(context: VSCode.ExtensionContext) {
|
||||
let options : commons.ActivatorOptions = {
|
||||
DEBUG: false,
|
||||
CONNECT_TO_LS: false,
|
||||
extensionId: 'vscode-spring-boot',
|
||||
launcher: (context: VSCode.ExtensionContext) => Path.resolve(context.extensionPath, 'jars/language-server.jar'),
|
||||
jvmHeap: "160m",
|
||||
clientOptions: {
|
||||
documentSelector: [ PROPERTIES_LANGUAGE_ID, YAML_LANGUAGE_ID, JAVA_LANGUAGE_ID ]
|
||||
}
|
||||
};
|
||||
let clientPromise = commons.activate(options, context);
|
||||
}
|
||||
Reference in New Issue
Block a user