Skip to content

Commit

Permalink
Merge branch 'main' into fix-edits-markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski authored Nov 25, 2023
2 parents 75015f9 + ebcb064 commit 359abc6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions python_packages/jupyter_lsp/jupyter_lsp/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
except ImportError: # pragma: no cover
from jupyter_server.transutils import _

from traitlets import Any as Any_
from traitlets import Instance
from traitlets import List as List_
from traitlets import Unicode, default
Expand Down Expand Up @@ -201,11 +202,15 @@ class LanguageServerManagerAPI(LoggingConfigurable, HasListeners):
nodejs = Unicode(help=_("path to nodejs executable")).tag(config=True)

node_roots = List_(
Unicode(), help=_("absolute paths in which to seek node_modules")
trait=Any_(),
default_value=[],
help=_("absolute paths in which to seek node_modules"),
).tag(config=True)

extra_node_roots = List_(
Unicode(), help=_("additional absolute paths to seek node_modules first")
trait=Any_(),
default_value=[],
help=_("additional absolute paths to seek node_modules first"),
).tag(config=True)

def find_node_module(self, *path_frag):
Expand Down

0 comments on commit 359abc6

Please sign in to comment.