@elastic/ctags-langserver
Advanced tools
Comparing version 0.1.5 to 0.1.7
@@ -20,3 +20,3 @@ "use strict"; | ||
if (options.socketPort !== undefined) { | ||
const [reader, writer] = vscode_languageserver_protocol_1.createServerSocketTransport(this.port); | ||
const [reader, writer] = vscode_languageserver_protocol_1.createServerSocketTransport(options.socketPort); | ||
connection = lsp.createConnection(reader, writer); | ||
@@ -23,0 +23,0 @@ } |
@@ -32,2 +32,29 @@ "use strict"; | ||
const utils_1 = require("./utils"); | ||
const CTAGS_SUPPORT_LANGS = [ | ||
'C', | ||
'C++', | ||
'Clojure', | ||
'C#', | ||
'CSS', | ||
'Go', | ||
'HTML', | ||
'Iniconf', | ||
'Lua', | ||
'JSON', | ||
'ObjectiveC', | ||
'Pascal', | ||
'Perl', | ||
'PHP', | ||
'Python', | ||
'R', | ||
'Ruby', | ||
'Rust', | ||
'Scheme', | ||
'Sh', | ||
'SQL', | ||
'Tcl', | ||
'TypeScript', | ||
'Java', | ||
'JavaScript', | ||
]; | ||
class LspServer { | ||
@@ -322,3 +349,3 @@ constructor(options) { | ||
try { | ||
child_process_1.execSync(`${ctagsPath} --fields=-anf+iKnS -R .`, { cwd: rootPath, stdio: 'pipe' }); | ||
child_process_1.execSync(`${ctagsPath} --fields=-anf+iKnS --languages=${CTAGS_SUPPORT_LANGS.join(',')} -R .`, { cwd: rootPath, stdio: 'pipe' }); | ||
} | ||
@@ -325,0 +352,0 @@ catch (err) { |
{ | ||
"name": "@elastic/ctags-langserver", | ||
"version": "0.1.5", | ||
"version": "0.1.7", | ||
"description": "An all-languages language server built on top of ctags", | ||
@@ -5,0 +5,0 @@ "author": "Elastic", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15018665
1094