Files
spring-tools/atom-extensions/atom-concourse/lib/concourse-ci-yaml-client.ts
BoykoAlex c46fe9ee52 PT #157499438: Remove debugging vm arg from LS launcher.
Support connect to running LS from Atom client
2018-05-11 15:09:20 -04:00

42 lines
1.1 KiB
TypeScript

import * as path from 'path';
import { JavaProcessLanguageClient } from '@pivotal-tools/atom-languageclient-commons';
import {JVM} from '@pivotal-tools/jvm-launch-utils';
export class ConcourseCiYamlClient extends JavaProcessLanguageClient {
constructor() {
//noinspection JSAnnotator
super(
path.join(__dirname, '..', 'server'),
'concourse-language-server.jar'
);
}
getGrammarScopes() {
return ['source.concourse-pipeline-yaml','source.concourse-task-yaml'];
}
getLanguageName() {
return 'Concourse-Pipeline-YAML';
}
getServerName() {
return 'Concourse-Pipeline-YAML';
}
activate() {
// replace the example argument 'linter-ruby' with the name of this Atom package
require('atom-package-deps')
.install('concourse-pipeline-yaml')
.then(() => console.debug('All dependencies installed, good to go'));
super.activate();
}
launchVmArgs(jvm: JVM) {
return Promise.resolve([
'-Dorg.slf4j.simpleLogger.logFile=concourse-ci-yaml.log'
]);
}
}