Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
592e0ca2
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
592e0ca2
编写于
10月 11, 2019
作者:
M
Matt Bierner
提交者:
Erich Gamma
10月 14, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove more duplicated types
上级
9a8be02e
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
13 addition
and
25 deletion
+13
-25
src/vs/workbench/contrib/webview/browser/dynamicWebviewEditorOverlay.ts
...ch/contrib/webview/browser/dynamicWebviewEditorOverlay.ts
+2
-5
src/vs/workbench/contrib/webview/browser/webview.ts
src/vs/workbench/contrib/webview/browser/webview.ts
+6
-4
src/vs/workbench/contrib/webview/browser/webviewElement.ts
src/vs/workbench/contrib/webview/browser/webviewElement.ts
+2
-5
src/vs/workbench/contrib/webview/browser/webviewWorkbenchService.ts
...kbench/contrib/webview/browser/webviewWorkbenchService.ts
+1
-6
src/vs/workbench/contrib/webview/electron-browser/webviewElement.ts
...kbench/contrib/webview/electron-browser/webviewElement.ts
+2
-5
未找到文件。
src/vs/workbench/contrib/webview/browser/dynamicWebviewEditorOverlay.ts
浏览文件 @
592e0ca2
...
...
@@ -8,7 +8,7 @@ import { Emitter, Event } from 'vs/base/common/event';
import
{
Disposable
,
DisposableStore
,
MutableDisposable
,
toDisposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
URI
}
from
'
vs/base/common/uri
'
;
import
{
ExtensionIdentifier
}
from
'
vs/platform/extensions/common/extensions
'
;
import
{
IWebviewService
,
Webview
,
WebviewContentOptions
,
WebviewEditorOverlay
,
WebviewElement
,
WebviewOptions
}
from
'
vs/workbench/contrib/webview/browser/webview
'
;
import
{
IWebviewService
,
Webview
,
WebviewContentOptions
,
WebviewEditorOverlay
,
WebviewElement
,
WebviewOptions
,
WebviewExtensionDescription
}
from
'
vs/workbench/contrib/webview/browser/webview
'
;
import
{
IWorkbenchLayoutService
,
Parts
}
from
'
vs/workbench/services/layout/browser/layoutService
'
;
import
{
Dimension
}
from
'
vs/base/browser/dom
'
;
import
{
assertIsDefined
}
from
'
vs/base/common/types
'
;
...
...
@@ -25,10 +25,7 @@ export class DynamicWebviewEditorOverlay extends Disposable implements WebviewEd
private
_html
:
string
=
''
;
private
_initialScrollProgress
:
number
=
0
;
private
_state
:
string
|
undefined
=
undefined
;
private
_extension
:
{
readonly
location
:
URI
;
readonly
id
?:
ExtensionIdentifier
;
}
|
undefined
;
private
_extension
:
WebviewExtensionDescription
|
undefined
;
private
_owner
:
any
=
undefined
;
...
...
src/vs/workbench/contrib/webview/browser/webview.ts
浏览文件 @
592e0ca2
...
...
@@ -54,14 +54,16 @@ export interface WebviewContentOptions {
readonly
enableCommandUris
?:
boolean
;
}
export
interface
WebviewExtensionDescription
{
readonly
location
:
URI
;
readonly
id
:
ExtensionIdentifier
;
}
export
interface
Webview
extends
IDisposable
{
html
:
string
;
contentOptions
:
WebviewContentOptions
;
extension
:
{
readonly
location
:
URI
;
readonly
id
?:
ExtensionIdentifier
;
}
|
undefined
;
extension
:
WebviewExtensionDescription
|
undefined
;
initialScrollProgress
:
number
;
state
:
string
|
undefined
;
...
...
src/vs/workbench/contrib/webview/browser/webviewElement.ts
浏览文件 @
592e0ca2
...
...
@@ -12,7 +12,7 @@ import { IConfigurationService } from 'vs/platform/configuration/common/configur
import
{
ExtensionIdentifier
}
from
'
vs/platform/extensions/common/extensions
'
;
import
{
IFileService
}
from
'
vs/platform/files/common/files
'
;
import
{
ITunnelService
}
from
'
vs/platform/remote/common/tunnel
'
;
import
{
Webview
,
WebviewContentOptions
,
WebviewOptions
}
from
'
vs/workbench/contrib/webview/browser/webview
'
;
import
{
Webview
,
WebviewContentOptions
,
WebviewOptions
,
WebviewExtensionDescription
}
from
'
vs/workbench/contrib/webview/browser/webview
'
;
import
{
areWebviewInputOptionsEqual
}
from
'
vs/workbench/contrib/webview/browser/webviewWorkbenchService
'
;
import
{
WebviewPortMappingManager
}
from
'
vs/workbench/contrib/webview/common/portMapping
'
;
import
{
loadLocalResource
}
from
'
vs/workbench/contrib/webview/common/resourceLoader
'
;
...
...
@@ -35,10 +35,7 @@ export class IFrameWebview extends Disposable implements Webview {
private
readonly
_portMappingManager
:
WebviewPortMappingManager
;
public
extension
:
{
readonly
location
:
URI
;
readonly
id
?:
ExtensionIdentifier
;
}
|
undefined
;
public
extension
:
WebviewExtensionDescription
|
undefined
;
constructor
(
private
readonly
id
:
string
,
...
...
src/vs/workbench/contrib/webview/browser/webviewWorkbenchService.ts
浏览文件 @
592e0ca2
...
...
@@ -15,7 +15,7 @@ import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
import
{
createDecorator
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IWorkspaceContextService
}
from
'
vs/platform/workspace/common/workspace
'
;
import
{
GroupIdentifier
}
from
'
vs/workbench/common/editor
'
;
import
{
IWebviewService
,
WebviewContentOptions
,
WebviewEditorOverlay
,
WebviewOptions
}
from
'
vs/workbench/contrib/webview/browser/webview
'
;
import
{
IWebviewService
,
WebviewContentOptions
,
WebviewEditorOverlay
,
WebviewOptions
,
WebviewExtensionDescription
}
from
'
vs/workbench/contrib/webview/browser/webview
'
;
import
{
IEditorGroup
,
IEditorGroupsService
}
from
'
vs/workbench/services/editor/common/editorGroupsService
'
;
import
{
ACTIVE_GROUP_TYPE
,
IEditorService
,
SIDE_GROUP_TYPE
}
from
'
vs/workbench/services/editor/common/editorService
'
;
import
{
WebviewInput
}
from
'
./webviewEditorInput
'
;
...
...
@@ -44,11 +44,6 @@ export function areWebviewInputOptionsEqual(a: WebviewInputOptions, b: WebviewIn
&&
equals
(
a
.
portMapping
,
b
.
portMapping
,
(
a
,
b
)
=>
a
.
extensionHostPort
===
b
.
extensionHostPort
&&
a
.
webviewPort
===
b
.
webviewPort
);
}
export
interface
WebviewExtensionDescription
{
readonly
location
:
URI
;
readonly
id
:
ExtensionIdentifier
;
}
export
interface
IWebviewWorkbenchService
{
_serviceBrand
:
undefined
;
...
...
src/vs/workbench/contrib/webview/electron-browser/webviewElement.ts
浏览文件 @
592e0ca2
...
...
@@ -18,7 +18,7 @@ import { IInstantiationService } from 'vs/platform/instantiation/common/instanti
import
{
ITunnelService
}
from
'
vs/platform/remote/common/tunnel
'
;
import
{
ITelemetryService
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
IThemeService
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
Webview
,
WebviewContentOptions
,
WebviewOptions
}
from
'
vs/workbench/contrib/webview/browser/webview
'
;
import
{
Webview
,
WebviewContentOptions
,
WebviewOptions
,
WebviewExtensionDescription
}
from
'
vs/workbench/contrib/webview/browser/webview
'
;
import
{
WebviewPortMappingManager
}
from
'
vs/workbench/contrib/webview/common/portMapping
'
;
import
{
WebviewResourceScheme
}
from
'
vs/workbench/contrib/webview/common/resourceLoader
'
;
import
{
WebviewThemeDataProvider
}
from
'
vs/workbench/contrib/webview/common/themeing
'
;
...
...
@@ -247,10 +247,7 @@ export class ElectronWebviewBasedWebview extends Disposable implements Webview,
private
readonly
_onDidFocus
=
this
.
_register
(
new
Emitter
<
void
>
());
public
readonly
onDidFocus
:
Event
<
void
>
=
this
.
_onDidFocus
.
event
;
public
extension
:
{
readonly
location
:
URI
;
readonly
id
?:
ExtensionIdentifier
;
}
|
undefined
;
public
extension
:
WebviewExtensionDescription
|
undefined
;
constructor
(
options
:
WebviewOptions
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录