瀏覽代碼

Moves webviews into individual folders

main
Eric Amodio 2 年之前
父節點
當前提交
21c6865226
共有 7 個檔案被更改,包括 773 行新增773 行删除
  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 查看文件

@ -50,9 +50,9 @@ import { TagsView } from './views/tagsView';
import { ViewCommands } from './views/viewCommands';
import { ViewFileDecorationProvider } from './views/viewDecorationProvider';
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 {
static #instance: Container | undefined;

src/webviews/rebaseEditor.ts → src/webviews/rebase/rebaseEditor.ts 查看文件

@ -13,18 +13,18 @@ import {
WorkspaceEdit,
} from 'vscode';
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 {
Author,
Commit,
@ -40,7 +40,7 @@ import {
RebaseEntry,
RebaseEntryAction,
RebaseState,
} from './protocol';
} from '../protocol';
let ipcSequence = 0;
function nextIpcId() {

src/webviews/settingsWebview.ts → src/webviews/settings/settingsWebview.ts 查看文件

@ -1,15 +1,15 @@
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 {
IpcMessage,
onIpcCommand,
ReadyCommandType,
SettingsDidRequestJumpToNotificationType,
SettingsState,
} from './protocol';
import { WebviewBase } from './webviewBase';
} from '../protocol';
import { WebviewBase } from '../webviewBase';
const anchorRegex = /.*?#(.*)/;

src/webviews/welcomeWebview.ts → src/webviews/welcome/welcomeWebview.ts 查看文件

@ -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 {
constructor(container: Container) {

Loading…
取消
儲存