Stops using default exports

This commit is contained in:
Eric Amodio
2017-03-03 02:44:07 -05:00
parent 2e2462dd46
commit d389a7b588
28 changed files with 45 additions and 43 deletions

View File

@@ -2,7 +2,7 @@
import { Iterables } from '../system';
import { TextEditor, Uri, window } from 'vscode';
import { ActiveEditorCommand, Commands } from './commands';
import GitProvider, { GitUri } from '../gitProvider';
import { GitProvider, GitUri } from '../gitProvider';
import { Logger } from '../logger';
import { copy } from 'copy-paste';

View File

@@ -2,7 +2,7 @@
import { Iterables } from '../system';
import { TextEditor, Uri, window } from 'vscode';
import { ActiveEditorCommand, Commands } from './commands';
import GitProvider, { GitUri } from '../gitProvider';
import { GitProvider, GitUri } from '../gitProvider';
import { Logger } from '../logger';
import { copy } from 'copy-paste';

View File

@@ -2,7 +2,7 @@
import { commands, TextEditor, Uri, window } from 'vscode';
import { ActiveEditorCommand, Commands } from './commands';
import { BuiltInCommands } from '../constants';
import GitProvider, { GitCommit, GitUri } from '../gitProvider';
import { GitCommit, GitProvider, GitUri } from '../gitProvider';
import { Logger } from '../logger';
import * as path from 'path';

View File

@@ -1,7 +1,7 @@
'use strict';
import { commands, TextEditor, Uri, window } from 'vscode';
import { ActiveEditorCommand, Commands } from './commands';
import GitProvider, { GitCommit, GitUri } from '../gitProvider';
import { GitCommit, GitProvider, GitUri } from '../gitProvider';
import { Logger } from '../logger';
export class DiffLineWithWorkingCommand extends ActiveEditorCommand {

View File

@@ -3,7 +3,7 @@ import { Iterables } from '../system';
import { commands, Range, TextEditor, Uri, window } from 'vscode';
import { ActiveEditorCommand, Commands } from './commands';
import { BuiltInCommands } from '../constants';
import GitProvider, { GitCommit, GitUri } from '../gitProvider';
import { GitCommit, GitProvider, GitUri } from '../gitProvider';
import { Logger } from '../logger';
import * as moment from 'moment';
import * as path from 'path';

View File

@@ -3,7 +3,7 @@ import { Iterables } from '../system';
import { commands, TextEditor, Uri, window } from 'vscode';
import { ActiveEditorCommand, Commands } from './commands';
import { BuiltInCommands } from '../constants';
import GitProvider, { GitCommit, GitUri } from '../gitProvider';
import { GitCommit, GitProvider, GitUri } from '../gitProvider';
import { Logger } from '../logger';
import * as path from 'path';

View File

@@ -1,6 +1,6 @@
'use strict';
import { TextEditor, TextEditorEdit, Uri, window } from 'vscode';
import BlameAnnotationController from '../blameAnnotationController';
import { BlameAnnotationController } from '../blameAnnotationController';
import { Commands, EditorCommand } from './commands';
import { Logger } from '../logger';

View File

@@ -2,7 +2,7 @@
import { commands, Position, Range, TextEditor, TextEditorEdit, Uri, window } from 'vscode';
import { Commands, EditorCommand } from './commands';
import { BuiltInCommands } from '../constants';
import GitProvider, { GitUri } from '../gitProvider';
import { GitProvider, GitUri } from '../gitProvider';
import { Logger } from '../logger';
export class ShowBlameHistoryCommand extends EditorCommand {

View File

@@ -2,7 +2,7 @@
import { commands, Position, Range, TextEditor, TextEditorEdit, Uri, window } from 'vscode';
import { Commands, EditorCommand } from './commands';
import { BuiltInCommands } from '../constants';
import GitProvider, { GitUri } from '../gitProvider';
import { GitProvider, GitUri } from '../gitProvider';
import { Logger } from '../logger';
export class ShowFileHistoryCommand extends EditorCommand {

View File

@@ -2,7 +2,7 @@
import { Iterables } from '../system';
import { commands, TextEditor, Uri, window } from 'vscode';
import { ActiveEditorCommand, Commands } from './commands';
import GitProvider, { GitCommit, GitLogCommit, GitUri } from '../gitProvider';
import { GitCommit, GitLogCommit, GitProvider, GitUri } from '../gitProvider';
import { Logger } from '../logger';
import { CommandQuickPickItem, CommitFileDetailsQuickPick, CommitDetailsQuickPick, CommitWithFileStatusQuickPickItem } from '../quickPicks';

View File

@@ -1,7 +1,7 @@
'use strict';
import { commands, TextEditor, Uri, window } from 'vscode';
import { ActiveEditorCommand, Commands } from './commands';
import GitProvider, { GitCommit, GitUri } from '../gitProvider';
import { GitCommit, GitProvider, GitUri } from '../gitProvider';
import { Logger } from '../logger';
import { CommandQuickPickItem, FileHistoryQuickPick } from '../quickPicks';

View File

@@ -1,7 +1,7 @@
'use strict';
import { commands, TextEditor, Uri, window } from 'vscode';
import { ActiveEditorCommand, Commands } from './commands';
import GitProvider, { GitCommit, GitUri } from '../gitProvider';
import { GitCommit, GitProvider, GitUri } from '../gitProvider';
import { Logger } from '../logger';
import { CommandQuickPickItem, RepoHistoryQuickPick } from '../quickPicks';

View File

@@ -1,7 +1,7 @@
'use strict';
import { TextEditor, Uri, window } from 'vscode';
import { ActiveEditorCommand, Commands } from './commands';
import GitProvider, { GitUri } from '../gitProvider';
import { GitProvider, GitUri } from '../gitProvider';
import { Logger } from '../logger';
import { CommandQuickPickItem, RepoStatusQuickPick } from '../quickPicks';

View File

@@ -1,6 +1,6 @@
'use strict';
import { TextEditor, TextEditorEdit, Uri, window } from 'vscode';
import BlameAnnotationController from '../blameAnnotationController';
import { BlameAnnotationController } from '../blameAnnotationController';
import { Commands, EditorCommand } from './commands';
import { Logger } from '../logger';
@@ -11,6 +11,8 @@ export class ToggleBlameCommand extends EditorCommand {
}
async execute(editor: TextEditor, edit: TextEditorEdit, uri?: Uri, sha?: string): Promise<any> {
if (editor && editor.document && editor.document.isDirty) return undefined;
try {
if (sha) {
return this.annotationController.toggleBlameAnnotation(editor, sha);

View File

@@ -1,7 +1,7 @@
'use strict';
import { TextEditor, TextEditorEdit } from 'vscode';
import { Commands, EditorCommand } from './commands';
import GitProvider from '../gitProvider';
import { GitProvider } from '../gitProvider';
export class ToggleCodeLensCommand extends EditorCommand {