Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
e096ce1b
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 搜索 >>
提交
e096ce1b
编写于
9月 25, 2019
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debt - implement focusWindow() via host
上级
817eb6b0
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
57 addition
and
58 deletion
+57
-58
src/vs/platform/electron/electron-main/electronMainService.ts
...vs/platform/electron/electron-main/electronMainService.ts
+11
-0
src/vs/platform/electron/node/electron.ts
src/vs/platform/electron/node/electron.ts
+5
-0
src/vs/platform/windows/common/windows.ts
src/vs/platform/windows/common/windows.ts
+0
-2
src/vs/platform/windows/common/windowsIpc.ts
src/vs/platform/windows/common/windowsIpc.ts
+0
-1
src/vs/platform/windows/electron-browser/windowsService.ts
src/vs/platform/windows/electron-browser/windowsService.ts
+0
-4
src/vs/platform/windows/electron-main/legacyWindowsMainService.ts
...latform/windows/electron-main/legacyWindowsMainService.ts
+1
-11
src/vs/workbench/browser/dnd.ts
src/vs/workbench/browser/dnd.ts
+5
-3
src/vs/workbench/browser/web.simpleservices.ts
src/vs/workbench/browser/web.simpleservices.ts
+0
-8
src/vs/workbench/contrib/debug/browser/debugSession.ts
src/vs/workbench/contrib/debug/browser/debugSession.ts
+3
-3
src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.ts
.../contrib/extensions/browser/extensionsWorkbenchService.ts
+4
-4
src/vs/workbench/contrib/files/browser/views/explorerViewer.ts
...s/workbench/contrib/files/browser/views/explorerViewer.ts
+3
-3
src/vs/workbench/electron-browser/actions/windowActions.ts
src/vs/workbench/electron-browser/actions/windowActions.ts
+10
-7
src/vs/workbench/services/host/browser/browserHostService.ts
src/vs/workbench/services/host/browser/browserHostService.ts
+4
-0
src/vs/workbench/services/host/browser/host.ts
src/vs/workbench/services/host/browser/host.ts
+5
-0
src/vs/workbench/services/host/electron-browser/desktopHostService.ts
...ench/services/host/electron-browser/desktopHostService.ts
+4
-0
src/vs/workbench/services/window/electron-browser/windowService.ts
...rkbench/services/window/electron-browser/windowService.ts
+0
-4
src/vs/workbench/test/workbenchTestServices.ts
src/vs/workbench/test/workbenchTestServices.ts
+2
-8
未找到文件。
src/vs/platform/electron/electron-main/electronMainService.ts
浏览文件 @
e096ce1b
...
...
@@ -76,6 +76,17 @@ export class ElectronMainService implements AddContextToFunctions<IElectronServi
}
}
async
focusWindow
(
windowId
:
number
):
Promise
<
void
>
{
const
window
=
this
.
windowsMainService
.
getWindowById
(
windowId
);
if
(
window
)
{
if
(
isMacintosh
)
{
window
.
win
.
show
();
}
else
{
window
.
win
.
focus
();
}
}
}
//#endregion
//#region Dialog
...
...
src/vs/platform/electron/node/electron.ts
浏览文件 @
e096ce1b
...
...
@@ -16,8 +16,11 @@ export interface IElectronService {
// Window
windowCount
():
Promise
<
number
>
;
openEmptyWindow
(
options
?:
{
reuse
?:
boolean
,
remoteAuthority
?:
string
}):
Promise
<
void
>
;
toggleFullScreen
():
Promise
<
void
>
;
handleTitleDoubleClick
():
Promise
<
void
>
;
isMaximized
():
Promise
<
boolean
>
;
...
...
@@ -25,6 +28,8 @@ export interface IElectronService {
unmaximizeWindow
():
Promise
<
void
>
;
minimizeWindow
():
Promise
<
void
>
;
focusWindow
():
Promise
<
void
>
;
// Dialogs
showMessageBox
(
options
:
MessageBoxOptions
):
Promise
<
MessageBoxReturnValue
>
;
showSaveDialog
(
options
:
SaveDialogOptions
):
Promise
<
SaveDialogReturnValue
>
;
...
...
src/vs/platform/windows/common/windows.ts
浏览文件 @
e096ce1b
...
...
@@ -86,7 +86,6 @@ export interface IWindowsService {
removeFromRecentlyOpened
(
paths
:
URI
[]):
Promise
<
void
>
;
clearRecentlyOpened
():
Promise
<
void
>
;
getRecentlyOpened
(
windowId
:
number
):
Promise
<
IRecentlyOpened
>
;
focusWindow
(
windowId
:
number
):
Promise
<
void
>
;
isFocused
(
windowId
:
number
):
Promise
<
boolean
>
;
// Global methods
...
...
@@ -152,7 +151,6 @@ export interface IWindowService {
getRecentlyOpened
():
Promise
<
IRecentlyOpened
>
;
addRecentlyOpened
(
recents
:
IRecent
[]):
Promise
<
void
>
;
removeFromRecentlyOpened
(
paths
:
URI
[]):
Promise
<
void
>
;
focusWindow
():
Promise
<
void
>
;
openWindow
(
uris
:
IURIToOpen
[],
options
?:
IOpenSettings
):
Promise
<
void
>
;
isFocused
():
Promise
<
boolean
>
;
}
...
...
src/vs/platform/windows/common/windowsIpc.ts
浏览文件 @
e096ce1b
...
...
@@ -56,7 +56,6 @@ export class WindowsChannel implements IServerChannel {
case
'
removeFromRecentlyOpened
'
:
return
this
.
service
.
removeFromRecentlyOpened
(
arg
.
map
(
URI
.
revive
));
case
'
clearRecentlyOpened
'
:
return
this
.
service
.
clearRecentlyOpened
();
case
'
getRecentlyOpened
'
:
return
this
.
service
.
getRecentlyOpened
(
arg
);
case
'
focusWindow
'
:
return
this
.
service
.
focusWindow
(
arg
);
case
'
isFocused
'
:
return
this
.
service
.
isFocused
(
arg
);
case
'
openWindow
'
:
{
const
urisToOpen
:
IURIToOpen
[]
=
arg
[
1
];
...
...
src/vs/platform/windows/electron-browser/windowsService.ts
浏览文件 @
e096ce1b
...
...
@@ -50,10 +50,6 @@ export class WindowsService implements IWindowsService {
return
recentlyOpened
;
}
focusWindow
(
windowId
:
number
):
Promise
<
void
>
{
return
this
.
channel
.
call
(
'
focusWindow
'
,
windowId
);
}
isFocused
(
windowId
:
number
):
Promise
<
boolean
>
{
return
this
.
channel
.
call
(
'
isFocused
'
,
windowId
);
}
...
...
src/vs/platform/windows/electron-main/legacyWindowsMainService.ts
浏览文件 @
e096ce1b
...
...
@@ -16,7 +16,7 @@ import { IRecentlyOpened, IRecent } from 'vs/platform/history/common/history';
import
{
IHistoryMainService
}
from
'
vs/platform/history/electron-main/historyMainService
'
;
import
{
IWorkspaceIdentifier
,
ISingleFolderWorkspaceIdentifier
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
Schemas
}
from
'
vs/base/common/network
'
;
import
{
isMacintosh
,
IProcessEnvironment
}
from
'
vs/base/common/platform
'
;
import
{
IProcessEnvironment
}
from
'
vs/base/common/platform
'
;
import
{
ILogService
}
from
'
vs/platform/log/common/log
'
;
// @deprecated this should eventually go away and be implemented by host & electron service
...
...
@@ -96,16 +96,6 @@ export class LegacyWindowsMainService extends Disposable implements IWindowsServ
return
this
.
withWindow
(
windowId
,
codeWindow
=>
this
.
historyMainService
.
getRecentlyOpened
(
codeWindow
.
config
.
workspace
,
codeWindow
.
config
.
folderUri
,
codeWindow
.
config
.
filesToOpenOrCreate
),
()
=>
this
.
historyMainService
.
getRecentlyOpened
())
!
;
}
async
focusWindow
(
windowId
:
number
):
Promise
<
void
>
{
this
.
logService
.
trace
(
'
windowsService#focusWindow
'
,
windowId
);
if
(
isMacintosh
)
{
return
this
.
withWindow
(
windowId
,
codeWindow
=>
codeWindow
.
win
.
show
());
}
else
{
return
this
.
withWindow
(
windowId
,
codeWindow
=>
codeWindow
.
win
.
focus
());
}
}
async
isFocused
(
windowId
:
number
):
Promise
<
boolean
>
{
this
.
logService
.
trace
(
'
windowsService#isFocused
'
,
windowId
);
...
...
src/vs/workbench/browser/dnd.ts
浏览文件 @
e096ce1b
...
...
@@ -32,6 +32,7 @@ import { IRecentFile } from 'vs/platform/history/common/history';
import
{
IWorkspaceEditingService
}
from
'
vs/workbench/services/workspace/common/workspaceEditing
'
;
import
{
withNullAsUndefined
}
from
'
vs/base/common/types
'
;
import
{
IWorkbenchEnvironmentService
}
from
'
vs/workbench/services/environment/common/environmentService
'
;
import
{
IHostService
}
from
'
vs/workbench/services/host/browser/host
'
;
export
interface
IDraggedResource
{
resource
:
URI
;
...
...
@@ -166,7 +167,8 @@ export class ResourcesDropHandler {
@
IUntitledEditorService
private
readonly
untitledEditorService
:
IUntitledEditorService
,
@
IEditorService
private
readonly
editorService
:
IEditorService
,
@
IConfigurationService
private
readonly
configurationService
:
IConfigurationService
,
@
IWorkspaceEditingService
private
readonly
workspaceEditingService
:
IWorkspaceEditingService
@
IWorkspaceEditingService
private
readonly
workspaceEditingService
:
IWorkspaceEditingService
,
@
IHostService
private
readonly
hostService
:
IHostService
)
{
}
...
...
@@ -177,7 +179,7 @@ export class ResourcesDropHandler {
}
// Make the window active to handle the drop properly within
await
this
.
windowService
.
focusWindow
();
await
this
.
hostService
.
focus
();
// Check for special things being dropped
const
isWorkspaceOpening
=
await
this
.
doHandleDrop
(
untitledOrFileResources
);
...
...
@@ -292,7 +294,7 @@ export class ResourcesDropHandler {
}
// Pass focus to window
this
.
windowService
.
focusWindow
();
this
.
hostService
.
focus
();
// Open in separate windows if we drop workspaces or just one folder
if
(
urisToOpen
.
length
>
folderURIs
.
length
||
folderURIs
.
length
===
1
)
{
...
...
src/vs/workbench/browser/web.simpleservices.ts
浏览文件 @
e096ce1b
...
...
@@ -134,10 +134,6 @@ export class SimpleWindowService extends Disposable implements IWindowService {
return
this
.
storageService
.
store
(
SimpleWindowService
.
RECENTLY_OPENED_KEY
,
JSON
.
stringify
(
toStoreData
(
data
)),
StorageScope
.
GLOBAL
);
}
focusWindow
():
Promise
<
void
>
{
return
Promise
.
resolve
();
}
async
openWindow
(
_uris
:
IURIToOpen
[],
_options
?:
IOpenSettings
):
Promise
<
void
>
{
const
{
openFolderInNewWindow
}
=
this
.
shouldOpenNewWindow
(
_options
);
for
(
let
i
=
0
;
i
<
_uris
.
length
;
i
++
)
{
...
...
@@ -216,10 +212,6 @@ export class SimpleWindowsService implements IWindowsService {
});
}
focusWindow
(
_windowId
:
number
):
Promise
<
void
>
{
return
Promise
.
resolve
();
}
// Global methods
openWindow
(
_windowId
:
number
,
_uris
:
IURIToOpen
[],
_options
:
IOpenSettings
):
Promise
<
void
>
{
return
Promise
.
resolve
();
...
...
src/vs/workbench/contrib/debug/browser/debugSession.ts
浏览文件 @
e096ce1b
...
...
@@ -22,7 +22,7 @@ import { IWorkspaceFolder, IWorkspaceContextService } from 'vs/platform/workspac
import
{
IDisposable
,
dispose
}
from
'
vs/base/common/lifecycle
'
;
import
{
RunOnceScheduler
}
from
'
vs/base/common/async
'
;
import
{
generateUuid
}
from
'
vs/base/common/uuid
'
;
import
{
I
WindowService
}
from
'
vs/platform/windows/common/windows
'
;
import
{
I
HostService
}
from
'
vs/workbench/services/host/browser/host
'
;
import
{
IExtensionHostDebugService
}
from
'
vs/platform/debug/common/extensionHostDebug
'
;
import
{
ITelemetryService
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
normalizeDriveLetter
}
from
'
vs/base/common/labels
'
;
...
...
@@ -70,7 +70,7 @@ export class DebugSession implements IDebugSession {
options
:
IDebugSessionOptions
|
undefined
,
@
IDebugService
private
readonly
debugService
:
IDebugService
,
@
ITelemetryService
private
readonly
telemetryService
:
ITelemetryService
,
@
I
WindowService
private
readonly
windowService
:
IWindow
Service
,
@
I
HostService
private
readonly
hostService
:
IHost
Service
,
@
IConfigurationService
private
readonly
configurationService
:
IConfigurationService
,
@
IViewletService
private
readonly
viewletService
:
IViewletService
,
@
IWorkspaceContextService
private
readonly
workspaceContextService
:
IWorkspaceContextService
,
...
...
@@ -731,7 +731,7 @@ export class DebugSession implements IDebugSession {
}
if
(
this
.
configurationService
.
getValue
<
IDebugConfiguration
>
(
'
debug
'
).
focusWindowOnBreak
)
{
this
.
windowService
.
focusWindow
();
this
.
hostService
.
focus
();
}
}
}
...
...
src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.ts
浏览文件 @
e096ce1b
...
...
@@ -20,7 +20,7 @@ import { IExtensionEnablementService, EnablementState, IExtensionManagementServe
import
{
getGalleryExtensionTelemetryData
,
getLocalExtensionTelemetryData
,
areSameExtensions
,
getMaliciousExtensionsSet
,
groupByExtension
,
ExtensionIdentifierWithVersion
}
from
'
vs/platform/extensionManagement/common/extensionManagementUtil
'
;
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IConfigurationService
}
from
'
vs/platform/configuration/common/configuration
'
;
import
{
I
WindowService
}
from
'
vs/platform/windows/common/windows
'
;
import
{
I
HostService
}
from
'
vs/workbench/services/host/browser/host
'
;
import
{
URI
}
from
'
vs/base/common/uri
'
;
import
{
IExtension
,
ExtensionState
,
IExtensionsWorkbenchService
,
AutoUpdateConfigurationKey
,
AutoCheckUpdatesConfigurationKey
}
from
'
vs/workbench/contrib/extensions/common/extensions
'
;
import
{
IEditorService
,
SIDE_GROUP
,
ACTIVE_GROUP
}
from
'
vs/workbench/services/editor/common/editorService
'
;
...
...
@@ -496,7 +496,7 @@ export class ExtensionsWorkbenchService extends Disposable implements IExtension
@
INotificationService
private
readonly
notificationService
:
INotificationService
,
@
IURLService
urlService
:
IURLService
,
@
IExtensionEnablementService
private
readonly
extensionEnablementService
:
IExtensionEnablementService
,
@
I
WindowService
private
readonly
windowService
:
IWindow
Service
,
@
I
HostService
private
readonly
hostService
:
IHost
Service
,
@
IProgressService
private
readonly
progressService
:
IProgressService
,
@
IExtensionManagementServerService
private
readonly
extensionManagementServerService
:
IExtensionManagementServerService
,
@
IStorageService
private
readonly
storageService
:
IStorageService
,
...
...
@@ -1070,7 +1070,7 @@ export class ExtensionsWorkbenchService extends Disposable implements IExtension
const
extension
=
local
.
filter
(
local
=>
areSameExtensions
(
local
.
identifier
,
{
id
:
extensionId
}))[
0
];
if
(
extension
)
{
return
this
.
windowService
.
focusWindow
()
return
this
.
hostService
.
focus
()
.
then
(()
=>
this
.
open
(
extension
));
}
return
this
.
queryGallery
({
names
:
[
extensionId
],
source
:
'
uri
'
},
CancellationToken
.
None
).
then
(
result
=>
{
...
...
@@ -1080,7 +1080,7 @@ export class ExtensionsWorkbenchService extends Disposable implements IExtension
const
extension
=
result
.
firstPage
[
0
];
return
this
.
windowService
.
focusWindow
().
then
(()
=>
{
return
this
.
hostService
.
focus
().
then
(()
=>
{
return
this
.
open
(
extension
);
});
});
...
...
src/vs/workbench/contrib/files/browser/views/explorerViewer.ts
浏览文件 @
e096ce1b
...
...
@@ -38,7 +38,7 @@ import { DesktopDragAndDropData, ExternalElementsDragAndDropData, ElementsDragAn
import
{
isMacintosh
}
from
'
vs/base/common/platform
'
;
import
{
IDialogService
,
IConfirmationResult
,
IConfirmation
,
getConfirmMessage
}
from
'
vs/platform/dialogs/common/dialogs
'
;
import
{
ITextFileService
,
ITextFileOperationResult
}
from
'
vs/workbench/services/textfile/common/textfiles
'
;
import
{
I
WindowService
}
from
'
vs/platform/windows/common/windows
'
;
import
{
I
HostService
}
from
'
vs/workbench/services/host/browser/host
'
;
import
{
IWorkspaceEditingService
}
from
'
vs/workbench/services/workspace/common/workspaceEditing
'
;
import
{
URI
}
from
'
vs/base/common/uri
'
;
import
{
ITask
,
sequence
}
from
'
vs/base/common/async
'
;
...
...
@@ -443,7 +443,7 @@ export class FileDragAndDrop implements ITreeDragAndDrop<ExplorerItem> {
@
IConfigurationService
private
configurationService
:
IConfigurationService
,
@
IInstantiationService
private
instantiationService
:
IInstantiationService
,
@
ITextFileService
private
textFileService
:
ITextFileService
,
@
I
WindowService
private
windowService
:
IWindow
Service
,
@
I
HostService
private
hostService
:
IHost
Service
,
@
IWorkspaceEditingService
private
workspaceEditingService
:
IWorkspaceEditingService
)
{
this
.
toDispose
=
[];
...
...
@@ -610,7 +610,7 @@ export class FileDragAndDrop implements ITreeDragAndDrop<ExplorerItem> {
const
result
=
await
this
.
fileService
.
resolveAll
(
droppedResources
);
// Pass focus to window
this
.
windowService
.
focusWindow
();
this
.
hostService
.
focus
();
// Handle folders by adding to workspace if we are in workspace context
const
folders
=
result
.
filter
(
r
=>
r
.
success
&&
r
.
stat
&&
r
.
stat
.
isDirectory
).
map
(
result
=>
({
uri
:
result
.
stat
!
.
resource
}));
...
...
src/vs/workbench/electron-browser/actions/windowActions.ts
浏览文件 @
e096ce1b
...
...
@@ -19,6 +19,7 @@ import { ICommandHandler } from 'vs/platform/commands/common/commands';
import
{
ServicesAccessor
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IConfigurationService
}
from
'
vs/platform/configuration/common/configuration
'
;
import
{
IElectronService
}
from
'
vs/platform/electron/node/electron
'
;
import
{
IHostService
}
from
'
vs/workbench/services/host/browser/host
'
;
export
class
CloseCurrentWindowAction
extends
Action
{
...
...
@@ -173,10 +174,10 @@ export abstract class BaseSwitchWindow extends Action {
private
keybindingService
:
IKeybindingService
,
private
modelService
:
IModelService
,
private
modeService
:
IModeService
,
private
electronService
:
IElectronService
private
electronService
:
IElectronService
,
private
hostService
:
IHostService
)
{
super
(
id
,
label
);
}
protected
abstract
isQuickNavigate
():
boolean
;
...
...
@@ -211,7 +212,7 @@ export abstract class BaseSwitchWindow extends Action {
});
if
(
pick
)
{
this
.
windowsService
.
focusWindow
(
pick
.
payload
);
this
.
hostService
.
focus
(
);
}
}
}
...
...
@@ -230,9 +231,10 @@ export class SwitchWindow extends BaseSwitchWindow {
@
IKeybindingService
keybindingService
:
IKeybindingService
,
@
IModelService
modelService
:
IModelService
,
@
IModeService
modeService
:
IModeService
,
@
IElectronService
electronService
:
IElectronService
@
IElectronService
electronService
:
IElectronService
,
@
IHostService
hostService
:
IHostService
)
{
super
(
id
,
label
,
windowsService
,
windowService
,
quickInputService
,
keybindingService
,
modelService
,
modeService
,
electronService
);
super
(
id
,
label
,
windowsService
,
windowService
,
quickInputService
,
keybindingService
,
modelService
,
modeService
,
electronService
,
hostService
);
}
protected
isQuickNavigate
():
boolean
{
...
...
@@ -254,9 +256,10 @@ export class QuickSwitchWindow extends BaseSwitchWindow {
@
IKeybindingService
keybindingService
:
IKeybindingService
,
@
IModelService
modelService
:
IModelService
,
@
IModeService
modeService
:
IModeService
,
@
IElectronService
electronService
:
IElectronService
@
IElectronService
electronService
:
IElectronService
,
@
IHostService
hostService
:
IHostService
)
{
super
(
id
,
label
,
windowsService
,
windowService
,
quickInputService
,
keybindingService
,
modelService
,
modeService
,
electronService
);
super
(
id
,
label
,
windowsService
,
windowService
,
quickInputService
,
keybindingService
,
modelService
,
modeService
,
electronService
,
hostService
);
}
protected
isQuickNavigate
():
boolean
{
...
...
src/vs/workbench/services/host/browser/browserHostService.ts
浏览文件 @
e096ce1b
...
...
@@ -61,6 +61,10 @@ export class BrowserHostService implements IHostService {
}
}
async
focus
():
Promise
<
void
>
{
window
.
focus
();
}
//#endregion
async
restart
():
Promise
<
void
>
{
...
...
src/vs/workbench/services/host/browser/host.ts
浏览文件 @
e096ce1b
...
...
@@ -29,6 +29,11 @@ export interface IHostService {
*/
toggleFullScreen
():
Promise
<
void
>
;
/**
* Attempt to bring the window to the foreground and focus it.
*/
focus
():
Promise
<
void
>
;
//#endregion
//#region Lifecycle
...
...
src/vs/workbench/services/host/electron-browser/desktopHostService.ts
浏览文件 @
e096ce1b
...
...
@@ -25,6 +25,10 @@ export class DesktopHostService implements IHostService {
return
this
.
electronService
.
toggleFullScreen
();
}
focus
():
Promise
<
void
>
{
return
this
.
electronService
.
focusWindow
();
}
//#endregion
restart
():
Promise
<
void
>
{
...
...
src/vs/workbench/services/window/electron-browser/windowService.ts
浏览文件 @
e096ce1b
...
...
@@ -71,10 +71,6 @@ export class WindowService extends Disposable implements IWindowService {
return
this
.
windowsService
.
removeFromRecentlyOpened
(
paths
);
}
focusWindow
():
Promise
<
void
>
{
return
this
.
windowsService
.
focusWindow
(
this
.
windowId
);
}
isFocused
():
Promise
<
boolean
>
{
return
this
.
windowsService
.
isFocused
(
this
.
windowId
);
}
...
...
src/vs/workbench/test/workbenchTestServices.ts
浏览文件 @
e096ce1b
...
...
@@ -1207,10 +1207,6 @@ export class TestWindowService implements IWindowService {
return
Promise
.
resolve
();
}
focusWindow
():
Promise
<
void
>
{
return
Promise
.
resolve
();
}
openWindow
(
_uris
:
IURIToOpen
[],
_options
?:
IOpenSettings
):
Promise
<
void
>
{
return
Promise
.
resolve
();
}
...
...
@@ -1289,10 +1285,6 @@ export class TestWindowsService implements IWindowsService {
});
}
focusWindow
(
_windowId
:
number
):
Promise
<
void
>
{
return
Promise
.
resolve
();
}
// Global methods
openWindow
(
_windowId
:
number
,
_uris
:
IURIToOpen
[],
_options
:
IOpenSettings
):
Promise
<
void
>
{
return
Promise
.
resolve
();
...
...
@@ -1401,6 +1393,8 @@ export class TestHostService implements IHostService {
async
reload
():
Promise
<
void
>
{
}
async
closeWorkspace
():
Promise
<
void
>
{
}
async
focus
():
Promise
<
void
>
{
}
async
openEmptyWindow
(
options
?:
{
reuse
?:
boolean
,
remoteAuthority
?:
string
}):
Promise
<
void
>
{
}
async
toggleFullScreen
():
Promise
<
void
>
{
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录