Browse Source

Moves webviews into individual folders

main
Eric Amodio 2 years ago
parent
commit
21c6865226
7 changed files with 773 additions and 773 deletions
  1. +3
    -3
      src/container.ts
  2. +13
    -13
      src/webviews/rebase/rebaseEditor.ts
  3. +5
    -5
      src/webviews/settings/settingsWebview.ts
  4. +4
    -4
      src/webviews/welcome/welcomeWebview.ts

+ 3
- 3
src/container.ts View File

@ -50,9 +50,9 @@ import { TagsView } from './views/tagsView';
import { ViewCommands } from './views/viewCommands'; import { ViewCommands } from './views/viewCommands';
import { ViewFileDecorationProvider } from './views/viewDecorationProvider'; import { ViewFileDecorationProvider } from './views/viewDecorationProvider';
import { VslsController } from './vsls/vsls'; import { VslsController } from './vsls/vsls';
import { RebaseEditorProvider } from './webviews/rebaseEditor';
import { SettingsWebview } from './webviews/settingsWebview';
import { WelcomeWebview } from './webviews/welcomeWebview';
import { RebaseEditorProvider } from './webviews/rebase/rebaseEditor';
import { SettingsWebview } from './webviews/settings/settingsWebview';
import { WelcomeWebview } from './webviews/welcome/welcomeWebview';
export class Container { export class Container {
static #instance: Container | undefined; static #instance: Container | undefined;

src/webviews/rebaseEditor.ts → src/webviews/rebase/rebaseEditor.ts View File

@ -13,18 +13,18 @@ import {
WorkspaceEdit, WorkspaceEdit,
} from 'vscode'; } from 'vscode';
import { getNonce } from '@env/crypto'; import { getNonce } from '@env/crypto';
import { ShowQuickCommitCommand } from '../commands';
import { configuration } from '../configuration';
import { CoreCommands } from '../constants';
import { Container } from '../container';
import { RepositoryChange, RepositoryChangeComparisonMode } from '../git/models';
import { Logger } from '../logger';
import { Messages } from '../messages';
import { executeCoreCommand } from '../system/command';
import { gate } from '../system/decorators/gate';
import { debug } from '../system/decorators/log';
import { join, map } from '../system/iterable';
import { normalizePath } from '../system/path';
import { ShowQuickCommitCommand } from '../../commands';
import { configuration } from '../../configuration';
import { CoreCommands } from '../../constants';
import { Container } from '../../container';
import { RepositoryChange, RepositoryChangeComparisonMode } from '../../git/models';
import { Logger } from '../../logger';
import { Messages } from '../../messages';
import { executeCoreCommand } from '../../system/command';
import { gate } from '../../system/decorators/gate';
import { debug } from '../../system/decorators/log';
import { join, map } from '../../system/iterable';
import { normalizePath } from '../../system/path';
import { import {
Author, Author,
Commit, Commit,
@ -40,7 +40,7 @@ import {
RebaseEntry, RebaseEntry,
RebaseEntryAction, RebaseEntryAction,
RebaseState, RebaseState,
} from './protocol';
} from '../protocol';
let ipcSequence = 0; let ipcSequence = 0;
function nextIpcId() { function nextIpcId() {

src/webviews/settingsWebview.ts → src/webviews/settings/settingsWebview.ts View File

@ -1,15 +1,15 @@
import { commands, Disposable, workspace } from 'vscode'; import { commands, Disposable, workspace } from 'vscode';
import { configuration } from '../configuration';
import { Commands } from '../constants';
import { Container } from '../container';
import { configuration } from '../../configuration';
import { Commands } from '../../constants';
import { Container } from '../../container';
import { import {
IpcMessage, IpcMessage,
onIpcCommand, onIpcCommand,
ReadyCommandType, ReadyCommandType,
SettingsDidRequestJumpToNotificationType, SettingsDidRequestJumpToNotificationType,
SettingsState, SettingsState,
} from './protocol';
import { WebviewBase } from './webviewBase';
} from '../protocol';
import { WebviewBase } from '../webviewBase';
const anchorRegex = /.*?#(.*)/; const anchorRegex = /.*?#(.*)/;

src/webviews/welcomeWebview.ts → src/webviews/welcome/welcomeWebview.ts View File

@ -1,7 +1,7 @@
import { Commands } from '../constants';
import { Container } from '../container';
import { WelcomeState } from './protocol';
import { WebviewBase } from './webviewBase';
import { Commands } from '../../constants';
import { Container } from '../../container';
import { WelcomeState } from '../protocol';
import { WebviewBase } from '../webviewBase';
export class WelcomeWebview extends WebviewBase { export class WelcomeWebview extends WebviewBase {
constructor(container: Container) { constructor(container: Container) {

Loading…
Cancel
Save