Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"use strict";
const atom_languageclient_1 = require("atom-languageclient");
const cp = require("child_process");
class VueLanguageClient extends atom_languageclient_1.AutoLanguageClient {
getGrammarScopes() { return ['text.html.vue']; }
;
getLanguageName() { return 'Vue'; }
;
getServerName() { return 'MBRW'; }
;
startServerProcess() {
return cp.spawn('node', [require.resolve('vue-language-server/dist/vueServerMain')]);
}
;
preInitialization(connection) {
connection.onCustom('$/partialResult', () => { }); // Suppress partialResult until the language server honours 'streaming' detection
}
}
module.exports = new VueLanguageClient();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9tYWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSw2REFBeUQ7QUFDekQsb0NBQXFDO0FBRXJDLHVCQUF3QixTQUFRLHdDQUFrQjtJQUdqRCxnQkFBZ0IsS0FBTSxNQUFNLENBQUMsQ0FBQyxlQUFlLENBQUMsQ0FBQSxDQUFDLENBQUM7SUFBQSxDQUFDO0lBQ2pELGVBQWUsS0FBTSxNQUFNLENBQUMsS0FBSyxDQUFBLENBQUMsQ0FBQztJQUFBLENBQUM7SUFDcEMsYUFBYSxLQUFNLE1BQU0sQ0FBQyxNQUFNLENBQUEsQ0FBQyxDQUFDO0lBQUEsQ0FBQztJQUVuQyxrQkFBa0I7UUFDakIsTUFBTSxDQUFDLEVBQUUsQ0FBQyxLQUFLLENBQUMsTUFBTSxFQUFFLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyx3Q0FBd0MsQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUN0RixDQUFDO0lBQUEsQ0FBQztJQUVGLGlCQUFpQixDQUFFLFVBQVU7UUFDNUIsVUFBVSxDQUFDLFFBQVEsQ0FBQyxpQkFBaUIsRUFBRSxRQUFPLENBQUMsQ0FBQyxDQUFDLENBQUMsaUZBQWlGO0lBQ3BJLENBQUM7Q0FDRDtBQUVELGlCQUFVLElBQUksaUJBQWlCLEVBQUUsQ0FBQyJ9
const fs = require('fs');
const path = require('path');
const cp = require('child_process');
const net = require('net');
const alc = require('atom-languageclient');
const pdeps = require('atom-package-deps');
const bytes = require('bytes');
const bp = require('./build-provider');
const util = require('./util');
let busyService;
let busyServiceResolve;
let busyServicePromise = new Promise(resolve => busyServiceResolve = resolve);
class DLSLanguageClient extends alc.AutoLanguageClient {
activate() {
let promise = super.activate() || Promise.resolve();
return promise.then(() => pdeps.install('ide-dlang', false));
}
getGrammarScopes() {
return ['source.d'];
}
getLanguageName() {
return 'D';
}
getServerName() {
return 'DLS';
}
},
ols: languageServer.ISettings.defaults.reason,
autocompleteResultsFirst: true,
};
const scopes = [
'ocaml',
'reason',
'source.reason',
'source.ocaml',
'source.re',
'source.ml',
'source.rei',
'source.mli',
];
const InsertFinalNewLineKey = 'whitespace.ensureSingleTrailingNewline';
class ReasonMLLanguageClient extends atom_languageclient_1.AutoLanguageClient {
constructor() {
super(...arguments);
this.subscriptions = null;
this.servers = {};
this.config = atom.config.get(this.getRootConfigurationKey()) || {};
this.configPerProject = null;
this.insertFinalNewLine = atom.config.get(InsertFinalNewLineKey) || false;
}
getLanguageName() { return 'Reason'; }
getGrammarScopes() { return scopes; }
getRootConfigurationKey() { return 'ide-reason'; }
getServerName() {
switch (this.config.server.tool) {
case 'rls': return 'reason';
case 'ols': return 'ocamlmerlin';
default: return 'reason';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const atom_languageclient_1 = require("atom-languageclient");
const path_1 = require("path");
const fs_1 = require("fs");
class KosLanguageClient extends atom_languageclient_1.AutoLanguageClient {
getGrammarScopes() { return ['source.kos']; }
getLanguageName() { return 'Kerbal Operating System'; }
getServerName() { return 'kos-language-server'; }
getConnectionType() { return 'ipc'; }
startServerProcess() {
return super.spawnChildNode([atom.config.get('language-kos.kosServer.path'), '--node-ipc'], { stdio: [null, null, null, 'ipc'] });
}
shouldStartForEditor(editor) {
if (!this.validateKosServerPath())
return false;
return super.shouldStartForEditor(editor);
}
validateKosServerPath() {
const kosSpecifiedPath = atom.config.get('language-kos.kosServer.path');
const isAbsolutelySpecified = path_1.isAbsolute(kosSpecifiedPath);
const kosAbsolutePath = isAbsolutelySpecified