-
Notifications
You must be signed in to change notification settings - Fork 11
Don't fetch starpls_server via bazel and fix vscode settings #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,12 +5,10 @@ | |
| "files.trimTrailingWhitespace": true, | ||
| "editor.insertSpaces": true, | ||
| "editor.tabCompletion": "on", | ||
|
|
||
| // Default for any filetype | ||
| "editor.rulers": [ | ||
| 99 | ||
| ], | ||
|
|
||
| // Exclude build, temp and cache folders | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. feels like this file (actually both) will be much harder to read without the newlines
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is auto-format of the file in vscode. I mean we can also have some explicit non-default formatting but then we should create a formatting setting for JSON. I personally don't want to manually format files. |
||
| "files.watcherExclude": { | ||
| ".*/**": true, | ||
|
|
@@ -19,7 +17,6 @@ | |
| ".venv*/**": true, | ||
| "_build/**": true, | ||
| }, | ||
|
|
||
| // Python Settings | ||
| // Exclude build, temp and cache folders | ||
| "python.analysis.exclude": [ | ||
|
|
@@ -42,26 +39,25 @@ | |
| }, | ||
| "editor.defaultFormatter": "charliermarsh.ruff", | ||
| }, | ||
|
|
||
| // Markdown Settings | ||
| "[markdown]": { | ||
| // We mostly write markdown in some combination with python, | ||
| // so we use the same rulers as python. | ||
| "editor.rulers": [ | ||
| 79, 99 | ||
| 79, | ||
| 99 | ||
| ] | ||
| }, | ||
|
|
||
| "bazel.lsp.command": "bazel", | ||
| "bazel.lsp.args": [ | ||
| "run", | ||
| "//:starpls_server" | ||
| ], | ||
|
|
||
| // RST Settings | ||
| "[restructuredtext]": { | ||
| "editor.tabSize": 3, | ||
| }, | ||
| // Patch files | ||
| "[diff]": { | ||
| "files.insertFinalNewline": false, | ||
| "files.trimFinalNewlines": false, | ||
| "files.trimTrailingWhitespace": false, | ||
|
Comment on lines
+57
to
+59
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why false?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Those are patch files, so they shouldn't be modified automatically in any way. And whitespace matters in there. |
||
| }, | ||
| // | ||
| // | ||
| // Esbonio 0.x (Current) | ||
|
|
@@ -80,9 +76,11 @@ | |
| // | ||
| // | ||
| // Esbonio 1.x (Preview) | ||
| "esbonio.sphinx.pythonCommand": [ | ||
| ".venv_docs/bin/python" | ||
| ], | ||
| "esbonio.sphinx.pythonCommand": { | ||
| "command": [ | ||
| ".venv_docs/bin/python" | ||
| ] | ||
| }, | ||
| "esbonio.sphinx.buildCommand": [ | ||
| "docs", | ||
| "_build", | ||
|
|
@@ -99,8 +97,13 @@ | |
| "--ignore-glob=bazel-*/*", | ||
| "--ignore-glob=.venv_docs/*", | ||
| "--ignore-glob=_build/*", | ||
|
|
||
| ], | ||
| "python.testing.unittestEnabled": false, | ||
| "python.testing.pytestEnabled": true, | ||
| "clangd.arguments": [ | ||
| "--compile-commands-dir=${workspaceFolder}/", | ||
| "--pretty", | ||
| "--background-index", | ||
| "--query-driver=/var/cache/bazel/*/execroot/_main/external/toolchains_llvm++llvm+llvm_toolchain/bin/cc_wrapper.sh" | ||
| ], | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is incompatible with docs-as-code preview, that's why we did not include it. No idea if people use that preview feature or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean with "docs-as-code preview"? I just tried to start
bazel run :live_previewin a terminal and that still works as intended, as far as I can tell, even though that extension is installed.At least for module development I guess I rather have a bazel integration than a live preview for my docs as code. Different story on document-heavy repos like eclipse-score/score of course.