Skip to content

Commit 93adefd

Browse files
authored
Contribute symbols to ToC (#970)
1 parent b13fca6 commit 93adefd

File tree

5 files changed

+448
-2
lines changed

5 files changed

+448
-2
lines changed

packages/jupyterlab-lsp/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"build:labextension:dev": "jupyter labextension build --development True .",
3535
"build:lib": "tsc",
3636
"build:prod": "jlpm run build:lib && jlpm run build:labextension",
37-
"build:schema": "jlpm build:schema-backend && jlpm build:schema-completion && jlpm build:schema-hover && jlpm build:schema-diagnostics && jlpm build:schema-syntax_highlighting && jlpm build:schema-jump_to && jlpm build:schema-signature && jlpm build:schema-highlights && jlpm build:schema-plugin && jlpm build:schema-rename",
37+
"build:schema": "jlpm build:schema-backend && jlpm build:schema-completion && jlpm build:schema-hover && jlpm build:schema-diagnostics && jlpm build:schema-syntax_highlighting && jlpm build:schema-jump_to && jlpm build:schema-signature && jlpm build:schema-highlights && jlpm build:schema-plugin && jlpm build:schema-rename && jlpm build:schema-symbol",
3838
"build:schema-backend": "json2ts ../../python_packages/jupyter_lsp/jupyter_lsp/schema/schema.json --unreachableDefinitions | prettier --stdin-filepath _schema.d.ts > src/_schema.ts",
3939
"build:schema-plugin": "json2ts schema/plugin.json | prettier --stdin-filepath _plugin.d.ts > src/_plugin.ts",
4040
"build:schema-completion": "json2ts schema/completion.json | prettier --stdin-filepath _completion.d.ts > src/_completion.ts ",
@@ -45,6 +45,7 @@
4545
"build:schema-highlights": "json2ts schema/highlights.json | prettier --stdin-filepath _highlights.d.ts > src/_highlights.ts",
4646
"build:schema-rename": "json2ts schema/rename.json | prettier --stdin-filepath _rename.d.ts > src/_rename.ts",
4747
"build:schema-signature": "json2ts schema/signature.json | prettier --stdin-filepath _signature.d.ts > src/_signature.ts",
48+
"build:schema-symbol": "json2ts schema/symbol.json | prettier --stdin-filepath _symbol.d.ts > src/_symbol.ts",
4849
"bundle": "npm pack .",
4950
"clean": "jlpm run clean:lib",
5051
"clean:all": "jlpm run clean:lib && jlpm run clean:labextension",
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"jupyter.lab.setting-icon": "lsp:hover",
3+
"jupyter.lab.setting-icon-label": "Language integration",
4+
"title": "Code Symbols",
5+
"description": "LSP Symbols (table of contents integration).",
6+
"type": "object",
7+
"properties": {
8+
"throttlerDelay": {
9+
"title": "Throttler delay",
10+
"type": "number",
11+
"default": 50,
12+
"minimum": 0,
13+
"description": "Number of milliseconds to delay sending out the hover request to the language server."
14+
},
15+
"disable": {
16+
"title": "Disable",
17+
"type": "boolean",
18+
"default": false,
19+
"description": "Disable this feature. Requires reloading JupyterLab to apply changes."
20+
}
21+
},
22+
"jupyter.lab.shortcuts": []
23+
}

0 commit comments

Comments
 (0)