提交 8bdcd22b 编写于 作者: M Matt Bierner

Start with no state, instead of empty object state

上级 5ea2f5a7
......@@ -82,7 +82,7 @@ export class WebviewEditorInput extends EditorInput {
public readonly viewType: string,
name: string,
options: WebviewInputOptions,
state: string,
state: string | undefined,
events: WebviewEvents,
extension: undefined | {
readonly location: URI;
......@@ -300,7 +300,7 @@ export class RevivedWebviewEditorInput extends WebviewEditorInput {
viewType: string,
name: string,
options: WebviewInputOptions,
state: string,
state: string | undefined,
events: WebviewEvents,
extension: undefined | {
readonly location: URI;
......
......@@ -146,7 +146,7 @@ export class WebviewEditorService implements IWebviewEditorService {
},
events: WebviewEvents
): WebviewEditorInput {
const webviewInput = this._instantiationService.createInstance(WebviewEditorInput, id, viewType, title, options, {}, events, extension);
const webviewInput = this._instantiationService.createInstance(WebviewEditorInput, id, viewType, title, options, undefined, events, extension);
this._editorService.openEditor(webviewInput, { pinned: true, preserveFocus: showOptions.preserveFocus }, showOptions.group);
return webviewInput;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册