Comments (8)
A couple thoughts:
- This occurs on all but f strings, not just
"""
s. It's just most irritating on"""
, where 100% of the time I'm trying to write a docstring, usage message, template, or other long-form, multiline thing, so I immediately hit enter, and then oops, instead of a newline I get.git/
. - Why is this the default behavior which should only be turned off in limited contexts/by user decision? Even just off the top of my head I can come up with an enormous list of situations where I don't want the behavior, and maybe one where I do want it. Seems like it should be implemented as off by default, enabled only in the situations where it makes sense, maybe with a user option to complete like that on all strings.
from jedi-language-server.
Have you confirmed that these completions are coming from jedi-language-server? I don't think jedi returns these completions
from jedi-language-server.
The BBEdit lead dev confirmed to me that it does not generate any completions in docstrings, and does not do completions from the disk in general (only from something like ctags, which I am not using).
from jedi-language-server.
To clarify slightly: If I disable the jedi server integration and cold-start and open a new buffer, typing """
and pausing does not do anything. If I then re-enable the server, restart, and on a new buffer to """
the immediate completion is the contents of the directory of the file I opened. No completion (of the type I am seeing) is generated until the file is saved, though. Therefore it is reasonable to assume it is the Jedi server, since the editor does not generate the completion unless server integration is active.
from jedi-language-server.
I'm pretty sure this is coming from Jedi. I understand that it's questionable, but the question is where do you want file completions and where not? I feel like this just depends a lot on the users. I understand that in triple quotes especially in a docstring position these are not very useful.
from jedi-language-server.
yeah I feel like automatically showing ls $PWD
is a weird choice after a triple-quote. I would expect plain ol' symbol completion, and the editor should chose eg to complete strings (or do nothing).
from jedi-language-server.
I see... based on david's input, here are the options I can see:
- If we can identify the context being a docstring somehow, we can disable path completions specifically for that context.
- If not, we can add an option to disable all path completions.
- Finally, regardless of 1 and 2, if this is just mildly annoying, we can simply ignore and hope for an upstream resolution.
from jedi-language-server.
I would be more than happy with #2.
from jedi-language-server.
Related Issues (20)
- Make `textDocument/documentSymbol` ignore imported symbols
- Variable type not showing in hover window HOT 1
- Unrecoverable error when upgrading from 0.41.1 to 0.41.2 HOT 3
- Problems with import resolution HOT 4
- ValueError: `column` parameter (1) is not in a valid range (0-0) for line 14 ('\n') HOT 1
- Renaming variables broken in VSCode
- Language server crashes when using rtx 3.12 installation of python. HOT 5
- Parentheses autocompletion in VSCode+Python Extension HOT 5
- jedi-language-server crashes right after start with failed import HOT 2
- Why is Go to implementation not implemented? HOT 1
- Upgrading docstring-to-markdown to 0.15 breaks tests HOT 1
- "E15: Invalid expression: " when pressing enter for newline in neovim HOT 1
- Variable detection is amiss HOT 1
- Redundant parentheses added when autocompletion in lazyvim(nvim)
- test_publish_diagnostics_on_change fails on Darwin HOT 3
- feature request: filter out special methods / magic methods from completion HOT 2
- workspace.symbols.ignoreFolders does not apply to `textDocument/references` HOT 1
- Not disable hover
- Allow customization of Jedi settings in VSCodium
- External pytest fixtures not autocompleted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jedi-language-server.