Skip to content

Commit 45da449

Browse files
committed
add listener api changes to docs notebook
1 parent 99dc206 commit 45da449

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/Extending.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@
120120
"def load_jupyter_server_extension(nbapp):\n",
121121
"\n",
122122
" @lsp_message_listener(\"all\")\n",
123-
" async def my_listener(scope, message, languages, manager):\n",
124-
" print(\"received a {} {} message about {}\".format(\n",
125-
" scope, message[\"method\"], languages\n",
123+
" async def my_listener(scope, message, language_server, manager):\n",
124+
" print(\"received a {} {} message from {}\".format(\n",
125+
" scope, message[\"method\"], language_server\n",
126126
" ))\n",
127127
"```\n",
128128
"\n",
@@ -138,7 +138,7 @@
138138
"Fine-grained controls are available as part of the Python API. Pass these as\n",
139139
"named arguments to `lsp_message_listener`.\n",
140140
"\n",
141-
"- `languages`: a regular expression of languages\n",
141+
"- `language_server`: a regular expression of language servers\n",
142142
"- `method`: a regular expression of LSP JSON-RPC method names"
143143
]
144144
}

0 commit comments

Comments
 (0)