mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Rename webviewInput to webviewEditorInput
This commit is contained in:
@@ -13,7 +13,7 @@ import { ILifecycleService } from 'vs/platform/lifecycle/common/lifecycle';
|
|||||||
import { IOpenerService } from 'vs/platform/opener/common/opener';
|
import { IOpenerService } from 'vs/platform/opener/common/opener';
|
||||||
import { ExtHostContext, ExtHostWebviewsShape, IExtHostContext, MainContext, MainThreadWebviewsShape, WebviewHandle } from 'vs/workbench/api/node/extHost.protocol';
|
import { ExtHostContext, ExtHostWebviewsShape, IExtHostContext, MainContext, MainThreadWebviewsShape, WebviewHandle } from 'vs/workbench/api/node/extHost.protocol';
|
||||||
import { WebviewEditor } from 'vs/workbench/parts/webview/electron-browser/webviewEditor';
|
import { WebviewEditor } from 'vs/workbench/parts/webview/electron-browser/webviewEditor';
|
||||||
import { WebviewEditorInput } from 'vs/workbench/parts/webview/electron-browser/webviewInput';
|
import { WebviewEditorInput } from 'vs/workbench/parts/webview/electron-browser/webviewEditorInput';
|
||||||
import { IWebviewEditorService, WebviewInputOptions, WebviewReviver } from 'vs/workbench/parts/webview/electron-browser/webviewEditorService';
|
import { IWebviewEditorService, WebviewInputOptions, WebviewReviver } from 'vs/workbench/parts/webview/electron-browser/webviewEditorService';
|
||||||
import { IWorkbenchEditorService } from 'vs/workbench/services/editor/common/editorService';
|
import { IWorkbenchEditorService } from 'vs/workbench/services/editor/common/editorService';
|
||||||
import { IExtensionService } from 'vs/workbench/services/extensions/common/extensions';
|
import { IExtensionService } from 'vs/workbench/services/extensions/common/extensions';
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import { IWebviewEditorService } from 'vs/workbench/parts/webview/electron-brows
|
|||||||
import { IWorkbenchEditorService } from 'vs/workbench/services/editor/common/editorService';
|
import { IWorkbenchEditorService } from 'vs/workbench/services/editor/common/editorService';
|
||||||
import { KeybindingIO } from 'vs/workbench/services/keybinding/common/keybindingIO';
|
import { KeybindingIO } from 'vs/workbench/services/keybinding/common/keybindingIO';
|
||||||
import { Position } from 'vs/platform/editor/common/editor';
|
import { Position } from 'vs/platform/editor/common/editor';
|
||||||
import { WebviewEditorInput } from 'vs/workbench/parts/webview/electron-browser/webviewInput';
|
import { WebviewEditorInput } from 'vs/workbench/parts/webview/electron-browser/webviewEditorInput';
|
||||||
|
|
||||||
function renderBody(
|
function renderBody(
|
||||||
body: string,
|
body: string,
|
||||||
|
|||||||
@@ -13,12 +13,12 @@ import { Registry } from 'vs/platform/registry/common/platform';
|
|||||||
import { EditorDescriptor, IEditorRegistry, Extensions as EditorExtensions } from 'vs/workbench/browser/editor';
|
import { EditorDescriptor, IEditorRegistry, Extensions as EditorExtensions } from 'vs/workbench/browser/editor';
|
||||||
import { IWorkbenchActionRegistry, Extensions as ActionExtensions } from 'vs/workbench/common/actions';
|
import { IWorkbenchActionRegistry, Extensions as ActionExtensions } from 'vs/workbench/common/actions';
|
||||||
import { IEditorInputFactoryRegistry, Extensions as EditorInputExtensions } from 'vs/workbench/common/editor';
|
import { IEditorInputFactoryRegistry, Extensions as EditorInputExtensions } from 'vs/workbench/common/editor';
|
||||||
import { WebviewInputFactory } from 'vs/workbench/parts/webview/electron-browser/webviewInputFactory';
|
import { WebviewEditorInputFactory } from 'vs/workbench/parts/webview/electron-browser/webviewEditorInputFactory';
|
||||||
import { KEYBINDING_CONTEXT_WEBVIEWEDITOR_FIND_WIDGET_INPUT_FOCUSED, KEYBINDING_CONTEXT_WEBVIEWEDITOR_FOCUS, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_VISIBLE } from './baseWebviewEditor';
|
import { KEYBINDING_CONTEXT_WEBVIEWEDITOR_FIND_WIDGET_INPUT_FOCUSED, KEYBINDING_CONTEXT_WEBVIEWEDITOR_FOCUS, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_VISIBLE } from './baseWebviewEditor';
|
||||||
import { HideWebViewEditorFindCommand, OpenWebviewDeveloperToolsAction, ReloadWebviewAction, ShowWebViewEditorFindTermCommand, ShowWebViewEditorFindWidgetCommand } from './webviewCommands';
|
import { HideWebViewEditorFindCommand, OpenWebviewDeveloperToolsAction, ReloadWebviewAction, ShowWebViewEditorFindTermCommand, ShowWebViewEditorFindWidgetCommand } from './webviewCommands';
|
||||||
import { WebviewEditor } from './webviewEditor';
|
import { WebviewEditor } from './webviewEditor';
|
||||||
import { IWebviewEditorService, WebviewEditorService } from './webviewEditorService';
|
import { IWebviewEditorService, WebviewEditorService } from './webviewEditorService';
|
||||||
import { WebviewEditorInput } from './webviewInput';
|
import { WebviewEditorInput } from './webviewEditorInput';
|
||||||
|
|
||||||
(Registry.as<IEditorRegistry>(EditorExtensions.Editors)).registerEditor(new EditorDescriptor(
|
(Registry.as<IEditorRegistry>(EditorExtensions.Editors)).registerEditor(new EditorDescriptor(
|
||||||
WebviewEditor,
|
WebviewEditor,
|
||||||
@@ -27,8 +27,8 @@ import { WebviewEditorInput } from './webviewInput';
|
|||||||
[new SyncDescriptor(WebviewEditorInput)]);
|
[new SyncDescriptor(WebviewEditorInput)]);
|
||||||
|
|
||||||
Registry.as<IEditorInputFactoryRegistry>(EditorInputExtensions.EditorInputFactories).registerEditorInputFactory(
|
Registry.as<IEditorInputFactoryRegistry>(EditorInputExtensions.EditorInputFactories).registerEditorInputFactory(
|
||||||
WebviewInputFactory.ID,
|
WebviewEditorInputFactory.ID,
|
||||||
WebviewInputFactory);
|
WebviewEditorInputFactory);
|
||||||
|
|
||||||
registerSingleton(IWebviewEditorService, WebviewEditorService);
|
registerSingleton(IWebviewEditorService, WebviewEditorService);
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import { IEnvironmentService } from 'vs/platform/environment/common/environment'
|
|||||||
import { IWorkspaceContextService } from 'vs/platform/workspace/common/workspace';
|
import { IWorkspaceContextService } from 'vs/platform/workspace/common/workspace';
|
||||||
import * as DOM from 'vs/base/browser/dom';
|
import * as DOM from 'vs/base/browser/dom';
|
||||||
import { Event, Emitter } from 'vs/base/common/event';
|
import { Event, Emitter } from 'vs/base/common/event';
|
||||||
import { WebviewEditorInput } from 'vs/workbench/parts/webview/electron-browser/webviewInput';
|
import { WebviewEditorInput } from 'vs/workbench/parts/webview/electron-browser/webviewEditorInput';
|
||||||
import URI from 'vs/base/common/uri';
|
import URI from 'vs/base/common/uri';
|
||||||
|
|
||||||
export class WebviewEditor extends BaseWebviewEditor {
|
export class WebviewEditor extends BaseWebviewEditor {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
|
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
|
||||||
import { IEditorInputFactory } from 'vs/workbench/common/editor';
|
import { IEditorInputFactory } from 'vs/workbench/common/editor';
|
||||||
import { IWebviewEditorService, WebviewInputOptions } from './webviewEditorService';
|
import { IWebviewEditorService, WebviewInputOptions } from './webviewEditorService';
|
||||||
import { WebviewEditorInput } from './webviewInput';
|
import { WebviewEditorInput } from './webviewEditorInput';
|
||||||
|
|
||||||
interface SerializedWebview {
|
interface SerializedWebview {
|
||||||
readonly viewType: string;
|
readonly viewType: string;
|
||||||
@@ -18,7 +18,7 @@ interface SerializedWebview {
|
|||||||
readonly state: any;
|
readonly state: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class WebviewInputFactory implements IEditorInputFactory {
|
export class WebviewEditorInputFactory implements IEditorInputFactory {
|
||||||
|
|
||||||
public static readonly ID = WebviewEditorInput.typeId;
|
public static readonly ID = WebviewEditorInput.typeId;
|
||||||
|
|
||||||
@@ -9,7 +9,7 @@ import { IInstantiationService, createDecorator } from 'vs/platform/instantiatio
|
|||||||
import { IWorkbenchEditorService } from 'vs/workbench/services/editor/common/editorService';
|
import { IWorkbenchEditorService } from 'vs/workbench/services/editor/common/editorService';
|
||||||
import { IEditorGroupService } from 'vs/workbench/services/group/common/groupService';
|
import { IEditorGroupService } from 'vs/workbench/services/group/common/groupService';
|
||||||
import * as vscode from 'vscode';
|
import * as vscode from 'vscode';
|
||||||
import { WebviewEditorInput } from './webviewInput';
|
import { WebviewEditorInput } from './webviewEditorInput';
|
||||||
import { TPromise } from 'vs/base/common/winjs.base';
|
import { TPromise } from 'vs/base/common/winjs.base';
|
||||||
|
|
||||||
export const IWebviewEditorService = createDecorator<IWebviewEditorService>('webviewEditorService');
|
export const IWebviewEditorService = createDecorator<IWebviewEditorService>('webviewEditorService');
|
||||||
|
|||||||
Reference in New Issue
Block a user