fix something

This commit is contained in:
kingwl 2020-05-11 22:57:34 +08:00
parent b24cb8b47d
commit 31ee5b9644
2 changed files with 3 additions and 4 deletions

View file

@ -19,7 +19,6 @@ import { grep, isDescendant, pathEquals } from './util';
import { Log, LogLevel } from './log';
import { GitTimelineItem } from './timelineProvider';
import { throttle, debounce } from './decorators';
import { URI } from 'vscode-uri';
const localize = nls.loadMessageBundle();
@ -932,7 +931,7 @@ export class CommandCenter {
}
@command('git.rename', { repository: true })
async rename(repository: Repository, fromUri: URI): Promise<void> {
async rename(repository: Repository, fromUri: Uri): Promise<void> {
this.outputChannel.appendLine(`git.rename ${fromUri.fsPath}`);
const rootPath = workspace.rootPath;

View file

@ -7,5 +7,5 @@
//
// Proper fix: https://github.com/microsoft/TypeScript/issues/31535
declare let TextDecoder: typeof import('util').TextDecoder;
declare let TextEncoder: typeof import('util').TextEncoder;
declare var TextDecoder: typeof import('util').TextDecoder;
declare var TextEncoder: typeof import('util').TextEncoder;