summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2019-01-05 17:22:35 -0800
committerGeorge Fraser <george@fivetran.com>2019-01-05 17:22:35 -0800
commit77be470a307ab95b022a1c12c150b892df6751f5 (patch)
tree9bdb8a93c87d040d44a70e8e23035666458d73a3 /lib
parentcc6da5fd1f7a070e05da1f4a2cc6bb4d26f79bde (diff)
downloadjava-language-server-77be470a307ab95b022a1c12c150b892df6751f5.zip
Fix compile
Diffstat (limited to 'lib')
-rw-r--r--lib/extension.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/extension.ts b/lib/extension.ts
index 4f73acf..2be8a9e 100644
--- a/lib/extension.ts
+++ b/lib/extension.ts
@@ -4,9 +4,10 @@
import * as Path from "path";
import * as FS from "fs";
import { window, workspace, ExtensionContext, commands, tasks, Task, TaskExecution, ShellExecution, Uri, TaskDefinition, languages, IndentAction, Progress, ProgressLocation } from 'vscode';
-
import {LanguageClient, LanguageClientOptions, ServerOptions, NotificationType} from "vscode-languageclient";
+const visualVm = false;
+
/** Called when extension is activated */
export function activate(context: ExtensionContext) {
console.log('Activating Java');
@@ -45,6 +46,10 @@ export function activate(context: ExtensionContext) {
options: { cwd: context.extensionPath }
}
+ if (visualVm) {
+ serverOptions = visualVmConfig(context);
+ }
+
// Copied from typescript
languages.setLanguageConfiguration('java', {
indentationRules: {