Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
e95910ad
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,发现更多精彩内容 >>
提交
e95910ad
编写于
4月 30, 2018
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Eliminate CodeEditor
上级
37c7bdb4
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
37 addition
and
71 deletion
+37
-71
src/vs/editor/browser/codeEditor.ts
src/vs/editor/browser/codeEditor.ts
+0
-39
src/vs/editor/browser/widget/codeEditorWidget.ts
src/vs/editor/browser/widget/codeEditorWidget.ts
+8
-3
src/vs/editor/browser/widget/diffEditorWidget.ts
src/vs/editor/browser/widget/diffEditorWidget.ts
+7
-7
src/vs/editor/browser/widget/embeddedCodeEditorWidget.ts
src/vs/editor/browser/widget/embeddedCodeEditorWidget.ts
+3
-3
src/vs/editor/standalone/browser/standaloneCodeEditor.ts
src/vs/editor/standalone/browser/standaloneCodeEditor.ts
+4
-4
src/vs/workbench/browser/parts/editor/textEditor.ts
src/vs/workbench/browser/parts/editor/textEditor.ts
+2
-2
src/vs/workbench/parts/preferences/browser/preferencesEditor.ts
.../workbench/parts/preferences/browser/preferencesEditor.ts
+6
-6
src/vs/workbench/parts/scm/electron-browser/dirtydiffDecorator.ts
...orkbench/parts/scm/electron-browser/dirtydiffDecorator.ts
+3
-3
src/vs/workbench/parts/welcome/walkThrough/electron-browser/walkThroughPart.ts
...s/welcome/walkThrough/electron-browser/walkThroughPart.ts
+4
-4
未找到文件。
src/vs/editor/browser/codeEditor.ts
已删除
100644 → 0
浏览文件 @
37c7bdb4
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'
use strict
'
;
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
ICommandService
}
from
'
vs/platform/commands/common/commands
'
;
import
{
IContextKeyService
}
from
'
vs/platform/contextkey/common/contextkey
'
;
import
{
ICodeEditorService
}
from
'
vs/editor/browser/services/codeEditorService
'
;
import
{
CodeEditorWidget
}
from
'
vs/editor/browser/widget/codeEditorWidget
'
;
import
{
EditorAction
,
EditorExtensionsRegistry
,
IEditorContributionCtor
}
from
'
vs/editor/browser/editorExtensions
'
;
import
{
IEditorOptions
}
from
'
vs/editor/common/config/editorOptions
'
;
import
{
IThemeService
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
INotificationService
}
from
'
vs/platform/notification/common/notification
'
;
export
class
CodeEditor
extends
CodeEditorWidget
{
constructor
(
domElement
:
HTMLElement
,
options
:
IEditorOptions
,
@
IInstantiationService
instantiationService
:
IInstantiationService
,
@
ICodeEditorService
codeEditorService
:
ICodeEditorService
,
@
ICommandService
commandService
:
ICommandService
,
@
IContextKeyService
contextKeyService
:
IContextKeyService
,
@
IThemeService
themeService
:
IThemeService
,
@
INotificationService
notificationService
:
INotificationService
)
{
super
(
domElement
,
options
,
false
,
instantiationService
,
codeEditorService
,
commandService
,
contextKeyService
,
themeService
,
notificationService
);
}
protected
_getContributions
():
IEditorContributionCtor
[]
{
return
EditorExtensionsRegistry
.
getEditorContributions
();
}
protected
_getActions
():
EditorAction
[]
{
return
EditorExtensionsRegistry
.
getEditorActions
();
}
}
src/vs/editor/browser/widget/codeEditorWidget.ts
浏览文件 @
e95910ad
...
...
@@ -52,7 +52,7 @@ import { ClassName } from 'vs/editor/common/model/intervalTree';
let
EDITOR_ID
=
0
;
export
abstract
class
CodeEditorWidget
extends
Disposable
implements
editorBrowser
.
ICodeEditor
{
export
class
CodeEditorWidget
extends
Disposable
implements
editorBrowser
.
ICodeEditor
{
//#region Eventing
private
readonly
_onDidDispose
:
Emitter
<
void
>
=
this
.
_register
(
new
Emitter
<
void
>
());
...
...
@@ -264,8 +264,13 @@ export abstract class CodeEditorWidget extends Disposable implements editorBrows
return
new
Configuration
(
options
,
this
.
domElement
);
}
protected
abstract
_getContributions
():
IEditorContributionCtor
[];
protected
abstract
_getActions
():
EditorAction
[];
protected
_getContributions
():
IEditorContributionCtor
[]
{
return
EditorExtensionsRegistry
.
getEditorContributions
();
}
protected
_getActions
():
EditorAction
[]
{
return
EditorExtensionsRegistry
.
getEditorActions
();
}
public
getId
():
string
{
return
this
.
getEditorType
()
+
'
:
'
+
this
.
id
;
...
...
src/vs/editor/browser/widget/diffEditorWidget.ts
浏览文件 @
e95910ad
...
...
@@ -22,7 +22,7 @@ import { IEditorWorkerService } from 'vs/editor/common/services/editorWorkerServ
import
{
LineDecoration
}
from
'
vs/editor/common/viewLayout/lineDecorations
'
;
import
{
renderViewLine
,
RenderLineInput
}
from
'
vs/editor/common/viewLayout/viewLineRenderer
'
;
import
*
as
editorBrowser
from
'
vs/editor/browser/editorBrowser
'
;
import
{
CodeEditor
}
from
'
vs/editor/browser/codeEditor
'
;
import
{
CodeEditor
Widget
}
from
'
vs/editor/browser/widget/codeEditorWidget
'
;
import
{
Configuration
}
from
'
vs/editor/browser/config/configuration
'
;
import
{
Position
,
IPosition
}
from
'
vs/editor/common/core/position
'
;
import
{
Selection
,
ISelection
}
from
'
vs/editor/common/core/selection
'
;
...
...
@@ -85,7 +85,7 @@ class VisualEditorState {
return
allViewZones
.
filter
((
z
)
=>
!
this
.
_zonesMap
[
String
(
z
.
id
)]);
}
public
clean
(
editor
:
CodeEditor
):
void
{
public
clean
(
editor
:
CodeEditor
Widget
):
void
{
// (1) View zones
if
(
this
.
_zones
.
length
>
0
)
{
editor
.
changeViewZones
((
viewChangeAccessor
:
editorBrowser
.
IViewZoneChangeAccessor
)
=>
{
...
...
@@ -101,7 +101,7 @@ class VisualEditorState {
this
.
_decorations
=
editor
.
deltaDecorations
(
this
.
_decorations
,
[]);
}
public
apply
(
editor
:
CodeEditor
,
overviewRuler
:
editorBrowser
.
IOverviewRuler
,
newDecorations
:
IEditorDiffDecorationsWithZones
,
restoreScrollState
:
boolean
):
void
{
public
apply
(
editor
:
CodeEditor
Widget
,
overviewRuler
:
editorBrowser
.
IOverviewRuler
,
newDecorations
:
IEditorDiffDecorationsWithZones
,
restoreScrollState
:
boolean
):
void
{
const
scrollState
=
restoreScrollState
?
StableEditorScrollState
.
capture
(
editor
)
:
null
;
...
...
@@ -160,12 +160,12 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
private
_reviewHeight
:
number
;
private
readonly
_measureDomElementToken
:
number
;
private
originalEditor
:
CodeEditor
;
private
originalEditor
:
CodeEditor
Widget
;
private
_originalDomNode
:
HTMLElement
;
private
_originalEditorState
:
VisualEditorState
;
private
_originalOverviewRuler
:
editorBrowser
.
IOverviewRuler
;
private
modifiedEditor
:
CodeEditor
;
private
modifiedEditor
:
CodeEditor
Widget
;
private
_modifiedDomNode
:
HTMLElement
;
private
_modifiedEditorState
:
VisualEditorState
;
private
_modifiedOverviewRuler
:
editorBrowser
.
IOverviewRuler
;
...
...
@@ -468,8 +468,8 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
}));
}
protected
_createInnerEditor
(
instantiationService
:
IInstantiationService
,
container
:
HTMLElement
,
options
:
editorOptions
.
IEditorOptions
):
CodeEditor
{
return
instantiationService
.
createInstance
(
CodeEditor
,
container
,
options
);
protected
_createInnerEditor
(
instantiationService
:
IInstantiationService
,
container
:
HTMLElement
,
options
:
editorOptions
.
IEditorOptions
):
CodeEditor
Widget
{
return
instantiationService
.
createInstance
(
CodeEditor
Widget
,
container
,
options
,
false
);
}
public
dispose
():
void
{
...
...
src/vs/editor/browser/widget/embeddedCodeEditorWidget.ts
浏览文件 @
e95910ad
...
...
@@ -10,14 +10,14 @@ import { ICommandService } from 'vs/platform/commands/common/commands';
import
{
IContextKeyService
}
from
'
vs/platform/contextkey/common/contextkey
'
;
import
{
ICodeEditorService
}
from
'
vs/editor/browser/services/codeEditorService
'
;
import
{
ICodeEditor
}
from
'
vs/editor/browser/editorBrowser
'
;
import
{
CodeEditor
}
from
'
vs/editor/browser/codeEditor
'
;
import
{
CodeEditor
Widget
}
from
'
vs/editor/browser/widget/codeEditorWidget
'
;
import
{
IConfigurationChangedEvent
,
IEditorOptions
,
IDiffEditorOptions
}
from
'
vs/editor/common/config/editorOptions
'
;
import
{
IThemeService
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
DiffEditorWidget
}
from
'
vs/editor/browser/widget/diffEditorWidget
'
;
import
{
IEditorWorkerService
}
from
'
vs/editor/common/services/editorWorkerService
'
;
import
{
INotificationService
}
from
'
vs/platform/notification/common/notification
'
;
export
class
EmbeddedCodeEditorWidget
extends
CodeEditor
{
export
class
EmbeddedCodeEditorWidget
extends
CodeEditor
Widget
{
private
_parentEditor
:
ICodeEditor
;
private
_overwriteOptions
:
IEditorOptions
;
...
...
@@ -33,7 +33,7 @@ export class EmbeddedCodeEditorWidget extends CodeEditor {
@
IThemeService
themeService
:
IThemeService
,
@
INotificationService
notificationService
:
INotificationService
)
{
super
(
domElement
,
parentEditor
.
getRawConfiguration
(),
instantiationService
,
codeEditorService
,
commandService
,
contextKeyService
,
themeService
,
notificationService
);
super
(
domElement
,
parentEditor
.
getRawConfiguration
(),
false
,
instantiationService
,
codeEditorService
,
commandService
,
contextKeyService
,
themeService
,
notificationService
);
this
.
_parentEditor
=
parentEditor
;
this
.
_overwriteOptions
=
options
;
...
...
src/vs/editor/standalone/browser/standaloneCodeEditor.ts
浏览文件 @
e95910ad
...
...
@@ -18,7 +18,7 @@ import { ICodeEditorService } from 'vs/editor/browser/services/codeEditorService
import
{
IEditorWorkerService
}
from
'
vs/editor/common/services/editorWorkerService
'
;
import
{
StandaloneKeybindingService
,
applyConfigurationValues
}
from
'
vs/editor/standalone/browser/simpleServices
'
;
import
{
IEditorContextViewService
}
from
'
vs/editor/standalone/browser/standaloneServices
'
;
import
{
CodeEditor
}
from
'
vs/editor/browser/codeEditor
'
;
import
{
CodeEditor
Widget
}
from
'
vs/editor/browser/widget/codeEditorWidget
'
;
import
{
DiffEditorWidget
}
from
'
vs/editor/browser/widget/diffEditorWidget
'
;
import
{
ICodeEditor
,
IDiffEditor
}
from
'
vs/editor/browser/editorBrowser
'
;
import
{
IStandaloneThemeService
}
from
'
vs/editor/standalone/common/standaloneThemeService
'
;
...
...
@@ -153,7 +153,7 @@ function createAriaDomNode() {
/**
* A code editor to be used both by the standalone editor and the standalone diff editor.
*/
export
class
StandaloneCodeEditor
extends
CodeEditor
implements
IStandaloneCodeEditor
{
export
class
StandaloneCodeEditor
extends
CodeEditor
Widget
implements
IStandaloneCodeEditor
{
private
_standaloneKeybindingService
:
StandaloneKeybindingService
;
...
...
@@ -175,7 +175,7 @@ export class StandaloneCodeEditor extends CodeEditor implements IStandaloneCodeE
?
nls
.
localize
(
'
accessibilityHelpMessageIE
'
,
"
Press Ctrl+F1 for Accessibility Options.
"
)
:
nls
.
localize
(
'
accessibilityHelpMessage
'
,
"
Press Alt+F1 for Accessibility Options.
"
)
);
super
(
domElement
,
options
,
instantiationService
,
codeEditorService
,
commandService
,
contextKeyService
,
themeService
,
notificationService
);
super
(
domElement
,
options
,
false
,
instantiationService
,
codeEditorService
,
commandService
,
contextKeyService
,
themeService
,
notificationService
);
if
(
keybindingService
instanceof
StandaloneKeybindingService
)
{
this
.
_standaloneKeybindingService
=
keybindingService
;
...
...
@@ -401,7 +401,7 @@ export class StandaloneDiffEditor extends DiffEditorWidget implements IStandalon
super
.
updateOptions
(
newOptions
);
}
protected
_createInnerEditor
(
instantiationService
:
IInstantiationService
,
container
:
HTMLElement
,
options
:
IEditorOptions
):
CodeEditor
{
protected
_createInnerEditor
(
instantiationService
:
IInstantiationService
,
container
:
HTMLElement
,
options
:
IEditorOptions
):
CodeEditor
Widget
{
return
instantiationService
.
createInstance
(
StandaloneCodeEditor
,
container
,
options
);
}
...
...
src/vs/workbench/browser/parts/editor/textEditor.ts
浏览文件 @
e95910ad
...
...
@@ -12,7 +12,7 @@ import * as objects from 'vs/base/common/objects';
import
*
as
types
from
'
vs/base/common/types
'
;
import
*
as
errors
from
'
vs/base/common/errors
'
;
import
*
as
DOM
from
'
vs/base/browser/dom
'
;
import
{
CodeEditor
}
from
'
vs/editor/browser/codeEditor
'
;
import
{
CodeEditor
Widget
}
from
'
vs/editor/browser/widget/codeEditorWidget
'
;
import
{
EditorInput
,
EditorOptions
,
EditorViewStateMemento
}
from
'
vs/workbench/common/editor
'
;
import
{
BaseEditor
}
from
'
vs/workbench/browser/parts/editor/baseEditor
'
;
import
{
IEditorViewState
,
IEditor
}
from
'
vs/editor/common/editorCommon
'
;
...
...
@@ -182,7 +182,7 @@ export abstract class BaseTextEditor extends BaseEditor {
protected
createEditorControl
(
parent
:
HTMLElement
,
configuration
:
IEditorOptions
):
IEditor
{
// Use a getter for the instantiation service since some subclasses might use scoped instantiation services
return
this
.
instantiationService
.
createInstance
(
CodeEditor
,
parent
,
configuration
);
return
this
.
instantiationService
.
createInstance
(
CodeEditor
Widget
,
parent
,
configuration
,
false
);
}
public
setInput
(
input
:
EditorInput
,
options
?:
EditorOptions
):
TPromise
<
void
>
{
...
...
src/vs/workbench/parts/preferences/browser/preferencesEditor.ts
浏览文件 @
e95910ad
...
...
@@ -20,7 +20,7 @@ import { ResourceEditorModel } from 'vs/workbench/common/editor/resourceEditorMo
import
{
IEditorControl
,
Position
}
from
'
vs/platform/editor/common/editor
'
;
import
*
as
editorCommon
from
'
vs/editor/common/editorCommon
'
;
import
{
BaseTextEditor
}
from
'
vs/workbench/browser/parts/editor/textEditor
'
;
import
{
CodeEditor
}
from
'
vs/editor/browser/codeEditor
'
;
import
{
CodeEditor
Widget
}
from
'
vs/editor/browser/widget/codeEditorWidget
'
;
import
{
IInstantiationService
,
ServicesAccessor
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IPreferencesSearchService
,
...
...
@@ -782,7 +782,7 @@ class SideBySidePreferencesWidget extends Widget {
this
.
defaultPreferencesEditor
=
this
.
_register
(
this
.
instantiationService
.
createInstance
(
DefaultPreferencesEditor
));
this
.
defaultPreferencesEditor
.
create
(
this
.
defaultPreferencesEditorContainer
);
this
.
defaultPreferencesEditor
.
setVisible
(
true
);
(
<
CodeEditor
>
this
.
defaultPreferencesEditor
.
getControl
()).
onDidFocusEditor
(()
=>
this
.
lastFocusedEditor
=
this
.
defaultPreferencesEditor
);
(
<
CodeEditor
Widget
>
this
.
defaultPreferencesEditor
.
getControl
()).
onDidFocusEditor
(()
=>
this
.
lastFocusedEditor
=
this
.
defaultPreferencesEditor
);
this
.
editablePreferencesEditorContainer
=
DOM
.
append
(
parentElement
,
DOM
.
$
(
'
.editable-preferences-editor-container
'
));
this
.
editablePreferencesEditorContainer
.
style
.
position
=
'
absolute
'
;
...
...
@@ -879,7 +879,7 @@ class SideBySidePreferencesWidget extends Widget {
this
.
editablePreferencesEditor
=
editor
;
this
.
editablePreferencesEditor
.
create
(
this
.
editablePreferencesEditorContainer
);
this
.
editablePreferencesEditor
.
setVisible
(
true
);
(
<
CodeEditor
>
this
.
editablePreferencesEditor
.
getControl
()).
onDidFocusEditor
(()
=>
this
.
lastFocusedEditor
=
this
.
editablePreferencesEditor
);
(
<
CodeEditor
Widget
>
this
.
editablePreferencesEditor
.
getControl
()).
onDidFocusEditor
(()
=>
this
.
lastFocusedEditor
=
this
.
editablePreferencesEditor
);
this
.
lastFocusedEditor
=
this
.
editablePreferencesEditor
;
return
editor
;
...
...
@@ -887,7 +887,7 @@ class SideBySidePreferencesWidget extends Widget {
private
updateInput
(
editor
:
BaseEditor
,
input
:
EditorInput
,
editorContributionId
:
string
,
associatedPreferencesModelUri
:
URI
,
options
:
EditorOptions
):
TPromise
<
IPreferencesRenderer
<
ISetting
>>
{
return
editor
.
setInput
(
input
,
options
)
.
then
(()
=>
(
<
CodeEditor
>
editor
.
getControl
()).
getContribution
<
ISettingsEditorContribution
>
(
editorContributionId
).
updatePreferencesRenderer
(
associatedPreferencesModelUri
));
.
then
(()
=>
(
<
CodeEditor
Widget
>
editor
.
getControl
()).
getContribution
<
ISettingsEditorContribution
>
(
editorContributionId
).
updatePreferencesRenderer
(
associatedPreferencesModelUri
));
}
private
createSash
(
parentElement
:
HTMLElement
):
void
{
...
...
@@ -966,7 +966,7 @@ export class DefaultPreferencesEditor extends BaseTextEditor {
}
public
createEditorControl
(
parent
:
HTMLElement
,
configuration
:
IEditorOptions
):
editorCommon
.
IEditor
{
const
editor
=
this
.
instantiationService
.
createInstance
(
DefaultPreferencesCodeEditor
,
parent
,
configuration
);
const
editor
=
this
.
instantiationService
.
createInstance
(
DefaultPreferencesCodeEditor
,
parent
,
configuration
,
false
);
// Inform user about editor being readonly if user starts type
this
.
toUnbind
.
push
(
editor
.
onDidType
(()
=>
this
.
showReadonlyHint
(
editor
)));
...
...
@@ -1030,7 +1030,7 @@ export class DefaultPreferencesEditor extends BaseTextEditor {
}
}
class
DefaultPreferencesCodeEditor
extends
CodeEditor
{
class
DefaultPreferencesCodeEditor
extends
CodeEditor
Widget
{
protected
_getContributions
():
IEditorContributionCtor
[]
{
let
contributions
=
super
.
_getContributions
();
...
...
src/vs/workbench/parts/scm/electron-browser/dirtydiffDecorator.ts
浏览文件 @
e95910ad
...
...
@@ -13,7 +13,7 @@ import { IDisposable, dispose, toDisposable, empty as EmptyDisposable, combinedD
import
{
TPromise
}
from
'
vs/base/common/winjs.base
'
;
import
{
Event
,
Emitter
,
anyEvent
as
anyEvent
,
filterEvent
,
once
}
from
'
vs/base/common/event
'
;
import
*
as
ext
from
'
vs/workbench/common/contributions
'
;
import
{
CodeEditor
}
from
'
vs/editor/browser/codeEditor
'
;
import
{
CodeEditor
Widget
}
from
'
vs/editor/browser/widget/codeEditorWidget
'
;
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
ITextModelService
}
from
'
vs/editor/common/services/resolverService
'
;
import
{
IWorkbenchEditorService
}
from
'
vs/workbench/services/editor/common/editorService
'
;
...
...
@@ -1190,11 +1190,11 @@ export class DirtyDiffWorkbenchController implements ext.IWorkbenchContribution,
.
map
(
e
=>
e
.
getControl
())
// only interested in code editor widgets
.
filter
(
c
=>
c
instanceof
CodeEditor
)
.
filter
(
c
=>
c
instanceof
CodeEditor
Widget
)
// set model registry and map to models
.
map
(
editor
=>
{
const
codeEditor
=
editor
as
CodeEditor
;
const
codeEditor
=
editor
as
CodeEditor
Widget
;
const
controller
=
DirtyDiffController
.
get
(
codeEditor
);
controller
.
modelRegistry
=
this
;
return
codeEditor
.
getModel
();
...
...
src/vs/workbench/parts/welcome/walkThrough/electron-browser/walkThroughPart.ts
浏览文件 @
e95910ad
...
...
@@ -19,7 +19,7 @@ import { WalkThroughInput } from 'vs/workbench/parts/welcome/walkThrough/node/wa
import
{
IOpenerService
}
from
'
vs/platform/opener/common/opener
'
;
import
{
marked
}
from
'
vs/base/common/marked/marked
'
;
import
{
IModelService
}
from
'
vs/editor/common/services/modelService
'
;
import
{
CodeEditor
}
from
'
vs/editor/browser/codeEditor
'
;
import
{
CodeEditor
Widget
}
from
'
vs/editor/browser/widget/codeEditorWidget
'
;
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IKeybindingService
}
from
'
vs/platform/keybinding/common/keybinding
'
;
import
{
localize
}
from
'
vs/nls
'
;
...
...
@@ -55,7 +55,7 @@ interface IWalkThroughEditorViewState {
viewState
:
IViewState
;
}
class
WalkThroughCodeEditor
extends
CodeEditor
{
class
WalkThroughCodeEditor
extends
CodeEditor
Widget
{
constructor
(
domElement
:
HTMLElement
,
...
...
@@ -68,7 +68,7 @@ class WalkThroughCodeEditor extends CodeEditor {
@
IThemeService
themeService
:
IThemeService
,
@
INotificationService
notificationService
:
INotificationService
,
)
{
super
(
domElement
,
options
,
instantiationService
,
codeEditorService
,
commandService
,
contextKeyService
,
themeService
,
notificationService
);
super
(
domElement
,
options
,
false
,
instantiationService
,
codeEditorService
,
commandService
,
contextKeyService
,
themeService
,
notificationService
);
}
getTelemetryData
()
{
...
...
@@ -214,7 +214,7 @@ export class WalkThroughPart extends BaseEditor {
size
(
this
.
content
,
dimension
.
width
,
dimension
.
height
);
this
.
updateSizeClasses
();
this
.
contentDisposables
.
forEach
(
disposable
=>
{
if
(
disposable
instanceof
CodeEditor
)
{
if
(
disposable
instanceof
CodeEditor
Widget
)
{
disposable
.
layout
();
}
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录