Skip to content
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

Switch deprecated 'filePath' property to 'uri' #224

Closed
steveyegge opened this issue Mar 15, 2024 · 0 comments
Closed

Switch deprecated 'filePath' property to 'uri' #224

steveyegge opened this issue Mar 15, 2024 · 0 comments
Assignees

Comments

@steveyegge
Copy link

The ProtocolTextDocument used in the agent protocol has renamed the filePath field to uri and deprecated filePath.

I've updated JetBrains and Emacs to use 'uri', and we need to update Neovim as well. Here are the spots it appears:

lua/tests/cody_lifecycle_spec.lua:47 assert(string.find(opened.params.filePath, "README.md"), "Did not send correct filename")
lua/tests/cody_lifecycle_spec.lua:62 assert(string.find(deleted.params.filePath, "README.md"), "Did not close correct filename")
lua/tests/cody_lifecycle_spec.lua:74 and string.find(msg.params.filePath, "Cargo.toml")
lua/tests/cody_lifecycle_spec.lua:84 and string.find(msg.params.filePath, "Cargo.toml")
lua/tests/cody_lifecycle_spec.lua:91 string.find(changed.params.filePath, "Cargo.toml"),
lua/sg/cody/protocol.lua:35 filePath = name,
lua/sg/cody/protocol.lua:96 if not doc.filePath then
lua/sg/cody/rpc.lua:462 { filePath = file, position = { line = line, character = character } },
lua/sg/private/find_artifact.lua:7 local artifact_file = require("plenary.debug_utils").sourced_filepath()
lua/sg/private/data.lua:40 local plugin_file = require("plenary.debug_utils").sourced_filepath()
lua/sg/types.lua:78 ---@field filePath string
lua/sg/types.lua:183 filePath: string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants