Skip to content

Commit

Permalink
feat(markdown): implement provideFileRenameEdits
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Jun 26, 2024
1 parent 3eca105 commit da8fcdf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/markdown/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ export function create({
}
},

async provideFileRenameEdits(oldUri, newUri, token) {
const result = await ls.getRenameFilesInWorkspaceEdit([{ oldUri, newUri }], token);
return result?.edit;
},

provideSelectionRanges(document, positions, token) {
if (prepare(document)) {
return ls.getSelectionRanges(document, positions, token);
Expand Down

0 comments on commit da8fcdf

Please sign in to comment.