Skip to content

feat: add syntaxHighlightingOnly setting#85

Merged
kugesan1105 merged 1 commit into
jaseci-labs:mainfrom
kugesan1105:feat/syntax-highlighting-only
May 21, 2026
Merged

feat: add syntaxHighlightingOnly setting#85
kugesan1105 merged 1 commit into
jaseci-labs:mainfrom
kugesan1105:feat/syntax-highlighting-only

Conversation

@kugesan1105

Copy link
Copy Markdown
Contributor

Summary

Adds a new jaclang-extension.syntaxHighlightingOnly boolean setting (default false). When enabled:

  • EnvManager.init() is skipped.
  • The Jac language server is not started.
  • Jac-specific menu/context commands (run, debug, restart language server, serve, lintfix) are hidden via when clauses.

This is useful for users who only want syntax highlighting and either don't have a Jac runtime installed or don't want the LSP to run for performance reasons.

Changes

  • package.json — new config setting + !config.jaclang-extension.syntaxHighlightingOnly gating on 5 menu entries.
  • src/extension.ts — new isSyntaxHighlightingOnly() helper; activate() skips envManager.init() and createAndStartLsp() when the flag is on.

Test plan

  • Install the extension with syntaxHighlightingOnly: true and confirm: no LSP starts, no env manager popup, Jac files still highlight, run/debug/serve/lintfix commands not in menus.
  • Install with default (syntaxHighlightingOnly: false) and confirm: LSP starts as before, all commands available.
  • Toggle the setting at runtime (requires reload) and confirm the change takes effect.

Adds a `jaclang-extension.syntaxHighlightingOnly` boolean setting (default
false). When enabled, the extension skips EnvManager initialization and
LSP startup, and the Jac-specific menu/context commands (run, debug,
restart language server, serve, lintfix) are hidden via `when` clauses.

Useful for environments where users only need syntax highlighting and
do not have a Jac runtime installed.
@kugesan1105
kugesan1105 merged commit 96b1112 into jaseci-labs:main May 21, 2026
2 checks passed
@kugesan1105
kugesan1105 deleted the feat/syntax-highlighting-only branch May 21, 2026 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant