Skip to content

Commit c9d5b86

Browse files
committed
rename
1 parent 3524018 commit c9d5b86

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/features/projectManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export class PythonProjectManagerImpl implements PythonProjectManager {
177177
* @param newUri The new URI for the project (optional, defaults to old URI).
178178
* @param newOptions New options for the project (optional, merged with old options).
179179
*/
180-
async updateProject(
180+
async modifyProject(
181181
existingUri: Uri,
182182
newName?: string,
183183
newUri?: Uri,

src/features/views/projectView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export class ProjectView implements TreeDataProvider<ProjectTreeItem> {
266266
}
267267

268268
const newProjectUri = Uri.file(newProjectPath);
269-
await this.projectManager.updateProject(project.uri, undefined, newProjectUri);
269+
await this.projectManager.modifyProject(project.uri, undefined, newProjectUri);
270270
}
271271

272272
if (affectedProjects.length > 0) {

src/internal.api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export interface PythonProjectManager extends Disposable {
287287
): PythonProject;
288288
add(pyWorkspace: PythonProject | PythonProject[]): Promise<void>;
289289
remove(pyWorkspace: PythonProject | PythonProject[]): void;
290-
updateProject(
290+
modifyProject(
291291
existingUri: Uri,
292292
newName?: string,
293293
newUri?: Uri,

src/test/features/projectManager.updateUri.unit.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ suite('Project Manager Update URI tests', () => {
3636
assert.equal(oldProject.uri.fsPath, oldUri.fsPath, 'Old URI should match');
3737

3838
// Update the project URI
39-
projectManager.updateProject(oldUri, 'project', newUri);
39+
projectManager.modifyProject(oldUri, 'project', newUri);
4040

4141
// Verify project no longer exists with old URI
4242
const oldProjectAfterUpdate = projectManager.get(oldUri);
@@ -58,7 +58,7 @@ suite('Project Manager Update URI tests', () => {
5858
// Try to update a project that doesn't exist
5959
// This should not throw an error
6060
assert.doesNotThrow(() => {
61-
projectManager.updateProject(oldUri, 'project', newUri);
61+
projectManager.modifyProject(oldUri, 'project', newUri);
6262
}, 'Should handle non-existent project gracefully');
6363

6464
// Verify no project was created

0 commit comments

Comments
 (0)