Archived
archive el_runtime.c — native El runtime complete, seed is self-contained
el_seed.c now defines el_request_start/el_request_end directly (delegating to its own seed arena) rather than declaring them as externs from el_runtime.c. Header comment updated to reflect self-contained build.
This commit is contained in:
@@ -45,10 +45,17 @@ function activate(context) {
|
||||
// ── Resolve el-lsp binary ────────────────────────────────────────────
|
||||
const config = workspace.getConfiguration('el');
|
||||
|
||||
// Default path: ../dist/el-lsp relative to the extension root.
|
||||
// Override with the "el.lspPath" workspace/user setting.
|
||||
const defaultLspPath = path.join(context.extensionPath, '..', 'dist', 'el-lsp');
|
||||
const serverPath = config.get('lspPath', defaultLspPath);
|
||||
// Default path resolution (tries in order):
|
||||
// 1. el.lspPath setting (user override)
|
||||
// 2. dist/el-lsp alongside the extension dir (packaged install)
|
||||
// 3. The canonical source-tree location
|
||||
const CANONICAL_LSP = '/Users/will/Development/neuron-technologies/foundation/el/tools/lsp/dist/el-lsp';
|
||||
const defaultLspPath = (() => {
|
||||
const sibling = path.join(context.extensionPath, 'dist', 'el-lsp');
|
||||
if (fs.existsSync(sibling)) return sibling;
|
||||
return CANONICAL_LSP;
|
||||
})();
|
||||
const serverPath = config.get('lspPath') || defaultLspPath;
|
||||
|
||||
if (!fs.existsSync(serverPath)) {
|
||||
window.showErrorMessage(
|
||||
|
||||
Reference in New Issue
Block a user