Open StellaHuang95 opened 1 month ago
Hi @amunger not sure who to assign this to, please let me know if I should assign to someone else.
Is there any update on this issue? Thanks.
That URI is actually for a text document that is independent of the notebook since the schema is vscode-chat-code-block
. Is the language server able to use the contents of that document, rather than trying to look for the related notebook?
@amunger are you saying we should special casing vscode-chat-code-block
? since we support virtual workspace
we do not special case any specific schema. we consider it as notebook since it has file extension of ipynb
. IMO, if you want people to treat it as text document, it shouldn't have ipynb
as file extension.
for now, pylance special cased vscode copilot schemas
, but it would be nice if uri doesn't has ipynb
as file extension.
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
ctrl + i
to open the copilot inline chatWhen inspecting the textDocument/documentSymbol request from the Pylance side, I noticed that the
DocumentSymbolParams.textDocument.uri = 'vscode-chat-code-block:/c%3A/Users/stellahuang/source/projects/issue6427/notebook1.ipynb?3574a4e6-6692-4217-86b1-0ca8750d25f6'
. It looks like the query is for the notebook file itself, not for a specific cell, which seems like a bug.Related bug opened in Pylance: https://github.com/microsoft/pylance-release/issues/6454