Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
adcf6b2d
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,体验更适合开发者的 AI 搜索 >>
提交
adcf6b2d
编写于
3月 14, 2018
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mark public event properties readonly
上级
585cda3e
变更
25
隐藏空白更改
内联
并排
Showing
25 changed file
with
62 addition
and
62 deletion
+62
-62
src/vs/base/browser/browser.ts
src/vs/base/browser/browser.ts
+3
-3
src/vs/base/browser/ui/findinput/findInput.ts
src/vs/base/browser/ui/findinput/findInput.ts
+11
-11
src/vs/base/browser/ui/inputbox/inputBox.ts
src/vs/base/browser/ui/inputbox/inputBox.ts
+2
-2
src/vs/base/browser/ui/scrollbar/scrollableElement.ts
src/vs/base/browser/ui/scrollbar/scrollableElement.ts
+1
-1
src/vs/base/common/scrollable.ts
src/vs/base/common/scrollable.ts
+1
-1
src/vs/editor/browser/config/configuration.ts
src/vs/editor/browser/config/configuration.ts
+1
-1
src/vs/editor/browser/controller/textAreaInput.ts
src/vs/editor/browser/controller/textAreaInput.ts
+11
-11
src/vs/editor/browser/widget/codeEditorWidget.ts
src/vs/editor/browser/widget/codeEditorWidget.ts
+1
-1
src/vs/editor/common/config/commonEditorConfig.ts
src/vs/editor/common/config/commonEditorConfig.ts
+2
-2
src/vs/editor/common/config/editorZoom.ts
src/vs/editor/common/config/editorZoom.ts
+1
-1
src/vs/editor/common/modes/languageConfigurationRegistry.ts
src/vs/editor/common/modes/languageConfigurationRegistry.ts
+1
-1
src/vs/editor/common/modes/modesRegistry.ts
src/vs/editor/common/modes/modesRegistry.ts
+1
-1
src/vs/editor/common/modes/tokenizationRegistry.ts
src/vs/editor/common/modes/tokenizationRegistry.ts
+1
-1
src/vs/editor/common/view/minimapCharRenderer.ts
src/vs/editor/common/view/minimapCharRenderer.ts
+1
-1
src/vs/editor/standalone/browser/simpleServices.ts
src/vs/editor/standalone/browser/simpleServices.ts
+1
-1
src/vs/editor/standalone/test/browser/standaloneLanguages.test.ts
...ditor/standalone/test/browser/standaloneLanguages.test.ts
+1
-1
src/vs/platform/extensionManagement/common/extensionEnablementService.ts
.../extensionManagement/common/extensionEnablementService.ts
+1
-1
src/vs/workbench/parts/debug/test/common/mockDebug.ts
src/vs/workbench/parts/debug/test/common/mockDebug.ts
+1
-1
src/vs/workbench/parts/preferences/browser/preferencesEditor.ts
.../workbench/parts/preferences/browser/preferencesEditor.ts
+1
-1
src/vs/workbench/parts/preferences/browser/preferencesRenderers.ts
...rkbench/parts/preferences/browser/preferencesRenderers.ts
+1
-1
src/vs/workbench/parts/preferences/browser/preferencesWidgets.ts
...workbench/parts/preferences/browser/preferencesWidgets.ts
+3
-3
src/vs/workbench/parts/search/browser/searchWidget.ts
src/vs/workbench/parts/search/browser/searchWidget.ts
+6
-6
src/vs/workbench/parts/search/common/searchModel.ts
src/vs/workbench/parts/search/common/searchModel.ts
+6
-6
src/vs/workbench/services/keybinding/electron-browser/keybindingService.ts
...services/keybinding/electron-browser/keybindingService.ts
+1
-1
src/vs/workbench/services/textMate/electron-browser/TMSyntax.ts
.../workbench/services/textMate/electron-browser/TMSyntax.ts
+2
-2
未找到文件。
src/vs/base/browser/browser.ts
浏览文件 @
adcf6b2d
...
...
@@ -17,7 +17,7 @@ class WindowManager {
private
_lastZoomLevelChangeTime
:
number
=
0
;
private
_onDidChangeZoomLevel
:
Emitter
<
number
>
=
new
Emitter
<
number
>
();
public
onDidChangeZoomLevel
:
Event
<
number
>
=
this
.
_onDidChangeZoomLevel
.
event
;
public
readonly
onDidChangeZoomLevel
:
Event
<
number
>
=
this
.
_onDidChangeZoomLevel
.
event
;
public
getZoomLevel
():
number
{
return
this
.
_zoomLevel
;
}
...
...
@@ -63,7 +63,7 @@ class WindowManager {
private
_fullscreen
:
boolean
;
private
_onDidChangeFullscreen
:
Emitter
<
void
>
=
new
Emitter
<
void
>
();
public
onDidChangeFullscreen
:
Event
<
void
>
=
this
.
_onDidChangeFullscreen
.
event
;
public
readonly
onDidChangeFullscreen
:
Event
<
void
>
=
this
.
_onDidChangeFullscreen
.
event
;
public
setFullscreen
(
fullscreen
:
boolean
):
void
{
if
(
this
.
_fullscreen
===
fullscreen
)
{
return
;
...
...
@@ -80,7 +80,7 @@ class WindowManager {
private
_accessibilitySupport
=
Platform
.
AccessibilitySupport
.
Unknown
;
private
_onDidChangeAccessibilitySupport
:
Emitter
<
void
>
=
new
Emitter
<
void
>
();
public
onDidChangeAccessibilitySupport
:
Event
<
void
>
=
this
.
_onDidChangeAccessibilitySupport
.
event
;
public
readonly
onDidChangeAccessibilitySupport
:
Event
<
void
>
=
this
.
_onDidChangeAccessibilitySupport
.
event
;
public
setAccessibilitySupport
(
accessibilitySupport
:
Platform
.
AccessibilitySupport
):
void
{
if
(
this
.
_accessibilitySupport
===
accessibilitySupport
)
{
return
;
...
...
src/vs/base/browser/ui/findinput/findInput.ts
浏览文件 @
adcf6b2d
...
...
@@ -64,23 +64,23 @@ export class FindInput extends Widget {
public
domNode
:
HTMLElement
;
public
inputBox
:
InputBox
;
private
_onDidOptionChange
=
this
.
_register
(
new
Emitter
<
boolean
>
());
public
onDidOptionChange
:
Event
<
boolean
/* via keyboard */
>
=
this
.
_onDidOptionChange
.
event
;
private
readonly
_onDidOptionChange
=
this
.
_register
(
new
Emitter
<
boolean
>
());
public
readonly
onDidOptionChange
:
Event
<
boolean
/* via keyboard */
>
=
this
.
_onDidOptionChange
.
event
;
private
_onKeyDown
=
this
.
_register
(
new
Emitter
<
IKeyboardEvent
>
());
public
onKeyDown
:
Event
<
IKeyboardEvent
>
=
this
.
_onKeyDown
.
event
;
private
readonly
_onKeyDown
=
this
.
_register
(
new
Emitter
<
IKeyboardEvent
>
());
public
readonly
onKeyDown
:
Event
<
IKeyboardEvent
>
=
this
.
_onKeyDown
.
event
;
private
_onMouseDown
=
this
.
_register
(
new
Emitter
<
IMouseEvent
>
());
public
onMouseDown
:
Event
<
IMouseEvent
>
=
this
.
_onMouseDown
.
event
;
private
readonly
_onMouseDown
=
this
.
_register
(
new
Emitter
<
IMouseEvent
>
());
public
readonly
onMouseDown
:
Event
<
IMouseEvent
>
=
this
.
_onMouseDown
.
event
;
private
_onInput
=
this
.
_register
(
new
Emitter
<
void
>
());
public
onInput
:
Event
<
void
>
=
this
.
_onInput
.
event
;
private
readonly
_onInput
=
this
.
_register
(
new
Emitter
<
void
>
());
public
readonly
onInput
:
Event
<
void
>
=
this
.
_onInput
.
event
;
private
_onKeyUp
=
this
.
_register
(
new
Emitter
<
IKeyboardEvent
>
());
public
onKeyUp
:
Event
<
IKeyboardEvent
>
=
this
.
_onKeyUp
.
event
;
private
readonly
_onKeyUp
=
this
.
_register
(
new
Emitter
<
IKeyboardEvent
>
());
public
readonly
onKeyUp
:
Event
<
IKeyboardEvent
>
=
this
.
_onKeyUp
.
event
;
private
_onCaseSensitiveKeyDown
=
this
.
_register
(
new
Emitter
<
IKeyboardEvent
>
());
public
onCaseSensitiveKeyDown
:
Event
<
IKeyboardEvent
>
=
this
.
_onCaseSensitiveKeyDown
.
event
;
public
readonly
onCaseSensitiveKeyDown
:
Event
<
IKeyboardEvent
>
=
this
.
_onCaseSensitiveKeyDown
.
event
;
constructor
(
parent
:
HTMLElement
,
contextViewProvider
:
IContextViewProvider
,
options
?:
IFindInputOptions
)
{
super
();
...
...
src/vs/base/browser/ui/inputbox/inputBox.ts
浏览文件 @
adcf6b2d
...
...
@@ -104,10 +104,10 @@ export class InputBox extends Widget {
private
inputValidationErrorBackground
:
Color
;
private
_onDidChange
=
this
.
_register
(
new
Emitter
<
string
>
());
public
onDidChange
:
Event
<
string
>
=
this
.
_onDidChange
.
event
;
public
readonly
onDidChange
:
Event
<
string
>
=
this
.
_onDidChange
.
event
;
private
_onDidHeightChange
=
this
.
_register
(
new
Emitter
<
number
>
());
public
onDidHeightChange
:
Event
<
number
>
=
this
.
_onDidHeightChange
.
event
;
public
readonly
onDidHeightChange
:
Event
<
number
>
=
this
.
_onDidHeightChange
.
event
;
constructor
(
container
:
HTMLElement
,
contextViewProvider
:
IContextViewProvider
,
options
?:
IInputOptions
)
{
super
();
...
...
src/vs/base/browser/ui/scrollbar/scrollableElement.ts
浏览文件 @
adcf6b2d
...
...
@@ -164,7 +164,7 @@ export abstract class AbstractScrollableElement extends Widget {
private
_shouldRender
:
boolean
;
private
readonly
_onScroll
=
this
.
_register
(
new
Emitter
<
ScrollEvent
>
());
public
onScroll
:
Event
<
ScrollEvent
>
=
this
.
_onScroll
.
event
;
public
readonly
onScroll
:
Event
<
ScrollEvent
>
=
this
.
_onScroll
.
event
;
protected
constructor
(
element
:
HTMLElement
,
options
:
ScrollableElementCreationOptions
,
scrollable
?:
Scrollable
)
{
super
();
...
...
src/vs/base/common/scrollable.ts
浏览文件 @
adcf6b2d
...
...
@@ -186,7 +186,7 @@ export class Scrollable extends Disposable {
private
_smoothScrolling
:
SmoothScrollingOperation
;
private
_onScroll
=
this
.
_register
(
new
Emitter
<
ScrollEvent
>
());
public
onScroll
:
Event
<
ScrollEvent
>
=
this
.
_onScroll
.
event
;
public
readonly
onScroll
:
Event
<
ScrollEvent
>
=
this
.
_onScroll
.
event
;
constructor
(
smoothScrollDuration
:
number
,
scheduleAtNextAnimationFrame
:
(
callback
:
()
=>
void
)
=>
IDisposable
)
{
super
();
...
...
src/vs/editor/browser/config/configuration.ts
浏览文件 @
adcf6b2d
...
...
@@ -102,7 +102,7 @@ class CSSBasedConfiguration extends Disposable {
private
_evictUntrustedReadingsTimeout
:
number
;
private
_onDidChange
=
this
.
_register
(
new
Emitter
<
void
>
());
public
onDidChange
:
Event
<
void
>
=
this
.
_onDidChange
.
event
;
public
readonly
onDidChange
:
Event
<
void
>
=
this
.
_onDidChange
.
event
;
constructor
()
{
super
();
...
...
src/vs/editor/browser/controller/textAreaInput.ts
浏览文件 @
adcf6b2d
...
...
@@ -53,37 +53,37 @@ export interface ITextAreaInputHost {
export
class
TextAreaInput
extends
Disposable
{
private
_onFocus
=
this
.
_register
(
new
Emitter
<
void
>
());
public
onFocus
:
Event
<
void
>
=
this
.
_onFocus
.
event
;
public
readonly
onFocus
:
Event
<
void
>
=
this
.
_onFocus
.
event
;
private
_onBlur
=
this
.
_register
(
new
Emitter
<
void
>
());
public
onBlur
:
Event
<
void
>
=
this
.
_onBlur
.
event
;
public
readonly
onBlur
:
Event
<
void
>
=
this
.
_onBlur
.
event
;
private
_onKeyDown
=
this
.
_register
(
new
Emitter
<
IKeyboardEvent
>
());
public
onKeyDown
:
Event
<
IKeyboardEvent
>
=
this
.
_onKeyDown
.
event
;
public
readonly
onKeyDown
:
Event
<
IKeyboardEvent
>
=
this
.
_onKeyDown
.
event
;
private
_onKeyUp
=
this
.
_register
(
new
Emitter
<
IKeyboardEvent
>
());
public
onKeyUp
:
Event
<
IKeyboardEvent
>
=
this
.
_onKeyUp
.
event
;
public
readonly
onKeyUp
:
Event
<
IKeyboardEvent
>
=
this
.
_onKeyUp
.
event
;
private
_onCut
=
this
.
_register
(
new
Emitter
<
void
>
());
public
onCut
:
Event
<
void
>
=
this
.
_onCut
.
event
;
public
readonly
onCut
:
Event
<
void
>
=
this
.
_onCut
.
event
;
private
_onPaste
=
this
.
_register
(
new
Emitter
<
IPasteData
>
());
public
onPaste
:
Event
<
IPasteData
>
=
this
.
_onPaste
.
event
;
public
readonly
onPaste
:
Event
<
IPasteData
>
=
this
.
_onPaste
.
event
;
private
_onType
=
this
.
_register
(
new
Emitter
<
ITypeData
>
());
public
onType
:
Event
<
ITypeData
>
=
this
.
_onType
.
event
;
public
readonly
onType
:
Event
<
ITypeData
>
=
this
.
_onType
.
event
;
private
_onCompositionStart
=
this
.
_register
(
new
Emitter
<
void
>
());
public
onCompositionStart
:
Event
<
void
>
=
this
.
_onCompositionStart
.
event
;
public
readonly
onCompositionStart
:
Event
<
void
>
=
this
.
_onCompositionStart
.
event
;
private
_onCompositionUpdate
=
this
.
_register
(
new
Emitter
<
ICompositionData
>
());
public
onCompositionUpdate
:
Event
<
ICompositionData
>
=
this
.
_onCompositionUpdate
.
event
;
public
readonly
onCompositionUpdate
:
Event
<
ICompositionData
>
=
this
.
_onCompositionUpdate
.
event
;
private
_onCompositionEnd
=
this
.
_register
(
new
Emitter
<
void
>
());
public
onCompositionEnd
:
Event
<
void
>
=
this
.
_onCompositionEnd
.
event
;
public
readonly
onCompositionEnd
:
Event
<
void
>
=
this
.
_onCompositionEnd
.
event
;
private
_onSelectionChangeRequest
=
this
.
_register
(
new
Emitter
<
Selection
>
());
public
onSelectionChangeRequest
:
Event
<
Selection
>
=
this
.
_onSelectionChangeRequest
.
event
;
public
readonly
onSelectionChangeRequest
:
Event
<
Selection
>
=
this
.
_onSelectionChangeRequest
.
event
;
// ---
...
...
src/vs/editor/browser/widget/codeEditorWidget.ts
浏览文件 @
adcf6b2d
...
...
@@ -456,7 +456,7 @@ class CodeEditorWidgetFocusTracker extends Disposable {
private
_domFocusTracker
:
dom
.
IFocusTracker
;
private
_onChange
:
Emitter
<
void
>
=
this
.
_register
(
new
Emitter
<
void
>
());
public
onChange
:
Event
<
void
>
=
this
.
_onChange
.
event
;
public
readonly
onChange
:
Event
<
void
>
=
this
.
_onChange
.
event
;
constructor
(
domElement
:
HTMLElement
)
{
super
();
...
...
src/vs/editor/common/config/commonEditorConfig.ts
浏览文件 @
adcf6b2d
...
...
@@ -35,7 +35,7 @@ export const TabFocus: ITabFocus = new class implements ITabFocus {
private
_tabFocus
:
boolean
=
false
;
private
_onDidChangeTabFocus
:
Emitter
<
boolean
>
=
new
Emitter
<
boolean
>
();
public
onDidChangeTabFocus
:
Event
<
boolean
>
=
this
.
_onDidChangeTabFocus
.
event
;
public
readonly
onDidChangeTabFocus
:
Event
<
boolean
>
=
this
.
_onDidChangeTabFocus
.
event
;
public
getTabFocusMode
():
boolean
{
return
this
.
_tabFocus
;
...
...
@@ -70,7 +70,7 @@ export abstract class CommonEditorConfiguration extends Disposable implements ed
private
_lineNumbersDigitCount
:
number
;
private
_onDidChange
=
this
.
_register
(
new
Emitter
<
editorOptions
.
IConfigurationChangedEvent
>
());
public
onDidChange
:
Event
<
editorOptions
.
IConfigurationChangedEvent
>
=
this
.
_onDidChange
.
event
;
public
readonly
onDidChange
:
Event
<
editorOptions
.
IConfigurationChangedEvent
>
=
this
.
_onDidChange
.
event
;
constructor
(
options
:
editorOptions
.
IEditorOptions
)
{
super
();
...
...
src/vs/editor/common/config/editorZoom.ts
浏览文件 @
adcf6b2d
...
...
@@ -17,7 +17,7 @@ export const EditorZoom: IEditorZoom = new class implements IEditorZoom {
private
_zoomLevel
:
number
=
0
;
private
_onDidChangeZoomLevel
:
Emitter
<
number
>
=
new
Emitter
<
number
>
();
public
onDidChangeZoomLevel
:
Event
<
number
>
=
this
.
_onDidChangeZoomLevel
.
event
;
public
readonly
onDidChangeZoomLevel
:
Event
<
number
>
=
this
.
_onDidChangeZoomLevel
.
event
;
public
getZoomLevel
():
number
{
return
this
.
_zoomLevel
;
...
...
src/vs/editor/common/modes/languageConfigurationRegistry.ts
浏览文件 @
adcf6b2d
...
...
@@ -178,7 +178,7 @@ export class LanguageConfigurationRegistryImpl {
private
_entries
:
RichEditSupport
[];
private
_onDidChange
:
Emitter
<
LanguageConfigurationChangeEvent
>
=
new
Emitter
<
LanguageConfigurationChangeEvent
>
();
public
onDidChange
:
Event
<
LanguageConfigurationChangeEvent
>
=
this
.
_onDidChange
.
event
;
public
readonly
onDidChange
:
Event
<
LanguageConfigurationChangeEvent
>
=
this
.
_onDidChange
.
event
;
constructor
()
{
this
.
_entries
=
[];
...
...
src/vs/editor/common/modes/modesRegistry.ts
浏览文件 @
adcf6b2d
...
...
@@ -21,7 +21,7 @@ export class EditorModesRegistry {
private
_languages
:
ILanguageExtensionPoint
[];
private
_onDidAddLanguages
:
Emitter
<
ILanguageExtensionPoint
[]
>
=
new
Emitter
<
ILanguageExtensionPoint
[]
>
();
public
onDidAddLanguages
:
Event
<
ILanguageExtensionPoint
[]
>
=
this
.
_onDidAddLanguages
.
event
;
public
readonly
onDidAddLanguages
:
Event
<
ILanguageExtensionPoint
[]
>
=
this
.
_onDidAddLanguages
.
event
;
constructor
()
{
this
.
_languages
=
[];
...
...
src/vs/editor/common/modes/tokenizationRegistry.ts
浏览文件 @
adcf6b2d
...
...
@@ -14,7 +14,7 @@ export class TokenizationRegistryImpl implements ITokenizationRegistry {
private
_map
:
{
[
language
:
string
]:
ITokenizationSupport
};
private
_onDidChange
:
Emitter
<
ITokenizationSupportChangedEvent
>
=
new
Emitter
<
ITokenizationSupportChangedEvent
>
();
public
onDidChange
:
Event
<
ITokenizationSupportChangedEvent
>
=
this
.
_onDidChange
.
event
;
public
readonly
onDidChange
:
Event
<
ITokenizationSupportChangedEvent
>
=
this
.
_onDidChange
.
event
;
private
_colorMap
:
Color
[];
...
...
src/vs/editor/common/view/minimapCharRenderer.ts
浏览文件 @
adcf6b2d
...
...
@@ -21,7 +21,7 @@ export class MinimapTokensColorTracker {
private
_backgroundIsLight
:
boolean
;
private
_onDidChange
=
new
Emitter
<
void
>
();
public
onDidChange
:
Event
<
void
>
=
this
.
_onDidChange
.
event
;
public
readonly
onDidChange
:
Event
<
void
>
=
this
.
_onDidChange
.
event
;
private
constructor
()
{
this
.
_updateColorMap
();
...
...
src/vs/editor/standalone/browser/simpleServices.ts
浏览文件 @
adcf6b2d
...
...
@@ -472,7 +472,7 @@ export class SimpleConfigurationService implements IConfigurationService {
_serviceBrand
:
any
;
private
_onDidChangeConfiguration
=
new
Emitter
<
IConfigurationChangeEvent
>
();
public
onDidChangeConfiguration
:
Event
<
IConfigurationChangeEvent
>
=
this
.
_onDidChangeConfiguration
.
event
;
public
readonly
onDidChangeConfiguration
:
Event
<
IConfigurationChangeEvent
>
=
this
.
_onDidChangeConfiguration
.
event
;
private
_configuration
:
Configuration
;
...
...
src/vs/editor/standalone/test/browser/standaloneLanguages.test.ts
浏览文件 @
adcf6b2d
...
...
@@ -58,7 +58,7 @@ suite('TokenizationSupport2Adapter', () => {
}
};
}
public
onThemeChange
:
Event
<
ITheme
>
=
null
;
public
readonly
onThemeChange
:
Event
<
ITheme
>
=
null
;
}
class
MockState
implements
IState
{
...
...
src/vs/platform/extensionManagement/common/extensionEnablementService.ts
浏览文件 @
adcf6b2d
...
...
@@ -23,7 +23,7 @@ export class ExtensionEnablementService implements IExtensionEnablementService {
private
disposables
:
IDisposable
[]
=
[];
private
_onEnablementChanged
=
new
Emitter
<
IExtensionIdentifier
>
();
public
onEnablementChanged
:
Event
<
IExtensionIdentifier
>
=
this
.
_onEnablementChanged
.
event
;
public
readonly
onEnablementChanged
:
Event
<
IExtensionIdentifier
>
=
this
.
_onEnablementChanged
.
event
;
constructor
(
@
IStorageService
private
storageService
:
IStorageService
,
...
...
src/vs/workbench/parts/debug/test/common/mockDebug.ts
浏览文件 @
adcf6b2d
...
...
@@ -249,5 +249,5 @@ export class MockSession implements ISession {
return
TPromise
.
as
(
null
);
}
public
onDidStop
:
Event
<
DebugProtocol
.
StoppedEvent
>
=
null
;
public
readonly
onDidStop
:
Event
<
DebugProtocol
.
StoppedEvent
>
=
null
;
}
src/vs/workbench/parts/preferences/browser/preferencesEditor.ts
浏览文件 @
adcf6b2d
...
...
@@ -399,7 +399,7 @@ class PreferencesRenderersController extends Disposable {
private
_lastFilterResult
:
IFilterResult
;
private
_onDidFilterResultsCountChange
:
Emitter
<
IPreferencesCount
>
=
this
.
_register
(
new
Emitter
<
IPreferencesCount
>
());
public
onDidFilterResultsCountChange
:
Event
<
IPreferencesCount
>
=
this
.
_onDidFilterResultsCountChange
.
event
;
public
readonly
onDidFilterResultsCountChange
:
Event
<
IPreferencesCount
>
=
this
.
_onDidFilterResultsCountChange
.
event
;
constructor
(
@
IPreferencesSearchService
private
preferencesSearchService
:
IPreferencesSearchService
,
...
...
src/vs/workbench/parts/preferences/browser/preferencesRenderers.ts
浏览文件 @
adcf6b2d
...
...
@@ -465,7 +465,7 @@ export class BracesHidingRenderer extends Disposable implements HiddenAreasProvi
class
DefaultSettingsHeaderRenderer
extends
Disposable
{
private
settingsHeaderWidget
:
DefaultSettingsHeaderWidget
;
public
onClick
:
Event
<
void
>
;
public
readonly
onClick
:
Event
<
void
>
;
constructor
(
editor
:
ICodeEditor
,
scope
:
ConfigurationScope
)
{
super
();
...
...
src/vs/workbench/parts/preferences/browser/preferencesWidgets.ts
浏览文件 @
adcf6b2d
...
...
@@ -102,7 +102,7 @@ export class SettingsHeaderWidget extends Widget implements IViewZone {
export
class
DefaultSettingsHeaderWidget
extends
SettingsHeaderWidget
{
private
_onClick
=
this
.
_register
(
new
Emitter
<
void
>
());
public
onClick
:
Event
<
void
>
=
this
.
_onClick
.
event
;
public
readonly
onClick
:
Event
<
void
>
=
this
.
_onClick
.
event
;
protected
create
()
{
super
.
create
();
...
...
@@ -130,7 +130,7 @@ export class SettingsGroupTitleWidget extends Widget implements IViewZone {
private
title
:
HTMLElement
;
private
_onToggled
=
this
.
_register
(
new
Emitter
<
boolean
>
());
public
onToggled
:
Event
<
boolean
>
=
this
.
_onToggled
.
event
;
public
readonly
onToggled
:
Event
<
boolean
>
=
this
.
_onToggled
.
event
;
private
previousPosition
:
Position
;
...
...
@@ -706,7 +706,7 @@ export class FloatingClickWidget extends Widget implements IOverlayWidget {
private
_domNode
:
HTMLElement
;
private
_onClick
:
Emitter
<
void
>
=
this
.
_register
(
new
Emitter
<
void
>
());
public
onClick
:
Event
<
void
>
=
this
.
_onClick
.
event
;
public
readonly
onClick
:
Event
<
void
>
=
this
.
_onClick
.
event
;
constructor
(
private
editor
:
ICodeEditor
,
...
...
src/vs/workbench/parts/search/browser/searchWidget.ts
浏览文件 @
adcf6b2d
...
...
@@ -100,22 +100,22 @@ export class SearchWidget extends Widget {
private
previousGlobalFindBufferValue
:
string
;
private
_onSearchSubmit
=
this
.
_register
(
new
Emitter
<
boolean
>
());
public
onSearchSubmit
:
Event
<
boolean
>
=
this
.
_onSearchSubmit
.
event
;
public
readonly
onSearchSubmit
:
Event
<
boolean
>
=
this
.
_onSearchSubmit
.
event
;
private
_onSearchCancel
=
this
.
_register
(
new
Emitter
<
void
>
());
public
onSearchCancel
:
Event
<
void
>
=
this
.
_onSearchCancel
.
event
;
public
readonly
onSearchCancel
:
Event
<
void
>
=
this
.
_onSearchCancel
.
event
;
private
_onReplaceToggled
=
this
.
_register
(
new
Emitter
<
void
>
());
public
onReplaceToggled
:
Event
<
void
>
=
this
.
_onReplaceToggled
.
event
;
public
readonly
onReplaceToggled
:
Event
<
void
>
=
this
.
_onReplaceToggled
.
event
;
private
_onReplaceStateChange
=
this
.
_register
(
new
Emitter
<
boolean
>
());
public
onReplaceStateChange
:
Event
<
boolean
>
=
this
.
_onReplaceStateChange
.
event
;
public
readonly
onReplaceStateChange
:
Event
<
boolean
>
=
this
.
_onReplaceStateChange
.
event
;
private
_onReplaceValueChanged
=
this
.
_register
(
new
Emitter
<
string
>
());
public
onReplaceValueChanged
:
Event
<
string
>
=
this
.
_onReplaceValueChanged
.
event
;
public
readonly
onReplaceValueChanged
:
Event
<
string
>
=
this
.
_onReplaceValueChanged
.
event
;
private
_onReplaceAll
=
this
.
_register
(
new
Emitter
<
void
>
());
public
onReplaceAll
:
Event
<
void
>
=
this
.
_onReplaceAll
.
event
;
public
readonly
onReplaceAll
:
Event
<
void
>
=
this
.
_onReplaceAll
.
event
;
constructor
(
container
:
Builder
,
...
...
src/vs/workbench/parts/search/common/searchModel.ts
浏览文件 @
adcf6b2d
...
...
@@ -118,10 +118,10 @@ export class FileMatch extends Disposable {
}
private
_onChange
=
this
.
_register
(
new
Emitter
<
boolean
>
());
public
onChange
:
Event
<
boolean
>
=
this
.
_onChange
.
event
;
public
readonly
onChange
:
Event
<
boolean
>
=
this
.
_onChange
.
event
;
private
_onDispose
=
this
.
_register
(
new
Emitter
<
void
>
());
public
onDispose
:
Event
<
void
>
=
this
.
_onDispose
.
event
;
public
readonly
onDispose
:
Event
<
void
>
=
this
.
_onDispose
.
event
;
private
_resource
:
URI
;
private
_model
:
ITextModel
;
...
...
@@ -338,10 +338,10 @@ export interface IChangeEvent {
export
class
FolderMatch
extends
Disposable
{
private
_onChange
=
this
.
_register
(
new
Emitter
<
IChangeEvent
>
());
public
onChange
:
Event
<
IChangeEvent
>
=
this
.
_onChange
.
event
;
public
readonly
onChange
:
Event
<
IChangeEvent
>
=
this
.
_onChange
.
event
;
private
_onDispose
=
this
.
_register
(
new
Emitter
<
void
>
());
public
onDispose
:
Event
<
void
>
=
this
.
_onDispose
.
event
;
public
readonly
onDispose
:
Event
<
void
>
=
this
.
_onDispose
.
event
;
private
_fileMatches
:
ResourceMap
<
FileMatch
>
;
private
_unDisposedFileMatches
:
ResourceMap
<
FileMatch
>
;
...
...
@@ -499,7 +499,7 @@ export class FolderMatch extends Disposable {
export
class
SearchResult
extends
Disposable
{
private
_onChange
=
this
.
_register
(
new
Emitter
<
IChangeEvent
>
());
public
onChange
:
Event
<
IChangeEvent
>
=
this
.
_onChange
.
event
;
public
readonly
onChange
:
Event
<
IChangeEvent
>
=
this
.
_onChange
.
event
;
private
_folderMatches
:
FolderMatch
[]
=
[];
private
_folderMatchesMap
:
TernarySearchTree
<
FolderMatch
>
=
TernarySearchTree
.
forPaths
<
FolderMatch
>
();
...
...
@@ -683,7 +683,7 @@ export class SearchModel extends Disposable {
private
_replacePattern
:
ReplacePattern
=
null
;
private
_onReplaceTermChanged
:
Emitter
<
void
>
=
this
.
_register
(
new
Emitter
<
void
>
());
public
onReplaceTermChanged
:
Event
<
void
>
=
this
.
_onReplaceTermChanged
.
event
;
public
readonly
onReplaceTermChanged
:
Event
<
void
>
=
this
.
_onReplaceTermChanged
.
event
;
private
currentRequest
:
PPromise
<
ISearchComplete
,
ISearchProgressItem
>
;
...
...
src/vs/workbench/services/keybinding/electron-browser/keybindingService.ts
浏览文件 @
adcf6b2d
...
...
@@ -47,7 +47,7 @@ export class KeyboardMapperFactory {
private
_initialized
:
boolean
;
private
_onDidChangeKeyboardMapper
:
Emitter
<
void
>
=
new
Emitter
<
void
>
();
public
onDidChangeKeyboardMapper
:
Event
<
void
>
=
this
.
_onDidChangeKeyboardMapper
.
event
;
public
readonly
onDidChangeKeyboardMapper
:
Event
<
void
>
=
this
.
_onDidChangeKeyboardMapper
.
event
;
private
constructor
()
{
this
.
_layoutInfo
=
null
;
...
...
src/vs/workbench/services/textMate/electron-browser/TMSyntax.ts
浏览文件 @
adcf6b2d
...
...
@@ -29,7 +29,7 @@ export class TMScopeRegistry {
private
_encounteredLanguages
:
boolean
[];
private
_onDidEncounterLanguage
:
Emitter
<
LanguageId
>
=
new
Emitter
<
LanguageId
>
();
public
onDidEncounterLanguage
:
Event
<
LanguageId
>
=
this
.
_onDidEncounterLanguage
.
event
;
public
readonly
onDidEncounterLanguage
:
Event
<
LanguageId
>
=
this
.
_onDidEncounterLanguage
.
event
;
constructor
()
{
this
.
_scopeNameToLanguageRegistration
=
Object
.
create
(
null
);
...
...
@@ -122,7 +122,7 @@ export class TextMateService implements ITextMateService {
private
_currentTokenColors
:
ITokenColorizationRule
[];
public
onDidEncounterLanguage
:
Event
<
LanguageId
>
;
public
readonly
onDidEncounterLanguage
:
Event
<
LanguageId
>
;
constructor
(
@
IModeService
modeService
:
IModeService
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录