Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
64eed745
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
64eed745
编写于
9月 26, 2019
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
💄
move a few services around
上级
199aa4f2
变更
45
隐藏空白更改
内联
并排
Showing
45 changed file
with
62 addition
and
56 deletion
+62
-56
build/lib/i18n.resources.json
build/lib/i18n.resources.json
+4
-0
src/vs/base/parts/ipc/node/ipcChannelCreator.ts
src/vs/base/parts/ipc/node/ipcChannelCreator.ts
+2
-1
src/vs/code/electron-browser/issue/issueReporterMain.ts
src/vs/code/electron-browser/issue/issueReporterMain.ts
+1
-1
src/vs/code/electron-browser/sharedProcess/sharedProcessMain.ts
.../code/electron-browser/sharedProcess/sharedProcessMain.ts
+1
-1
src/vs/code/electron-main/app.ts
src/vs/code/electron-main/app.ts
+2
-2
src/vs/code/electron-main/main.ts
src/vs/code/electron-main/main.ts
+1
-1
src/vs/code/electron-main/windows.ts
src/vs/code/electron-main/windows.ts
+1
-1
src/vs/code/node/cliProcessMain.ts
src/vs/code/node/cliProcessMain.ts
+1
-1
src/vs/platform/issue/electron-browser/issueService.ts
src/vs/platform/issue/electron-browser/issueService.ts
+1
-1
src/vs/platform/lifecycle/electron-main/lifecycleMainService.ts
.../platform/lifecycle/electron-main/lifecycleMainService.ts
+1
-1
src/vs/platform/menubar/electron-browser/menubarService.ts
src/vs/platform/menubar/electron-browser/menubarService.ts
+1
-1
src/vs/platform/menubar/electron-main/menubar.ts
src/vs/platform/menubar/electron-main/menubar.ts
+1
-1
src/vs/platform/state/node/state.ts
src/vs/platform/state/node/state.ts
+0
-0
src/vs/platform/state/node/stateService.ts
src/vs/platform/state/node/stateService.ts
+1
-1
src/vs/platform/storage/node/storageService.ts
src/vs/platform/storage/node/storageService.ts
+4
-4
src/vs/platform/storage/test/node/storageService.test.ts
src/vs/platform/storage/test/node/storageService.test.ts
+2
-2
src/vs/platform/theme/electron-main/themeMainService.ts
src/vs/platform/theme/electron-main/themeMainService.ts
+1
-1
src/vs/platform/workspaces/electron-main/workspacesHistoryMainService.ts
.../workspaces/electron-main/workspacesHistoryMainService.ts
+1
-1
src/vs/workbench/api/browser/mainThreadKeytar.ts
src/vs/workbench/api/browser/mainThreadKeytar.ts
+1
-1
src/vs/workbench/api/browser/mainThreadStatusBar.ts
src/vs/workbench/api/browser/mainThreadStatusBar.ts
+1
-1
src/vs/workbench/api/common/extHost.protocol.ts
src/vs/workbench/api/common/extHost.protocol.ts
+1
-1
src/vs/workbench/api/common/extHostStatusBar.ts
src/vs/workbench/api/common/extHostStatusBar.ts
+1
-1
src/vs/workbench/browser/layout.ts
src/vs/workbench/browser/layout.ts
+1
-1
src/vs/workbench/browser/parts/editor/editorStatus.ts
src/vs/workbench/browser/parts/editor/editorStatus.ts
+1
-1
src/vs/workbench/browser/parts/notifications/notificationsStatus.ts
...kbench/browser/parts/notifications/notificationsStatus.ts
+1
-1
src/vs/workbench/browser/parts/statusbar/statusbarPart.ts
src/vs/workbench/browser/parts/statusbar/statusbarPart.ts
+1
-1
src/vs/workbench/contrib/debug/browser/debugStatus.ts
src/vs/workbench/contrib/debug/browser/debugStatus.ts
+1
-1
src/vs/workbench/contrib/extensions/electron-browser/extensionProfileService.ts
...ib/extensions/electron-browser/extensionProfileService.ts
+1
-1
src/vs/workbench/contrib/feedback/browser/feedback.ts
src/vs/workbench/contrib/feedback/browser/feedback.ts
+1
-1
src/vs/workbench/contrib/feedback/browser/feedbackStatusbarItem.ts
...rkbench/contrib/feedback/browser/feedbackStatusbarItem.ts
+1
-1
src/vs/workbench/contrib/markers/browser/markers.contribution.ts
...workbench/contrib/markers/browser/markers.contribution.ts
+1
-1
src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.ts
...bench/contrib/preferences/browser/keyboardLayoutPicker.ts
+1
-1
src/vs/workbench/contrib/remote/electron-browser/remote.contribution.ts
...ch/contrib/remote/electron-browser/remote.contribution.ts
+1
-1
src/vs/workbench/contrib/scm/browser/activity.ts
src/vs/workbench/contrib/scm/browser/activity.ts
+1
-1
src/vs/workbench/contrib/tasks/browser/task.contribution.ts
src/vs/workbench/contrib/tasks/browser/task.contribution.ts
+1
-1
src/vs/workbench/electron-browser/desktop.main.ts
src/vs/workbench/electron-browser/desktop.main.ts
+5
-5
src/vs/workbench/services/credentials/browser/credentialsService.ts
...kbench/services/credentials/browser/credentialsService.ts
+1
-1
src/vs/workbench/services/credentials/common/credentials.ts
src/vs/workbench/services/credentials/common/credentials.ts
+0
-0
src/vs/workbench/services/credentials/node/credentialsService.ts
...workbench/services/credentials/node/credentialsService.ts
+1
-1
src/vs/workbench/services/electron/electron-browser/electronService.ts
...nch/services/electron/electron-browser/electronService.ts
+1
-1
src/vs/workbench/services/lifecycle/browser/lifecycleService.ts
.../workbench/services/lifecycle/browser/lifecycleService.ts
+4
-1
src/vs/workbench/services/lifecycle/electron-browser/lifecycleService.ts
...h/services/lifecycle/electron-browser/lifecycleService.ts
+5
-5
src/vs/workbench/services/progress/browser/progressService.ts
...vs/workbench/services/progress/browser/progressService.ts
+1
-1
src/vs/workbench/services/statusbar/common/statusbar.ts
src/vs/workbench/services/statusbar/common/statusbar.ts
+0
-0
src/vs/workbench/workbench.web.main.ts
src/vs/workbench/workbench.web.main.ts
+1
-3
未找到文件。
build/lib/i18n.resources.json
浏览文件 @
64eed745
...
...
@@ -242,6 +242,10 @@
"name"
:
"vs/workbench/services/keybinding"
,
"project"
:
"vscode-workbench"
},
{
"name"
:
"vs/workbench/services/lifecycle"
,
"project"
:
"vscode-workbench"
},
{
"name"
:
"vs/workbench/services/mode"
,
"project"
:
"vscode-workbench"
...
...
src/vs/
platform
/ipc/node/ipcChannelCreator.ts
→
src/vs/
base/parts
/ipc/node/ipcChannelCreator.ts
浏览文件 @
64eed745
...
...
@@ -11,7 +11,8 @@ import { isUpperAsciiLetter } from 'vs/base/common/strings';
//
// Use both `createChannelReceiver` and `createChannelSender`
// for automated process <=> process communication over methods.
// for automated process <=> process communication over methods
// and events.
//
export
interface
IBaseChannelOptions
{
...
...
src/vs/code/electron-browser/issue/issueReporterMain.ts
浏览文件 @
64eed745
...
...
@@ -40,7 +40,7 @@ import { withUndefinedAsNull } from 'vs/base/common/types';
import
{
SystemInfo
,
isRemoteDiagnosticError
}
from
'
vs/platform/diagnostics/common/diagnostics
'
;
import
{
SpdLogService
}
from
'
vs/platform/log/node/spdlogService
'
;
import
{
ISharedProcessService
}
from
'
vs/platform/ipc/electron-browser/sharedProcessService
'
;
import
{
createChannelSender
}
from
'
vs/
platform
/ipc/node/ipcChannelCreator
'
;
import
{
createChannelSender
}
from
'
vs/
base/parts
/ipc/node/ipcChannelCreator
'
;
const
MAX_URL_LENGTH
=
2045
;
...
...
src/vs/code/electron-browser/sharedProcess/sharedProcessMain.ts
浏览文件 @
64eed745
...
...
@@ -55,7 +55,7 @@ import { UserDataSyncService, UserDataAutoSync } from 'vs/platform/userDataSync/
import
{
UserDataSyncStoreService
}
from
'
vs/platform/userDataSync/common/userDataSyncStoreService
'
;
import
{
UserDataSyncChannel
}
from
'
vs/platform/userDataSync/common/userDataSyncIpc
'
;
import
{
SettingsMergeChannelClient
}
from
'
vs/platform/userDataSync/common/settingsSyncIpc
'
;
import
{
createChannelSender
}
from
'
vs/
platform
/ipc/node/ipcChannelCreator
'
;
import
{
createChannelSender
}
from
'
vs/
base/parts
/ipc/node/ipcChannelCreator
'
;
import
{
IElectronService
}
from
'
vs/platform/electron/node/electron
'
;
import
{
LoggerService
}
from
'
vs/platform/log/node/loggerService
'
;
import
{
UserDataSyncLogService
}
from
'
vs/platform/userDataSync/common/userDataSyncLog
'
;
...
...
src/vs/code/electron-main/app.ts
浏览文件 @
64eed745
...
...
@@ -21,7 +21,7 @@ import { IInstantiationService, ServicesAccessor } from 'vs/platform/instantiati
import
{
ServiceCollection
}
from
'
vs/platform/instantiation/common/serviceCollection
'
;
import
{
SyncDescriptor
}
from
'
vs/platform/instantiation/common/descriptors
'
;
import
{
ILogService
}
from
'
vs/platform/log/common/log
'
;
import
{
IStateService
}
from
'
vs/platform/state/
common
/state
'
;
import
{
IStateService
}
from
'
vs/platform/state/
node
/state
'
;
import
{
IEnvironmentService
}
from
'
vs/platform/environment/common/environment
'
;
import
{
IConfigurationService
}
from
'
vs/platform/configuration/common/configuration
'
;
import
{
IURLService
}
from
'
vs/platform/url/common/url
'
;
...
...
@@ -32,7 +32,7 @@ import { TelemetryAppenderClient } from 'vs/platform/telemetry/node/telemetryIpc
import
{
TelemetryService
,
ITelemetryServiceConfig
}
from
'
vs/platform/telemetry/common/telemetryService
'
;
import
{
resolveCommonProperties
}
from
'
vs/platform/telemetry/node/commonProperties
'
;
import
{
getDelayedChannel
,
StaticRouter
}
from
'
vs/base/parts/ipc/common/ipc
'
;
import
{
createChannelReceiver
}
from
'
vs/
platform
/ipc/node/ipcChannelCreator
'
;
import
{
createChannelReceiver
}
from
'
vs/
base/parts
/ipc/node/ipcChannelCreator
'
;
import
product
from
'
vs/platform/product/common/product
'
;
import
{
ProxyAuthHandler
}
from
'
vs/code/electron-main/auth
'
;
import
{
Disposable
}
from
'
vs/base/common/lifecycle
'
;
...
...
src/vs/code/electron-main/main.ts
浏览文件 @
64eed745
...
...
@@ -21,7 +21,7 @@ import { ServiceCollection } from 'vs/platform/instantiation/common/serviceColle
import
{
SyncDescriptor
}
from
'
vs/platform/instantiation/common/descriptors
'
;
import
{
ILogService
,
ConsoleLogMainService
,
MultiplexLogService
,
getLogLevel
}
from
'
vs/platform/log/common/log
'
;
import
{
StateService
}
from
'
vs/platform/state/node/stateService
'
;
import
{
IStateService
}
from
'
vs/platform/state/
common
/state
'
;
import
{
IStateService
}
from
'
vs/platform/state/
node
/state
'
;
import
{
IEnvironmentService
,
ParsedArgs
}
from
'
vs/platform/environment/common/environment
'
;
import
{
EnvironmentService
,
xdgRuntimeDir
}
from
'
vs/platform/environment/node/environmentService
'
;
import
{
IConfigurationService
}
from
'
vs/platform/configuration/common/configuration
'
;
...
...
src/vs/code/electron-main/windows.ts
浏览文件 @
64eed745
...
...
@@ -11,7 +11,7 @@ import { assign, mixin } from 'vs/base/common/objects';
import
{
IBackupMainService
}
from
'
vs/platform/backup/electron-main/backup
'
;
import
{
IEmptyWindowBackupInfo
}
from
'
vs/platform/backup/node/backup
'
;
import
{
IEnvironmentService
,
ParsedArgs
}
from
'
vs/platform/environment/common/environment
'
;
import
{
IStateService
}
from
'
vs/platform/state/
common
/state
'
;
import
{
IStateService
}
from
'
vs/platform/state/
node
/state
'
;
import
{
CodeWindow
,
defaultWindowState
}
from
'
vs/code/electron-main/window
'
;
import
{
ipcMain
as
ipc
,
screen
,
BrowserWindow
,
dialog
,
systemPreferences
,
FileFilter
,
shell
,
MessageBoxReturnValue
,
MessageBoxOptions
,
SaveDialogOptions
,
SaveDialogReturnValue
,
OpenDialogOptions
,
OpenDialogReturnValue
,
Display
}
from
'
electron
'
;
import
{
parseLineAndColumnAware
}
from
'
vs/code/node/paths
'
;
...
...
src/vs/code/node/cliProcessMain.ts
浏览文件 @
64eed745
...
...
@@ -28,7 +28,7 @@ import { ConfigurationService } from 'vs/platform/configuration/node/configurati
import
{
AppInsightsAppender
}
from
'
vs/platform/telemetry/node/appInsightsAppender
'
;
import
{
mkdirp
,
writeFile
}
from
'
vs/base/node/pfs
'
;
import
{
getBaseLabel
}
from
'
vs/base/common/labels
'
;
import
{
IStateService
}
from
'
vs/platform/state/
common
/state
'
;
import
{
IStateService
}
from
'
vs/platform/state/
node
/state
'
;
import
{
StateService
}
from
'
vs/platform/state/node/stateService
'
;
import
{
ILogService
,
getLogLevel
}
from
'
vs/platform/log/common/log
'
;
import
{
isPromiseCanceledError
}
from
'
vs/base/common/errors
'
;
...
...
src/vs/platform/issue/electron-browser/issueService.ts
浏览文件 @
64eed745
...
...
@@ -5,7 +5,7 @@
import
{
IIssueService
}
from
'
vs/platform/issue/node/issue
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/electron-browser/mainProcessService
'
;
import
{
createChannelSender
}
from
'
vs/
platform
/ipc/node/ipcChannelCreator
'
;
import
{
createChannelSender
}
from
'
vs/
base/parts
/ipc/node/ipcChannelCreator
'
;
export
class
IssueService
{
...
...
src/vs/platform/lifecycle/electron-main/lifecycleMainService.ts
浏览文件 @
64eed745
...
...
@@ -5,7 +5,7 @@
import
{
ipcMain
as
ipc
,
app
}
from
'
electron
'
;
import
{
ILogService
}
from
'
vs/platform/log/common/log
'
;
import
{
IStateService
}
from
'
vs/platform/state/
common
/state
'
;
import
{
IStateService
}
from
'
vs/platform/state/
node
/state
'
;
import
{
Event
,
Emitter
}
from
'
vs/base/common/event
'
;
import
{
createDecorator
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
ICodeWindow
}
from
'
vs/platform/windows/electron-main/windows
'
;
...
...
src/vs/platform/menubar/electron-browser/menubarService.ts
浏览文件 @
64eed745
...
...
@@ -5,7 +5,7 @@
import
{
IMenubarService
}
from
'
vs/platform/menubar/node/menubar
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/electron-browser/mainProcessService
'
;
import
{
createChannelSender
}
from
'
vs/
platform
/ipc/node/ipcChannelCreator
'
;
import
{
createChannelSender
}
from
'
vs/
base/parts
/ipc/node/ipcChannelCreator
'
;
export
class
MenubarService
{
...
...
src/vs/platform/menubar/electron-main/menubar.ts
浏览文件 @
64eed745
...
...
@@ -19,7 +19,7 @@ import { IWindowsMainService, IWindowsCountChangedEvent } from 'vs/platform/wind
import
{
IWorkspacesHistoryMainService
}
from
'
vs/platform/workspaces/electron-main/workspacesHistoryMainService
'
;
import
{
IMenubarData
,
IMenubarKeybinding
,
MenubarMenuItem
,
isMenubarMenuItemSeparator
,
isMenubarMenuItemSubmenu
,
isMenubarMenuItemAction
,
IMenubarMenu
,
isMenubarMenuItemUriAction
}
from
'
vs/platform/menubar/node/menubar
'
;
import
{
URI
}
from
'
vs/base/common/uri
'
;
import
{
IStateService
}
from
'
vs/platform/state/
common
/state
'
;
import
{
IStateService
}
from
'
vs/platform/state/
node
/state
'
;
import
{
ILifecycleMainService
}
from
'
vs/platform/lifecycle/electron-main/lifecycleMainService
'
;
import
{
WorkbenchActionExecutedEvent
,
WorkbenchActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
...
...
src/vs/platform/state/
common
/state.ts
→
src/vs/platform/state/
node
/state.ts
浏览文件 @
64eed745
文件已移动
src/vs/platform/state/node/stateService.ts
浏览文件 @
64eed745
...
...
@@ -8,7 +8,7 @@ import * as fs from 'fs';
import
{
IEnvironmentService
}
from
'
vs/platform/environment/common/environment
'
;
import
{
writeFileSync
,
readFile
}
from
'
vs/base/node/pfs
'
;
import
{
isUndefined
,
isUndefinedOrNull
}
from
'
vs/base/common/types
'
;
import
{
IStateService
}
from
'
vs/platform/state/
common
/state
'
;
import
{
IStateService
}
from
'
vs/platform/state/
node
/state
'
;
import
{
ILogService
}
from
'
vs/platform/log/common/log
'
;
type
StorageDatebase
=
{
[
key
:
string
]:
any
;
};
...
...
src/vs/platform/storage/node/storageService.ts
浏览文件 @
64eed745
...
...
@@ -16,7 +16,7 @@ import { IEnvironmentService } from 'vs/platform/environment/common/environment'
import
{
IWorkspaceInitializationPayload
,
isWorkspaceIdentifier
,
isSingleFolderWorkspaceInitializationPayload
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
onUnexpectedError
}
from
'
vs/base/common/errors
'
;
export
class
StorageService
extends
Disposable
implements
IStorageService
{
export
class
Native
StorageService
extends
Disposable
implements
IStorageService
{
_serviceBrand
:
undefined
;
...
...
@@ -83,7 +83,7 @@ export class StorageService extends Disposable implements IStorageService {
// Create workspace storage and initialize
mark
(
'
willInitWorkspaceStorage
'
);
try
{
await
this
.
createWorkspaceStorage
(
useInMemoryStorage
?
SQLiteStorageDatabase
.
IN_MEMORY_PATH
:
join
(
result
.
path
,
StorageService
.
WORKSPACE_STORAGE_NAME
),
result
.
wasCreated
?
StorageHint
.
STORAGE_DOES_NOT_EXIST
:
undefined
).
init
();
await
this
.
createWorkspaceStorage
(
useInMemoryStorage
?
SQLiteStorageDatabase
.
IN_MEMORY_PATH
:
join
(
result
.
path
,
Native
StorageService
.
WORKSPACE_STORAGE_NAME
),
result
.
wasCreated
?
StorageHint
.
STORAGE_DOES_NOT_EXIST
:
undefined
).
init
();
}
finally
{
mark
(
'
didInitWorkspaceStorage
'
);
}
...
...
@@ -144,7 +144,7 @@ export class StorageService extends Disposable implements IStorageService {
}
if
(
meta
)
{
const
workspaceStorageMetaPath
=
join
(
this
.
getWorkspaceStorageFolderPath
(
payload
),
StorageService
.
WORKSPACE_META_NAME
);
const
workspaceStorageMetaPath
=
join
(
this
.
getWorkspaceStorageFolderPath
(
payload
),
Native
StorageService
.
WORKSPACE_META_NAME
);
(
async
function
()
{
try
{
const
storageExists
=
await
exists
(
workspaceStorageMetaPath
);
...
...
@@ -220,7 +220,7 @@ export class StorageService extends Disposable implements IStorageService {
// Prepare new workspace storage folder
const
result
=
await
this
.
prepareWorkspaceStorageFolder
(
toWorkspace
);
const
newWorkspaceStoragePath
=
join
(
result
.
path
,
StorageService
.
WORKSPACE_STORAGE_NAME
);
const
newWorkspaceStoragePath
=
join
(
result
.
path
,
Native
StorageService
.
WORKSPACE_STORAGE_NAME
);
// Copy current storage over to new workspace storage
await
copy
(
this
.
workspaceStoragePath
,
newWorkspaceStoragePath
);
...
...
src/vs/platform/storage/test/node/storageService.test.ts
浏览文件 @
64eed745
...
...
@@ -5,7 +5,7 @@
import
{
strictEqual
,
ok
,
equal
}
from
'
assert
'
;
import
{
StorageScope
,
InMemoryStorageService
}
from
'
vs/platform/storage/common/storage
'
;
import
{
StorageService
}
from
'
vs/platform/storage/node/storageService
'
;
import
{
Native
StorageService
}
from
'
vs/platform/storage/node/storageService
'
;
import
{
generateUuid
}
from
'
vs/base/common/uuid
'
;
import
{
join
}
from
'
vs/base/common/path
'
;
import
{
tmpdir
}
from
'
os
'
;
...
...
@@ -101,7 +101,7 @@ suite('StorageService', () => {
const
storageDir
=
uniqueStorageDir
();
await
mkdirp
(
storageDir
);
const
storage
=
new
StorageService
(
new
InMemoryStorageDatabase
(),
new
NullLogService
(),
new
StorageTestEnvironmentService
(
storageDir
,
storageDir
));
const
storage
=
new
Native
StorageService
(
new
InMemoryStorageDatabase
(),
new
NullLogService
(),
new
StorageTestEnvironmentService
(
storageDir
,
storageDir
));
await
storage
.
initialize
({
id
:
String
(
Date
.
now
())
});
storage
.
store
(
'
bar
'
,
'
foo
'
,
StorageScope
.
WORKSPACE
);
...
...
src/vs/platform/theme/electron-main/themeMainService.ts
浏览文件 @
64eed745
...
...
@@ -5,7 +5,7 @@
import
{
isWindows
,
isMacintosh
}
from
'
vs/base/common/platform
'
;
import
{
systemPreferences
,
ipcMain
as
ipc
}
from
'
electron
'
;
import
{
IStateService
}
from
'
vs/platform/state/
common
/state
'
;
import
{
IStateService
}
from
'
vs/platform/state/
node
/state
'
;
import
{
createDecorator
}
from
'
vs/platform/instantiation/common/instantiation
'
;
const
DEFAULT_BG_LIGHT
=
'
#FFFFFF
'
;
...
...
src/vs/platform/workspaces/electron-main/workspacesHistoryMainService.ts
浏览文件 @
64eed745
...
...
@@ -5,7 +5,7 @@
import
*
as
nls
from
'
vs/nls
'
;
import
*
as
arrays
from
'
vs/base/common/arrays
'
;
import
{
IStateService
}
from
'
vs/platform/state/
common
/state
'
;
import
{
IStateService
}
from
'
vs/platform/state/
node
/state
'
;
import
{
app
,
JumpListCategory
}
from
'
electron
'
;
import
{
ILogService
}
from
'
vs/platform/log/common/log
'
;
import
{
getBaseLabel
,
getPathLabel
}
from
'
vs/base/common/labels
'
;
...
...
src/vs/workbench/api/browser/mainThreadKeytar.ts
浏览文件 @
64eed745
...
...
@@ -5,7 +5,7 @@
import
{
extHostNamedCustomer
}
from
'
vs/workbench/api/common/extHostCustomers
'
;
import
{
MainContext
,
MainThreadKeytarShape
,
IExtHostContext
}
from
'
vs/workbench/api/common/extHost.protocol
'
;
import
{
ICredentialsService
}
from
'
vs/
platform
/credentials/common/credentials
'
;
import
{
ICredentialsService
}
from
'
vs/
workbench/services
/credentials/common/credentials
'
;
@
extHostNamedCustomer
(
MainContext
.
MainThreadKeytar
)
export
class
MainThreadKeytar
implements
MainThreadKeytarShape
{
...
...
src/vs/workbench/api/browser/mainThreadStatusBar.ts
浏览文件 @
64eed745
...
...
@@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
IStatusbarService
,
StatusbarAlignment
as
MainThreadStatusBarAlignment
,
IStatusbarEntryAccessor
,
IStatusbarEntry
}
from
'
vs/
platform
/statusbar/common/statusbar
'
;
import
{
IStatusbarService
,
StatusbarAlignment
as
MainThreadStatusBarAlignment
,
IStatusbarEntryAccessor
,
IStatusbarEntry
}
from
'
vs/
workbench/services
/statusbar/common/statusbar
'
;
import
{
MainThreadStatusBarShape
,
MainContext
,
IExtHostContext
}
from
'
../common/extHost.protocol
'
;
import
{
ThemeColor
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
extHostNamedCustomer
}
from
'
vs/workbench/api/common/extHostCustomers
'
;
...
...
src/vs/workbench/api/common/extHost.protocol.ts
浏览文件 @
64eed745
...
...
@@ -32,7 +32,7 @@ import { IMarkerData } from 'vs/platform/markers/common/markers';
import
{
IProgressOptions
,
IProgressStep
}
from
'
vs/platform/progress/common/progress
'
;
import
*
as
quickInput
from
'
vs/platform/quickinput/common/quickInput
'
;
import
{
RemoteAuthorityResolverErrorCode
,
ResolverResult
}
from
'
vs/platform/remote/common/remoteAuthorityResolver
'
;
import
*
as
statusbar
from
'
vs/
platform
/statusbar/common/statusbar
'
;
import
*
as
statusbar
from
'
vs/
workbench/services
/statusbar/common/statusbar
'
;
import
{
ClassifiedEvent
,
GDPRClassification
,
StrictPropertyCheck
}
from
'
vs/platform/telemetry/common/gdprTypings
'
;
import
{
ITelemetryInfo
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
ThemeColor
}
from
'
vs/platform/theme/common/themeService
'
;
...
...
src/vs/workbench/api/common/extHostStatusBar.ts
浏览文件 @
64eed745
...
...
@@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
StatusbarAlignment
as
MainThreadStatusBarAlignment
}
from
'
vs/
platform
/statusbar/common/statusbar
'
;
import
{
StatusbarAlignment
as
MainThreadStatusBarAlignment
}
from
'
vs/
workbench/services
/statusbar/common/statusbar
'
;
import
{
StatusBarAlignment
as
ExtHostStatusBarAlignment
,
Disposable
,
ThemeColor
}
from
'
./extHostTypes
'
;
import
{
StatusBarItem
,
StatusBarAlignment
}
from
'
vscode
'
;
import
{
MainContext
,
MainThreadStatusBarShape
,
IMainContext
}
from
'
./extHost.protocol
'
;
...
...
src/vs/workbench/browser/layout.ts
浏览文件 @
64eed745
...
...
@@ -31,7 +31,7 @@ import { IEditorGroupsService } from 'vs/workbench/services/editor/common/editor
import
{
SerializableGrid
,
ISerializableView
,
ISerializedGrid
,
Orientation
,
ISerializedNode
,
ISerializedLeafNode
,
Direction
,
IViewSize
}
from
'
vs/base/browser/ui/grid/grid
'
;
import
{
IDimension
}
from
'
vs/platform/layout/browser/layoutService
'
;
import
{
Part
}
from
'
vs/workbench/browser/part
'
;
import
{
IStatusbarService
}
from
'
vs/
platform
/statusbar/common/statusbar
'
;
import
{
IStatusbarService
}
from
'
vs/
workbench/services
/statusbar/common/statusbar
'
;
import
{
IActivityBarService
}
from
'
vs/workbench/services/activityBar/browser/activityBarService
'
;
import
{
IFileService
}
from
'
vs/platform/files/common/files
'
;
import
{
isCodeEditor
}
from
'
vs/editor/browser/editorBrowser
'
;
...
...
src/vs/workbench/browser/parts/editor/editorStatus.ts
浏览文件 @
64eed745
...
...
@@ -49,7 +49,7 @@ import { INotificationHandle, INotificationService, Severity } from 'vs/platform
import
{
Event
}
from
'
vs/base/common/event
'
;
import
{
IAccessibilityService
,
AccessibilitySupport
}
from
'
vs/platform/accessibility/common/accessibility
'
;
import
{
IWorkbenchContribution
}
from
'
vs/workbench/common/contributions
'
;
import
{
IStatusbarEntryAccessor
,
IStatusbarService
,
StatusbarAlignment
,
IStatusbarEntry
}
from
'
vs/
platform
/statusbar/common/statusbar
'
;
import
{
IStatusbarEntryAccessor
,
IStatusbarService
,
StatusbarAlignment
,
IStatusbarEntry
}
from
'
vs/
workbench/services
/statusbar/common/statusbar
'
;
class
SideBySideEditorEncodingSupport
implements
IEncodingSupport
{
constructor
(
private
master
:
IEncodingSupport
,
private
details
:
IEncodingSupport
)
{
}
...
...
src/vs/workbench/browser/parts/notifications/notificationsStatus.ts
浏览文件 @
64eed745
...
...
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import
{
INotificationsModel
,
INotificationChangeEvent
,
NotificationChangeType
,
INotificationViewItem
,
IStatusMessageChangeEvent
,
StatusMessageChangeType
,
IStatusMessageViewItem
}
from
'
vs/workbench/common/notifications
'
;
import
{
IStatusbarService
,
StatusbarAlignment
,
IStatusbarEntryAccessor
,
IStatusbarEntry
}
from
'
vs/
platform
/statusbar/common/statusbar
'
;
import
{
IStatusbarService
,
StatusbarAlignment
,
IStatusbarEntryAccessor
,
IStatusbarEntry
}
from
'
vs/
workbench/services
/statusbar/common/statusbar
'
;
import
{
Disposable
,
IDisposable
,
dispose
}
from
'
vs/base/common/lifecycle
'
;
import
{
HIDE_NOTIFICATIONS_CENTER
,
SHOW_NOTIFICATIONS_CENTER
}
from
'
vs/workbench/browser/parts/notifications/notificationsCommands
'
;
import
{
localize
}
from
'
vs/nls
'
;
...
...
src/vs/workbench/browser/parts/statusbar/statusbarPart.ts
浏览文件 @
64eed745
...
...
@@ -13,7 +13,7 @@ import { IEditorService } from 'vs/workbench/services/editor/common/editorServic
import
{
Part
}
from
'
vs/workbench/browser/part
'
;
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
ITelemetryService
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
StatusbarAlignment
,
IStatusbarService
,
IStatusbarEntry
,
IStatusbarEntryAccessor
}
from
'
vs/
platform
/statusbar/common/statusbar
'
;
import
{
StatusbarAlignment
,
IStatusbarService
,
IStatusbarEntry
,
IStatusbarEntryAccessor
}
from
'
vs/
workbench/services
/statusbar/common/statusbar
'
;
import
{
IContextMenuService
}
from
'
vs/platform/contextview/browser/contextView
'
;
import
{
Action
,
IAction
,
WorkbenchActionExecutedEvent
,
WorkbenchActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
IThemeService
,
registerThemingParticipant
,
ITheme
,
ICssStyleCollector
,
ThemeColor
}
from
'
vs/platform/theme/common/themeService
'
;
...
...
src/vs/workbench/contrib/debug/browser/debugStatus.ts
浏览文件 @
64eed745
...
...
@@ -7,7 +7,7 @@ import * as nls from 'vs/nls';
import
{
IDisposable
,
dispose
}
from
'
vs/base/common/lifecycle
'
;
import
{
IDebugService
,
State
,
IDebugConfiguration
}
from
'
vs/workbench/contrib/debug/common/debug
'
;
import
{
IConfigurationService
}
from
'
vs/platform/configuration/common/configuration
'
;
import
{
IStatusbarEntry
,
IStatusbarService
,
StatusbarAlignment
,
IStatusbarEntryAccessor
}
from
'
vs/
platform
/statusbar/common/statusbar
'
;
import
{
IStatusbarEntry
,
IStatusbarService
,
StatusbarAlignment
,
IStatusbarEntryAccessor
}
from
'
vs/
workbench/services
/statusbar/common/statusbar
'
;
import
{
IWorkbenchContribution
}
from
'
vs/workbench/common/contributions
'
;
...
...
src/vs/workbench/contrib/extensions/electron-browser/extensionProfileService.ts
浏览文件 @
64eed745
...
...
@@ -9,7 +9,7 @@ import { IInstantiationService } from 'vs/platform/instantiation/common/instanti
import
{
IExtensionHostProfile
,
ProfileSession
,
IExtensionService
}
from
'
vs/workbench/services/extensions/common/extensions
'
;
import
{
Disposable
,
toDisposable
,
MutableDisposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
onUnexpectedError
}
from
'
vs/base/common/errors
'
;
import
{
StatusbarAlignment
,
IStatusbarService
,
IStatusbarEntryAccessor
,
IStatusbarEntry
}
from
'
vs/
platform
/statusbar/common/statusbar
'
;
import
{
StatusbarAlignment
,
IStatusbarService
,
IStatusbarEntryAccessor
,
IStatusbarEntry
}
from
'
vs/
workbench/services
/statusbar/common/statusbar
'
;
import
{
IExtensionHostProfileService
,
ProfileSessionState
}
from
'
vs/workbench/contrib/extensions/electron-browser/runtimeExtensionsEditor
'
;
import
{
IEditorService
}
from
'
vs/workbench/services/editor/common/editorService
'
;
import
{
IElectronService
}
from
'
vs/platform/electron/node/electron
'
;
...
...
src/vs/workbench/contrib/feedback/browser/feedback.ts
浏览文件 @
64eed745
...
...
@@ -18,7 +18,7 @@ import { IAnchor } from 'vs/base/browser/ui/contextview/contextview';
import
{
Button
}
from
'
vs/base/browser/ui/button/button
'
;
import
{
ITelemetryService
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
WorkbenchActionExecutedEvent
,
WorkbenchActionExecutedClassification
}
from
'
vs/base/common/actions
'
;
import
{
IStatusbarService
}
from
'
vs/
platform
/statusbar/common/statusbar
'
;
import
{
IStatusbarService
}
from
'
vs/
workbench/services
/statusbar/common/statusbar
'
;
import
{
IProductService
}
from
'
vs/platform/product/common/productService
'
;
import
{
IOpenerService
}
from
'
vs/platform/opener/common/opener
'
;
...
...
src/vs/workbench/contrib/feedback/browser/feedbackStatusbarItem.ts
浏览文件 @
64eed745
...
...
@@ -9,7 +9,7 @@ import { IContextViewService } from 'vs/platform/contextview/browser/contextView
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IProductService
}
from
'
vs/platform/product/common/productService
'
;
import
{
IWorkbenchContribution
}
from
'
vs/workbench/common/contributions
'
;
import
{
IStatusbarService
,
StatusbarAlignment
,
IStatusbarEntry
,
IStatusbarEntryAccessor
}
from
'
vs/
platform
/statusbar/common/statusbar
'
;
import
{
IStatusbarService
,
StatusbarAlignment
,
IStatusbarEntry
,
IStatusbarEntryAccessor
}
from
'
vs/
workbench/services
/statusbar/common/statusbar
'
;
import
{
localize
}
from
'
vs/nls
'
;
import
{
CommandsRegistry
}
from
'
vs/platform/commands/common/commands
'
;
import
{
IOpenerService
}
from
'
vs/platform/opener/common/opener
'
;
...
...
src/vs/workbench/contrib/markers/browser/markers.contribution.ts
浏览文件 @
64eed745
...
...
@@ -26,7 +26,7 @@ import { LifecyclePhase } from 'vs/platform/lifecycle/common/lifecycle';
import
{
IClipboardService
}
from
'
vs/platform/clipboard/common/clipboardService
'
;
import
{
ActivePanelContext
}
from
'
vs/workbench/common/panel
'
;
import
{
Disposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
IStatusbarEntryAccessor
,
IStatusbarService
,
StatusbarAlignment
,
IStatusbarEntry
}
from
'
vs/
platform
/statusbar/common/statusbar
'
;
import
{
IStatusbarEntryAccessor
,
IStatusbarService
,
StatusbarAlignment
,
IStatusbarEntry
}
from
'
vs/
workbench/services
/statusbar/common/statusbar
'
;
import
{
IMarkerService
,
MarkerStatistics
}
from
'
vs/platform/markers/common/markers
'
;
import
{
CommandsRegistry
}
from
'
vs/platform/commands/common/commands
'
;
...
...
src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.ts
浏览文件 @
64eed745
...
...
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import
*
as
nls
from
'
vs/nls
'
;
import
{
StatusbarAlignment
,
IStatusbarService
,
IStatusbarEntryAccessor
}
from
'
vs/
platform
/statusbar/common/statusbar
'
;
import
{
StatusbarAlignment
,
IStatusbarService
,
IStatusbarEntryAccessor
}
from
'
vs/
workbench/services
/statusbar/common/statusbar
'
;
import
{
Disposable
,
MutableDisposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
IKeymapService
,
areKeyboardLayoutsEqual
,
parseKeyboardLayoutDescription
,
getKeyboardLayoutId
,
IKeyboardLayoutInfo
}
from
'
vs/workbench/services/keybinding/common/keymapInfo
'
;
import
{
LifecyclePhase
}
from
'
vs/platform/lifecycle/common/lifecycle
'
;
...
...
src/vs/workbench/contrib/remote/electron-browser/remote.contribution.ts
浏览文件 @
64eed745
...
...
@@ -15,7 +15,7 @@ import { KeybindingsRegistry, KeybindingWeight } from 'vs/platform/keybinding/co
import
{
MenuId
,
IMenuService
,
MenuItemAction
,
IMenu
,
MenuRegistry
,
registerAction
}
from
'
vs/platform/actions/common/actions
'
;
import
{
IWorkbenchContribution
,
IWorkbenchContributionsRegistry
,
Extensions
as
WorkbenchContributionsExtensions
}
from
'
vs/workbench/common/contributions
'
;
import
{
LifecyclePhase
}
from
'
vs/platform/lifecycle/common/lifecycle
'
;
import
{
StatusbarAlignment
,
IStatusbarService
,
IStatusbarEntryAccessor
,
IStatusbarEntry
}
from
'
vs/
platform
/statusbar/common/statusbar
'
;
import
{
StatusbarAlignment
,
IStatusbarService
,
IStatusbarEntryAccessor
,
IStatusbarEntry
}
from
'
vs/
workbench/services
/statusbar/common/statusbar
'
;
import
{
ILabelService
}
from
'
vs/platform/label/common/label
'
;
import
{
IContextKeyService
}
from
'
vs/platform/contextkey/common/contextkey
'
;
import
{
ICommandService
}
from
'
vs/platform/commands/common/commands
'
;
...
...
src/vs/workbench/contrib/scm/browser/activity.ts
浏览文件 @
64eed745
...
...
@@ -11,7 +11,7 @@ import { VIEWLET_ID, ISCMService, ISCMRepository } from 'vs/workbench/contrib/sc
import
{
IActivityService
,
NumberBadge
}
from
'
vs/workbench/services/activity/common/activity
'
;
import
{
IWorkbenchContribution
}
from
'
vs/workbench/common/contributions
'
;
import
{
IContextKeyService
,
IContextKey
}
from
'
vs/platform/contextkey/common/contextkey
'
;
import
{
IStatusbarService
,
StatusbarAlignment
as
MainThreadStatusBarAlignment
}
from
'
vs/
platform
/statusbar/common/statusbar
'
;
import
{
IStatusbarService
,
StatusbarAlignment
as
MainThreadStatusBarAlignment
}
from
'
vs/
workbench/services
/statusbar/common/statusbar
'
;
import
{
IEditorService
}
from
'
vs/workbench/services/editor/common/editorService
'
;
import
{
commonPrefixLength
}
from
'
vs/base/common/strings
'
;
import
{
IConfigurationService
}
from
'
vs/platform/configuration/common/configuration
'
;
...
...
src/vs/workbench/contrib/tasks/browser/task.contribution.ts
浏览文件 @
64eed745
...
...
@@ -19,7 +19,7 @@ import { IProgressService, ProgressLocation } from 'vs/platform/progress/common/
import
*
as
jsonContributionRegistry
from
'
vs/platform/jsonschemas/common/jsonContributionRegistry
'
;
import
{
IJSONSchema
}
from
'
vs/base/common/jsonSchema
'
;
import
{
StatusbarAlignment
,
IStatusbarService
,
IStatusbarEntryAccessor
,
IStatusbarEntry
}
from
'
vs/
platform
/statusbar/common/statusbar
'
;
import
{
StatusbarAlignment
,
IStatusbarService
,
IStatusbarEntryAccessor
,
IStatusbarEntry
}
from
'
vs/
workbench/services
/statusbar/common/statusbar
'
;
import
{
IQuickOpenRegistry
,
Extensions
as
QuickOpenExtensions
,
QuickOpenHandlerDescriptor
}
from
'
vs/workbench/browser/quickopen
'
;
import
{
IOutputChannelRegistry
,
Extensions
as
OutputExt
}
from
'
vs/workbench/contrib/output/common/output
'
;
...
...
src/vs/workbench/electron-browser/desktop.main.ts
浏览文件 @
64eed745
...
...
@@ -24,7 +24,7 @@ import { IWindowConfiguration } from 'vs/platform/windows/common/windows';
import
{
webFrame
}
from
'
electron
'
;
import
{
ISingleFolderWorkspaceIdentifier
,
IWorkspaceInitializationPayload
,
ISingleFolderWorkspaceInitializationPayload
,
reviveWorkspaceIdentifier
}
from
'
vs/platform/workspaces/common/workspaces
'
;
import
{
ConsoleLogService
,
MultiplexLogService
,
ILogService
,
ConsoleLogInMainService
}
from
'
vs/platform/log/common/log
'
;
import
{
StorageService
}
from
'
vs/platform/storage/node/storageService
'
;
import
{
Native
StorageService
}
from
'
vs/platform/storage/node/storageService
'
;
import
{
LoggerChannelClient
,
FollowerLogService
}
from
'
vs/platform/log/common/logIpc
'
;
import
{
Schemas
}
from
'
vs/base/common/network
'
;
import
{
sanitizeFilePath
}
from
'
vs/base/common/extpath
'
;
...
...
@@ -139,7 +139,7 @@ class DesktopMain extends Disposable {
services
.
logService
.
trace
(
'
workbench configuration
'
,
JSON
.
stringify
(
this
.
environmentService
.
configuration
));
}
private
registerListeners
(
workbench
:
Workbench
,
storageService
:
StorageService
):
void
{
private
registerListeners
(
workbench
:
Workbench
,
storageService
:
Native
StorageService
):
void
{
// Layout
this
.
_register
(
addDisposableListener
(
window
,
EventType
.
RESIZE
,
e
=>
this
.
onWindowResize
(
e
,
true
,
workbench
)));
...
...
@@ -167,7 +167,7 @@ class DesktopMain extends Disposable {
}
}
private
async
initServices
():
Promise
<
{
serviceCollection
:
ServiceCollection
,
logService
:
ILogService
,
storageService
:
StorageService
}
>
{
private
async
initServices
():
Promise
<
{
serviceCollection
:
ServiceCollection
,
logService
:
ILogService
,
storageService
:
Native
StorageService
}
>
{
const
serviceCollection
=
new
ServiceCollection
();
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
...
...
@@ -335,9 +335,9 @@ class DesktopMain extends Disposable {
}
}
private
async
createStorageService
(
payload
:
IWorkspaceInitializationPayload
,
logService
:
ILogService
,
mainProcessService
:
IMainProcessService
):
Promise
<
StorageService
>
{
private
async
createStorageService
(
payload
:
IWorkspaceInitializationPayload
,
logService
:
ILogService
,
mainProcessService
:
IMainProcessService
):
Promise
<
Native
StorageService
>
{
const
globalStorageDatabase
=
new
GlobalStorageDatabaseChannelClient
(
mainProcessService
.
getChannel
(
'
storage
'
));
const
storageService
=
new
StorageService
(
globalStorageDatabase
,
logService
,
this
.
environmentService
);
const
storageService
=
new
Native
StorageService
(
globalStorageDatabase
,
logService
,
this
.
environmentService
);
try
{
await
storageService
.
initialize
(
payload
);
...
...
src/vs/workbench/services/credentials/browser/credentialsService.ts
浏览文件 @
64eed745
...
...
@@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
ICredentialsService
}
from
'
vs/
platform
/credentials/common/credentials
'
;
import
{
ICredentialsService
}
from
'
vs/
workbench/services
/credentials/common/credentials
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
IWorkbenchEnvironmentService
}
from
'
vs/workbench/services/environment/common/environmentService
'
;
...
...
src/vs/
platform
/credentials/common/credentials.ts
→
src/vs/
workbench/services
/credentials/common/credentials.ts
浏览文件 @
64eed745
文件已移动
src/vs/workbench/services/credentials/node/credentialsService.ts
浏览文件 @
64eed745
...
...
@@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
ICredentialsService
}
from
'
vs/
platform
/credentials/common/credentials
'
;
import
{
ICredentialsService
}
from
'
vs/
workbench/services
/credentials/common/credentials
'
;
import
{
IdleValue
}
from
'
vs/base/common/async
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
...
...
src/vs/workbench/services/electron/electron-browser/electronService.ts
浏览文件 @
64eed745
...
...
@@ -5,7 +5,7 @@
import
{
IElectronService
}
from
'
vs/platform/electron/node/electron
'
;
import
{
IMainProcessService
}
from
'
vs/platform/ipc/electron-browser/mainProcessService
'
;
import
{
createChannelSender
}
from
'
vs/
platform
/ipc/node/ipcChannelCreator
'
;
import
{
createChannelSender
}
from
'
vs/
base/parts
/ipc/node/ipcChannelCreator
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
IElectronEnvironmentService
}
from
'
vs/workbench/services/electron/electron-browser/electronEnvironmentService
'
;
...
...
src/vs/
platform
/lifecycle/browser/lifecycleService.ts
→
src/vs/
workbench/services
/lifecycle/browser/lifecycleService.ts
浏览文件 @
64eed745
...
...
@@ -3,10 +3,11 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
ShutdownReason
}
from
'
vs/platform/lifecycle/common/lifecycle
'
;
import
{
ShutdownReason
,
ILifecycleService
}
from
'
vs/platform/lifecycle/common/lifecycle
'
;
import
{
ILogService
}
from
'
vs/platform/log/common/log
'
;
import
{
AbstractLifecycleService
}
from
'
vs/platform/lifecycle/common/lifecycleService
'
;
import
{
localize
}
from
'
vs/nls
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
export
class
BrowserLifecycleService
extends
AbstractLifecycleService
{
...
...
@@ -61,3 +62,5 @@ export class BrowserLifecycleService extends AbstractLifecycleService {
return
null
;
}
}
registerSingleton
(
ILifecycleService
,
BrowserLifecycleService
);
src/vs/workbench/services/lifecycle/electron-browser/lifecycleService.ts
浏览文件 @
64eed745
...
...
@@ -14,7 +14,7 @@ import { onUnexpectedError } from 'vs/base/common/errors';
import
{
AbstractLifecycleService
}
from
'
vs/platform/lifecycle/common/lifecycleService
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
export
class
LifecycleService
extends
AbstractLifecycleService
{
export
class
Native
LifecycleService
extends
AbstractLifecycleService
{
private
static
readonly
LAST_SHUTDOWN_REASON_KEY
=
'
lifecyle.lastShutdownReason
'
;
...
...
@@ -36,8 +36,8 @@ export class LifecycleService extends AbstractLifecycleService {
}
private
resolveStartupKind
():
StartupKind
{
const
lastShutdownReason
=
this
.
storageService
.
getNumber
(
LifecycleService
.
LAST_SHUTDOWN_REASON_KEY
,
StorageScope
.
WORKSPACE
);
this
.
storageService
.
remove
(
LifecycleService
.
LAST_SHUTDOWN_REASON_KEY
,
StorageScope
.
WORKSPACE
);
const
lastShutdownReason
=
this
.
storageService
.
getNumber
(
Native
LifecycleService
.
LAST_SHUTDOWN_REASON_KEY
,
StorageScope
.
WORKSPACE
);
this
.
storageService
.
remove
(
Native
LifecycleService
.
LAST_SHUTDOWN_REASON_KEY
,
StorageScope
.
WORKSPACE
);
let
startupKind
:
StartupKind
;
if
(
lastShutdownReason
===
ShutdownReason
.
RELOAD
)
{
...
...
@@ -92,7 +92,7 @@ export class LifecycleService extends AbstractLifecycleService {
// Save shutdown reason to retrieve on next startup
this
.
storageService
.
onWillSaveState
(
e
=>
{
if
(
e
.
reason
===
WillSaveStateReason
.
SHUTDOWN
)
{
this
.
storageService
.
store
(
LifecycleService
.
LAST_SHUTDOWN_REASON_KEY
,
this
.
shutdownReason
,
StorageScope
.
WORKSPACE
);
this
.
storageService
.
store
(
Native
LifecycleService
.
LAST_SHUTDOWN_REASON_KEY
,
this
.
shutdownReason
,
StorageScope
.
WORKSPACE
);
}
});
}
...
...
@@ -134,4 +134,4 @@ export class LifecycleService extends AbstractLifecycleService {
}
}
registerSingleton
(
ILifecycleService
,
LifecycleService
);
registerSingleton
(
ILifecycleService
,
Native
LifecycleService
);
src/vs/workbench/services/progress/browser/progressService.ts
浏览文件 @
64eed745
...
...
@@ -9,7 +9,7 @@ import { localize } from 'vs/nls';
import
{
IDisposable
,
dispose
,
DisposableStore
,
MutableDisposable
,
Disposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
IProgressService
,
IProgressOptions
,
IProgressStep
,
ProgressLocation
,
IProgress
,
Progress
,
IProgressCompositeOptions
,
IProgressNotificationOptions
,
IProgressRunner
,
IProgressIndicator
}
from
'
vs/platform/progress/common/progress
'
;
import
{
IViewletService
}
from
'
vs/workbench/services/viewlet/browser/viewlet
'
;
import
{
StatusbarAlignment
,
IStatusbarService
}
from
'
vs/
platform
/statusbar/common/statusbar
'
;
import
{
StatusbarAlignment
,
IStatusbarService
}
from
'
vs/
workbench/services
/statusbar/common/statusbar
'
;
import
{
timeout
}
from
'
vs/base/common/async
'
;
import
{
ProgressBadge
,
IActivityService
}
from
'
vs/workbench/services/activity/common/activity
'
;
import
{
INotificationService
,
Severity
,
INotificationHandle
,
INotificationActions
}
from
'
vs/platform/notification/common/notification
'
;
...
...
src/vs/
platform
/statusbar/common/statusbar.ts
→
src/vs/
workbench/services
/statusbar/common/statusbar.ts
浏览文件 @
64eed745
文件已移动
src/vs/workbench/workbench.web.main.ts
浏览文件 @
64eed745
...
...
@@ -47,14 +47,13 @@ import 'vs/workbench/services/host/browser/browserHostService';
import
'
vs/workbench/services/request/browser/requestService
'
;
import
'
vs/workbench/services/workspace/browser/workspacesHistoryService
'
;
import
'
vs/workbench/services/workspace/browser/workspaceEditingService
'
;
import
'
vs/workbench/services/lifecycle/browser/lifecycleService
'
;
import
{
registerSingleton
}
from
'
vs/platform/instantiation/common/extensions
'
;
import
{
IClipboardService
}
from
'
vs/platform/clipboard/common/clipboardService
'
;
import
{
BrowserClipboardService
}
from
'
vs/platform/clipboard/browser/clipboardService
'
;
import
{
IAccessibilityService
}
from
'
vs/platform/accessibility/common/accessibility
'
;
import
{
BrowserAccessibilityService
}
from
'
vs/platform/accessibility/common/accessibilityService
'
;
import
{
BrowserLifecycleService
}
from
'
vs/platform/lifecycle/browser/lifecycleService
'
;
import
{
ILifecycleService
}
from
'
vs/platform/lifecycle/common/lifecycle
'
;
import
{
IContextMenuService
}
from
'
vs/platform/contextview/browser/contextView
'
;
import
{
ContextMenuService
}
from
'
vs/platform/contextview/browser/contextMenuService
'
;
import
{
IBackupFileService
}
from
'
vs/workbench/services/backup/common/backup
'
;
...
...
@@ -74,7 +73,6 @@ registerSingleton(IExtensionManagementService, ExtensionManagementService);
registerSingleton
(
IBackupFileService
,
BackupFileService
);
registerSingleton
(
IClipboardService
,
BrowserClipboardService
,
true
);
registerSingleton
(
IAccessibilityService
,
BrowserAccessibilityService
,
true
);
registerSingleton
(
ILifecycleService
,
BrowserLifecycleService
);
registerSingleton
(
IContextMenuService
,
ContextMenuService
);
registerSingleton
(
ITunnelService
,
NoOpTunnelService
,
true
);
registerSingleton
(
ILoggerService
,
FileLoggerService
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录