No Suggestions in New Tab (Untitled File)
Description
When using LSP-copilot in Sublime Text, no suggestions appear if the user is in a "new tab" (i.e., an untitled file that hasn't been saved yet). This happens even when the extension is properly configured and working in regular files.
Steps to Reproduce
- Open Sublime Text.
- Open a new tab (without saving it as a file).
- Start typing.
- Observe that no Copilot suggestions appear.
Expected Behavior
Copilot should provide suggestions in new, unsaved tabs, just like it does in saved files.
Actual Behavior
No suggestions appear until the file is saved.
Environment
- OS: Windows 11 24H2
- Sublime Text Version: 4192
- LSP-copilot Version: 0.3.5
- LSP Version: 2.3.0
Additional Notes
I have phantom suggestions enabled.
If this is a limitation due to LSP, I suppose there is not much it can be done...
It's known that LSP won't work on the initial buffer of a new window. But I am not sure whether this is what you mean.
If people want to reproduce, here are steps.
ctrl+shift+nto create a new window- LSP won't work on the initial buffer of the new window. You may manually set the syntax of the initial buffer to see whether other LSP-* works. LSP-* doesn't work on my side.
Hi! I do not understand some stuff, like I do not know what exactly is the "initial buffer" nor what you mean here:
You may manually set the syntax of the initial buffer to see whether other LSP-* works. LSP-* doesn't work on my side.
However, what I am talking about is not even with "new window" but "new tab" (ctrl+n) as well.
But If I am not mistaken, what you are trying to say is that is not a LSP-copilot's issue but a "general LSP" issue, right?
what you are trying to say is that is not a LSP-copilot's issue but a "general LSP" issue, right?
Correct. But I am not sure whether that's what you encountered.