Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
5ede377c
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 搜索 >>
提交
5ede377c
编写于
10月 13, 2020
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debt - clean up event names in native host
上级
c21e1b7e
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
70 addition
and
48 deletion
+70
-48
src/vs/code/electron-main/app.ts
src/vs/code/electron-main/app.ts
+5
-1
src/vs/platform/menubar/electron-main/menubar.ts
src/vs/platform/menubar/electron-main/menubar.ts
+2
-2
src/vs/platform/native/common/native.ts
src/vs/platform/native/common/native.ts
+9
-8
src/vs/platform/native/electron-main/nativeHostMainService.ts
...vs/platform/native/electron-main/nativeHostMainService.ts
+16
-12
src/vs/platform/userDataSync/electron-sandbox/userDataAutoSyncService.ts
.../userDataSync/electron-sandbox/userDataAutoSyncService.ts
+2
-2
src/vs/platform/windows/common/windowTracker.ts
src/vs/platform/windows/common/windowTracker.ts
+5
-3
src/vs/workbench/contrib/codeEditor/electron-sandbox/sleepResumeRepaintMinimap.ts
.../codeEditor/electron-sandbox/sleepResumeRepaintMinimap.ts
+1
-1
src/vs/workbench/contrib/terminal/electron-browser/terminalNativeContribution.ts
...b/terminal/electron-browser/terminalNativeContribution.ts
+1
-1
src/vs/workbench/electron-sandbox/window.ts
src/vs/workbench/electron-sandbox/window.ts
+2
-2
src/vs/workbench/services/credentials/browser/credentialsService.ts
...kbench/services/credentials/browser/credentialsService.ts
+6
-2
src/vs/workbench/services/credentials/electron-sandbox/credentialsService.ts
...rvices/credentials/electron-sandbox/credentialsService.ts
+11
-4
src/vs/workbench/services/host/electron-sandbox/nativeHostService.ts
...bench/services/host/electron-sandbox/nativeHostService.ts
+2
-2
src/vs/workbench/services/themes/electron-sandbox/nativeHostColorSchemeService.ts
...s/themes/electron-sandbox/nativeHostColorSchemeService.ts
+1
-1
src/vs/workbench/test/electron-browser/workbenchTestServices.ts
.../workbench/test/electron-browser/workbenchTestServices.ts
+7
-7
未找到文件。
src/vs/code/electron-main/app.ts
浏览文件 @
5ede377c
...
...
@@ -663,7 +663,11 @@ export class CodeApplication extends Disposable {
});
// Create a URL handler which forwards to the last active window
const
activeWindowManager
=
new
ActiveWindowManager
({
onWindowOpen
:
nativeHostMainService
.
onWindowOpen
,
onWindowFocus
:
nativeHostMainService
.
onWindowFocus
,
getActiveWindowId
:
()
=>
nativeHostMainService
.
getActiveWindowId
(
-
1
)
});
const
activeWindowManager
=
new
ActiveWindowManager
({
onDidOpenWindow
:
nativeHostMainService
.
onDidOpenWindow
,
onDidFocusWindow
:
nativeHostMainService
.
onDidFocusWindow
,
getActiveWindowId
:
()
=>
nativeHostMainService
.
getActiveWindowId
(
-
1
)
});
const
activeWindowRouter
=
new
StaticRouter
(
ctx
=>
activeWindowManager
.
getActiveClientId
().
then
(
id
=>
ctx
===
id
));
const
urlHandlerRouter
=
new
URLHandlerRouter
(
activeWindowRouter
);
const
urlHandlerChannel
=
electronIpcServer
.
getChannel
(
'
urlHandler
'
,
urlHandlerRouter
);
...
...
src/vs/platform/menubar/electron-main/menubar.ts
浏览文件 @
5ede377c
...
...
@@ -169,8 +169,8 @@ export class Menubar {
// // Listen to some events from window service to update menu
this
.
windowsMainService
.
onWindowsCountChanged
(
e
=>
this
.
onWindowsCountChanged
(
e
));
this
.
nativeHostMainService
.
on
WindowBlur
(()
=>
this
.
onWindowFocusChange
());
this
.
nativeHostMainService
.
on
WindowFocus
(()
=>
this
.
onWindowFocusChange
());
this
.
nativeHostMainService
.
on
DidBlurWindow
(()
=>
this
.
onWindowFocusChange
());
this
.
nativeHostMainService
.
on
DidFocusWindow
(()
=>
this
.
onWindowFocusChange
());
}
private
get
currentEnableMenuBarMnemonics
():
boolean
{
...
...
src/vs/platform/native/common/native.ts
浏览文件 @
5ede377c
...
...
@@ -37,17 +37,19 @@ export interface ICommonNativeHostService {
readonly
windowId
:
number
;
// Events
readonly
on
WindowOpen
:
Event
<
number
>
;
readonly
on
DidOpenWindow
:
Event
<
number
>
;
readonly
on
WindowMaximize
:
Event
<
number
>
;
readonly
on
WindowUnmaximize
:
Event
<
number
>
;
readonly
on
DidMaximizeWindow
:
Event
<
number
>
;
readonly
on
DidUnmaximizeWindow
:
Event
<
number
>
;
readonly
on
WindowFocus
:
Event
<
number
>
;
readonly
on
WindowBlur
:
Event
<
number
>
;
readonly
on
DidFocusWindow
:
Event
<
number
>
;
readonly
on
DidBlurWindow
:
Event
<
number
>
;
readonly
on
OSResume
:
Event
<
unknown
>
;
readonly
on
DidResumeOS
:
Event
<
unknown
>
;
readonly
onColorSchemeChange
:
Event
<
IColorScheme
>
;
readonly
onDidChangeColorScheme
:
Event
<
IColorScheme
>
;
readonly
onDidChangePassword
:
Event
<
void
>
;
// Window
getWindows
():
Promise
<
IOpenedWindow
[]
>
;
...
...
@@ -149,5 +151,4 @@ export interface ICommonNativeHostService {
deletePassword
(
service
:
string
,
account
:
string
):
Promise
<
boolean
>
;
findPassword
(
service
:
string
):
Promise
<
string
|
null
>
;
findCredentials
(
service
:
string
):
Promise
<
Array
<
{
account
:
string
,
password
:
string
}
>>
readonly
onDidChangePassword
:
Event
<
void
>
;
}
src/vs/platform/native/electron-main/nativeHostMainService.ts
浏览文件 @
5ede377c
...
...
@@ -27,6 +27,7 @@ import { ILogService } from 'vs/platform/log/common/log';
import
{
dirname
,
join
}
from
'
vs/base/common/path
'
;
import
product
from
'
vs/platform/product/common/product
'
;
import
{
memoize
}
from
'
vs/base/common/decorators
'
;
import
{
Disposable
}
from
'
vs/base/common/lifecycle
'
;
export
interface
INativeHostMainService
extends
AddFirstParameterToFunctions
<
ICommonNativeHostService
,
Promise
<
unknown
>
/* only methods, not events */
,
number
|
undefined
/* window ID */
>
{
}
...
...
@@ -40,7 +41,7 @@ interface ChunkedPassword {
const
MAX_PASSWORD_LENGTH
=
2500
;
const
PASSWORD_CHUNK_SIZE
=
MAX_PASSWORD_LENGTH
-
100
;
export
class
NativeHostMainService
implements
INativeHostMainService
{
export
class
NativeHostMainService
extends
Disposable
implements
INativeHostMainService
{
declare
readonly
_serviceBrand
:
undefined
;
...
...
@@ -52,6 +53,8 @@ export class NativeHostMainService implements INativeHostMainService {
@
ITelemetryService
private
readonly
telemetryService
:
ITelemetryService
,
@
ILogService
private
readonly
logService
:
ILogService
)
{
super
();
this
.
registerListeners
();
}
...
...
@@ -59,7 +62,7 @@ export class NativeHostMainService implements INativeHostMainService {
// Color Scheme changes
nativeTheme
.
on
(
'
updated
'
,
()
=>
{
this
.
_on
ColorSchemeChang
e
.
fire
({
this
.
_on
DidChangeColorSchem
e
.
fire
({
highContrast
:
nativeTheme
.
shouldUseInvertedColorScheme
||
nativeTheme
.
shouldUseHighContrastColors
,
dark
:
nativeTheme
.
shouldUseDarkColors
});
...
...
@@ -75,23 +78,23 @@ export class NativeHostMainService implements INativeHostMainService {
//#region Events
readonly
on
WindowOpen
=
Event
.
map
(
this
.
windowsMainService
.
onWindowOpened
,
window
=>
window
.
id
);
readonly
on
DidOpenWindow
=
Event
.
map
(
this
.
windowsMainService
.
onWindowOpened
,
window
=>
window
.
id
);
readonly
on
WindowMaximize
=
Event
.
filter
(
Event
.
fromNodeEventEmitter
(
app
,
'
browser-window-maximize
'
,
(
event
,
window
:
BrowserWindow
)
=>
window
.
id
),
windowId
=>
!!
this
.
windowsMainService
.
getWindowById
(
windowId
));
readonly
on
WindowUnmaximize
=
Event
.
filter
(
Event
.
fromNodeEventEmitter
(
app
,
'
browser-window-unmaximize
'
,
(
event
,
window
:
BrowserWindow
)
=>
window
.
id
),
windowId
=>
!!
this
.
windowsMainService
.
getWindowById
(
windowId
));
readonly
on
DidMaximizeWindow
=
Event
.
filter
(
Event
.
fromNodeEventEmitter
(
app
,
'
browser-window-maximize
'
,
(
event
,
window
:
BrowserWindow
)
=>
window
.
id
),
windowId
=>
!!
this
.
windowsMainService
.
getWindowById
(
windowId
));
readonly
on
DidUnmaximizeWindow
=
Event
.
filter
(
Event
.
fromNodeEventEmitter
(
app
,
'
browser-window-unmaximize
'
,
(
event
,
window
:
BrowserWindow
)
=>
window
.
id
),
windowId
=>
!!
this
.
windowsMainService
.
getWindowById
(
windowId
));
readonly
on
WindowBlur
=
Event
.
filter
(
Event
.
fromNodeEventEmitter
(
app
,
'
browser-window-blur
'
,
(
event
,
window
:
BrowserWindow
)
=>
window
.
id
),
windowId
=>
!!
this
.
windowsMainService
.
getWindowById
(
windowId
));
readonly
on
WindowFocus
=
Event
.
any
(
readonly
on
DidBlurWindow
=
Event
.
filter
(
Event
.
fromNodeEventEmitter
(
app
,
'
browser-window-blur
'
,
(
event
,
window
:
BrowserWindow
)
=>
window
.
id
),
windowId
=>
!!
this
.
windowsMainService
.
getWindowById
(
windowId
));
readonly
on
DidFocusWindow
=
Event
.
any
(
Event
.
map
(
Event
.
filter
(
Event
.
map
(
this
.
windowsMainService
.
onWindowsCountChanged
,
()
=>
this
.
windowsMainService
.
getLastActiveWindow
()),
window
=>
!!
window
),
window
=>
window
!
.
id
),
Event
.
filter
(
Event
.
fromNodeEventEmitter
(
app
,
'
browser-window-focus
'
,
(
event
,
window
:
BrowserWindow
)
=>
window
.
id
),
windowId
=>
!!
this
.
windowsMainService
.
getWindowById
(
windowId
))
);
readonly
on
OSResume
=
Event
.
fromNodeEventEmitter
(
powerMonitor
,
'
resume
'
);
readonly
on
DidResumeOS
=
Event
.
fromNodeEventEmitter
(
powerMonitor
,
'
resume
'
);
private
readonly
_on
ColorSchemeChange
=
new
Emitter
<
IColorScheme
>
(
);
readonly
on
ColorSchemeChange
=
this
.
_onColorSchemeChang
e
.
event
;
private
readonly
_on
DidChangeColorScheme
=
this
.
_register
(
new
Emitter
<
IColorScheme
>
()
);
readonly
on
DidChangeColorScheme
=
this
.
_onDidChangeColorSchem
e
.
event
;
private
readonly
_onDidChangePassword
=
new
Emitter
<
void
>
(
);
private
readonly
_onDidChangePassword
=
this
.
_register
(
new
Emitter
<
void
>
()
);
readonly
onDidChangePassword
=
this
.
_onDidChangePassword
.
event
;
//#endregion
...
...
@@ -688,11 +691,12 @@ export class NativeHostMainService implements INativeHostMainService {
async
deletePassword
(
windowId
:
number
|
undefined
,
service
:
string
,
account
:
string
):
Promise
<
boolean
>
{
const
keytar
=
await
import
(
'
keytar
'
);
const
didDelete
=
await
keytar
.
deletePassword
(
service
,
account
);
if
(
didDelete
)
{
this
.
_onDidChangePassword
.
fire
();
}
return
didDelete
;
}
...
...
src/vs/platform/userDataSync/electron-sandbox/userDataAutoSyncService.ts
浏览文件 @
5ede377c
...
...
@@ -31,8 +31,8 @@ export class UserDataAutoSyncService extends BaseUserDataAutoSyncService {
super
(
userDataSyncStoreManagementService
,
userDataSyncStoreService
,
userDataSyncResourceEnablementService
,
userDataSyncService
,
logService
,
authTokenService
,
telemetryService
,
userDataSyncMachinesService
,
storageService
,
environmentService
);
this
.
_register
(
Event
.
debounce
<
string
,
string
[]
>
(
Event
.
any
<
string
>
(
Event
.
map
(
nativeHostService
.
on
WindowFocus
,
()
=>
'
windowFocus
'
),
Event
.
map
(
nativeHostService
.
on
WindowOpen
,
()
=>
'
windowOpen
'
),
Event
.
map
(
nativeHostService
.
on
DidFocusWindow
,
()
=>
'
windowFocus
'
),
Event
.
map
(
nativeHostService
.
on
DidOpenWindow
,
()
=>
'
windowOpen
'
),
),
(
last
,
source
)
=>
last
?
[...
last
,
source
]
:
[
source
],
1000
)(
sources
=>
this
.
triggerSync
(
sources
,
true
,
false
)));
}
...
...
src/vs/platform/windows/common/windowTracker.ts
浏览文件 @
5ede377c
...
...
@@ -14,13 +14,15 @@ export class ActiveWindowManager extends Disposable {
private
activeWindowId
:
number
|
undefined
;
constructor
({
onWindowOpen
,
onWindowFocus
,
getActiveWindowId
}:
{
onWindowOpen
:
Event
<
number
>
,
onWindowFocus
:
Event
<
number
>
,
getActiveWindowId
():
Promise
<
number
|
undefined
>
constructor
({
onDidOpenWindow
,
onDidFocusWindow
,
getActiveWindowId
}:
{
onDidOpenWindow
:
Event
<
number
>
,
onDidFocusWindow
:
Event
<
number
>
,
getActiveWindowId
():
Promise
<
number
|
undefined
>
})
{
super
();
// remember last active window id upon events
const
onActiveWindowChange
=
Event
.
latch
(
Event
.
any
(
on
WindowOpen
,
onWindowFocus
));
const
onActiveWindowChange
=
Event
.
latch
(
Event
.
any
(
on
DidOpenWindow
,
onDidFocusWindow
));
onActiveWindowChange
(
this
.
setActiveWindow
,
this
,
this
.
disposables
);
// resolve current active window
...
...
src/vs/workbench/contrib/codeEditor/electron-sandbox/sleepResumeRepaintMinimap.ts
浏览文件 @
5ede377c
...
...
@@ -18,7 +18,7 @@ class SleepResumeRepaintMinimap extends Disposable implements IWorkbenchContribu
)
{
super
();
this
.
_register
(
nativeHostService
.
on
OSResume
(()
=>
{
this
.
_register
(
nativeHostService
.
on
DidResumeOS
(()
=>
{
codeEditorService
.
listCodeEditors
().
forEach
(
editor
=>
editor
.
render
(
true
));
}));
}
...
...
src/vs/workbench/contrib/terminal/electron-browser/terminalNativeContribution.ts
浏览文件 @
5ede377c
...
...
@@ -31,7 +31,7 @@ export class TerminalNativeContribution extends Disposable implements IWorkbench
super
();
ipcRenderer
.
on
(
'
vscode:openFiles
'
,
(
_
:
unknown
,
request
:
INativeOpenFileRequest
)
=>
this
.
_onOpenFileRequest
(
request
));
this
.
_register
(
nativeHostService
.
on
OSResume
(()
=>
this
.
_onOsResume
()));
this
.
_register
(
nativeHostService
.
on
DidResumeOS
(()
=>
this
.
_onOsResume
()));
this
.
_terminalService
.
setLinuxDistro
(
linuxDistro
);
this
.
_terminalService
.
setNativeWindowsDelegate
({
...
...
src/vs/workbench/electron-sandbox/window.ts
浏览文件 @
5ede377c
...
...
@@ -261,8 +261,8 @@ export class NativeWindow extends Disposable {
// Detect minimize / maximize
this
.
_register
(
Event
.
any
(
Event
.
map
(
Event
.
filter
(
this
.
nativeHostService
.
on
WindowMaximize
,
id
=>
id
===
this
.
nativeHostService
.
windowId
),
()
=>
true
),
Event
.
map
(
Event
.
filter
(
this
.
nativeHostService
.
on
WindowUnmaximize
,
id
=>
id
===
this
.
nativeHostService
.
windowId
),
()
=>
false
)
Event
.
map
(
Event
.
filter
(
this
.
nativeHostService
.
on
DidMaximizeWindow
,
id
=>
id
===
this
.
nativeHostService
.
windowId
),
()
=>
true
),
Event
.
map
(
Event
.
filter
(
this
.
nativeHostService
.
on
DidUnmaximizeWindow
,
id
=>
id
===
this
.
nativeHostService
.
windowId
),
()
=>
false
)
)(
e
=>
this
.
onDidChangeMaximized
(
e
)));
this
.
onDidChangeMaximized
(
this
.
environmentService
.
configuration
.
maximized
??
false
);
...
...
src/vs/workbench/services/credentials/browser/credentialsService.ts
浏览文件 @
5ede377c
...
...
@@ -7,17 +7,20 @@ import { ICredentialsService, ICredentialsProvider } from 'vs/workbench/services
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
IWorkbenchEnvironmentService
}
from
'
vs/workbench/services/environment/common/environmentService
'
;
import
{
Emitter
}
from
'
vs/base/common/event
'
;
import
{
Disposable
}
from
'
vs/base/common/lifecycle
'
;
export
class
BrowserCredentialsService
implements
ICredentialsService
{
export
class
BrowserCredentialsService
extends
Disposable
implements
ICredentialsService
{
declare
readonly
_serviceBrand
:
undefined
;
private
_onDidChangePassword
:
Emitter
<
void
>
=
new
Emitter
(
);
private
_onDidChangePassword
=
this
.
_register
(
new
Emitter
<
void
>
()
);
readonly
onDidChangePassword
=
this
.
_onDidChangePassword
.
event
;
private
credentialsProvider
:
ICredentialsProvider
;
constructor
(@
IWorkbenchEnvironmentService
environmentService
:
IWorkbenchEnvironmentService
)
{
super
();
if
(
environmentService
.
options
&&
environmentService
.
options
.
credentialsProvider
)
{
this
.
credentialsProvider
=
environmentService
.
options
.
credentialsProvider
;
}
else
{
...
...
@@ -31,6 +34,7 @@ export class BrowserCredentialsService implements ICredentialsService {
async
setPassword
(
service
:
string
,
account
:
string
,
password
:
string
):
Promise
<
void
>
{
await
this
.
credentialsProvider
.
setPassword
(
service
,
account
,
password
);
this
.
_onDidChangePassword
.
fire
();
}
...
...
src/vs/workbench/services/credentials/electron-sandbox/credentialsService.ts
浏览文件 @
5ede377c
...
...
@@ -7,16 +7,23 @@ import { ICredentialsService } from 'vs/workbench/services/credentials/common/cr
import
{
INativeHostService
}
from
'
vs/platform/native/electron-sandbox/native
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
Emitter
}
from
'
vs/base/common/event
'
;
import
{
Disposable
}
from
'
vs/base/common/lifecycle
'
;
export
class
KeytarCredentialsService
implements
ICredentialsService
{
export
class
KeytarCredentialsService
extends
Disposable
implements
ICredentialsService
{
declare
readonly
_serviceBrand
:
undefined
;
private
_onDidChangePassword
:
Emitter
<
void
>
=
new
Emitter
(
);
onDidChangePassword
=
this
.
_onDidChangePassword
.
event
;
private
_onDidChangePassword
:
Emitter
<
void
>
=
this
.
_register
(
new
Emitter
()
);
readonly
onDidChangePassword
=
this
.
_onDidChangePassword
.
event
;
constructor
(@
INativeHostService
private
readonly
nativeHostService
:
INativeHostService
)
{
this
.
nativeHostService
.
onDidChangePassword
(
event
=>
this
.
_onDidChangePassword
.
fire
(
event
));
super
();
this
.
registerListeners
();
}
private
registerListeners
():
void
{
this
.
_register
(
this
.
nativeHostService
.
onDidChangePassword
(
event
=>
this
.
_onDidChangePassword
.
fire
(
event
)));
}
getPassword
(
service
:
string
,
account
:
string
):
Promise
<
string
|
null
>
{
...
...
src/vs/workbench/services/host/electron-sandbox/nativeHostService.ts
浏览文件 @
5ede377c
...
...
@@ -28,8 +28,8 @@ export class NativeHostService extends Disposable implements IHostService {
get
onDidChangeFocus
():
Event
<
boolean
>
{
return
this
.
_onDidChangeFocus
;
}
private
_onDidChangeFocus
:
Event
<
boolean
>
=
Event
.
latch
(
Event
.
any
(
Event
.
map
(
Event
.
filter
(
this
.
nativeHostService
.
on
WindowFocus
,
id
=>
id
===
this
.
nativeHostService
.
windowId
),
()
=>
this
.
hasFocus
),
Event
.
map
(
Event
.
filter
(
this
.
nativeHostService
.
on
WindowBlur
,
id
=>
id
===
this
.
nativeHostService
.
windowId
),
()
=>
this
.
hasFocus
)
Event
.
map
(
Event
.
filter
(
this
.
nativeHostService
.
on
DidFocusWindow
,
id
=>
id
===
this
.
nativeHostService
.
windowId
),
()
=>
this
.
hasFocus
),
Event
.
map
(
Event
.
filter
(
this
.
nativeHostService
.
on
DidBlurWindow
,
id
=>
id
===
this
.
nativeHostService
.
windowId
),
()
=>
this
.
hasFocus
)
));
get
hasFocus
():
boolean
{
...
...
src/vs/workbench/services/themes/electron-sandbox/nativeHostColorSchemeService.ts
浏览文件 @
5ede377c
...
...
@@ -26,7 +26,7 @@ export class NativeHostColorSchemeService extends Disposable implements IHostCol
private
registerListeners
():
void
{
// Color Scheme
this
.
_register
(
this
.
nativeHostService
.
on
ColorSchemeChang
e
(({
highContrast
,
dark
})
=>
{
this
.
_register
(
this
.
nativeHostService
.
on
DidChangeColorSchem
e
(({
highContrast
,
dark
})
=>
{
this
.
dark
=
dark
;
this
.
highContrast
=
highContrast
;
this
.
_onDidChangeColorScheme
.
fire
();
...
...
src/vs/workbench/test/electron-browser/workbenchTestServices.ts
浏览文件 @
5ede377c
...
...
@@ -160,13 +160,13 @@ export class TestNativeHostService implements INativeHostService {
readonly
windowId
=
-
1
;
on
WindowOpen
:
Event
<
number
>
=
Event
.
None
;
on
WindowMaximize
:
Event
<
number
>
=
Event
.
None
;
on
WindowUnmaximize
:
Event
<
number
>
=
Event
.
None
;
on
WindowFocus
:
Event
<
number
>
=
Event
.
None
;
on
WindowBlur
:
Event
<
number
>
=
Event
.
None
;
on
OSResume
:
Event
<
unknown
>
=
Event
.
None
;
on
ColorSchemeChang
e
=
Event
.
None
;
on
DidOpenWindow
:
Event
<
number
>
=
Event
.
None
;
on
DidMaximizeWindow
:
Event
<
number
>
=
Event
.
None
;
on
DidUnmaximizeWindow
:
Event
<
number
>
=
Event
.
None
;
on
DidFocusWindow
:
Event
<
number
>
=
Event
.
None
;
on
DidBlurWindow
:
Event
<
number
>
=
Event
.
None
;
on
DidResumeOS
:
Event
<
unknown
>
=
Event
.
None
;
on
DidChangeColorSchem
e
=
Event
.
None
;
onDidChangePassword
=
Event
.
None
;
windowCount
=
Promise
.
resolve
(
1
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录