Skip to content

Commit ba91858

Browse files
committed
disable move to existing file as it is still wip
1 parent a74f8d0 commit ba91858

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/specialCommands.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,9 @@ export default () => {
310310
const selectedFilePath = await pickFileWithQuickPick(fileNames)
311311
if (!selectedFilePath) return
312312
const document = await vscode.workspace.openTextDocument(vscode.Uri.file(selectedFilePath))
313-
const outline = await vscode.commands.executeCommand('vscode.executeDocumentSymbolProvider', document.uri)
313+
// const outline = await vscode.commands.executeCommand('vscode.executeDocumentSymbolProvider', document.uri)
314+
314315
const currentEditorPath = getTsLikePath(vscode.window.activeTextEditor!.document.uri)
315-
// currently ignoring other files due to https://github.com/microsoft/TypeScript/issues/32344
316-
// TODO-high it ignores any updates in https://github.com/microsoft/TypeScript/blob/20182cf8485ca5cf360d9396ad25d939b848a0ec/src/services/refactors/moveToNewFile.ts#L290
317316
const currentFileEdits = [...fileEdits.find(fileEdit => fileEdit.fileName === currentEditorPath)!.textChanges]
318317
const textChangeIndexToPatch = currentFileEdits.findIndex(currentFileEdit => currentFileEdit.newText.trim())
319318
const { newText: updateImportText } = currentFileEdits[textChangeIndexToPatch]!
@@ -384,11 +383,11 @@ export default () => {
384383
}
385384

386385
if (moveToExistingFile) {
387-
codeActions.push({
388-
title: `Move to existing file`,
389-
command: getCommand({ moveToExistingFile }),
390-
kind: vscode.CodeActionKind.Refactor.append('move'),
391-
})
386+
// codeActions.push({
387+
// title: `Move to existing file`,
388+
// command: getCommand({ moveToExistingFile }),
389+
// kind: vscode.CodeActionKind.Refactor.append('move'),
390+
// })
392391
}
393392

394393
return codeActions

0 commit comments

Comments
 (0)