Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
5b7bdacc
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,发现更多精彩内容 >>
提交
5b7bdacc
编写于
3月 04, 2019
作者:
D
Daniel Imms
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move terminalActions, electron-browser->browser
Part of #69115
上级
badedf5d
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
5 addition
and
5 deletion
+5
-5
src/tsconfig.strictNullChecks.json
src/tsconfig.strictNullChecks.json
+1
-1
src/vs/workbench/contrib/terminal/browser/terminalActions.ts
src/vs/workbench/contrib/terminal/browser/terminalActions.ts
+2
-2
src/vs/workbench/contrib/terminal/electron-browser/terminal.contribution.ts
...ontrib/terminal/electron-browser/terminal.contribution.ts
+1
-1
src/vs/workbench/contrib/terminal/electron-browser/terminalPanel.ts
...kbench/contrib/terminal/electron-browser/terminalPanel.ts
+1
-1
未找到文件。
src/tsconfig.strictNullChecks.json
浏览文件 @
5b7bdacc
...
...
@@ -278,6 +278,7 @@
"./vs/workbench/contrib/surveys/electron-browser/languageSurveys.contribution.ts"
,
"./vs/workbench/contrib/surveys/electron-browser/nps.contribution.ts"
,
"./vs/workbench/contrib/terminal/browser/terminalActions.ts"
,
"./vs/workbench/contrib/terminal/browser/terminalFindWidget.ts"
,
"./vs/workbench/contrib/terminal/browser/terminalLinkHandler.ts"
,
"./vs/workbench/contrib/terminal/browser/terminalQuickOpen.ts"
,
...
...
@@ -289,7 +290,6 @@
"./vs/workbench/contrib/terminal/common/terminalEnvironment.ts"
,
"./vs/workbench/contrib/terminal/common/terminalMenu.ts"
,
"./vs/workbench/contrib/terminal/common/terminalService.ts"
,
"./vs/workbench/contrib/terminal/electron-browser/terminalActions.ts"
,
"./vs/workbench/contrib/terminal/electron-browser/terminalConfigHelper.ts"
,
"./vs/workbench/contrib/terminal/electron-browser/terminalInstance.ts"
,
"./vs/workbench/contrib/terminal/electron-browser/terminalPanel.ts"
,
...
...
src/vs/workbench/contrib/terminal/
electron-
browser/terminalActions.ts
→
src/vs/workbench/contrib/terminal/browser/terminalActions.ts
浏览文件 @
5b7bdacc
...
...
@@ -4,7 +4,6 @@
*--------------------------------------------------------------------------------------------*/
import
*
as
nls
from
'
vs/nls
'
;
import
*
as
os
from
'
os
'
;
import
{
Action
,
IAction
}
from
'
vs/base/common/actions
'
;
import
{
EndOfLinePreference
}
from
'
vs/editor/common/model
'
;
import
{
ICodeEditorService
}
from
'
vs/editor/browser/services/codeEditorService
'
;
...
...
@@ -34,6 +33,7 @@ import { IConfigurationResolverService } from 'vs/workbench/services/configurati
import
{
IHistoryService
}
from
'
vs/workbench/services/history/common/history
'
;
import
{
Schemas
}
from
'
vs/base/common/network
'
;
import
{
URI
}
from
'
vs/base/common/uri
'
;
import
{
isWindows
}
from
'
vs/base/common/platform
'
;
export
const
TERMINAL_PICKER_PREFIX
=
'
term
'
;
...
...
@@ -659,7 +659,7 @@ export class RunSelectedTextInTerminalAction extends Action {
if
(
selection
.
isEmpty
())
{
text
=
editor
.
getModel
().
getLineContent
(
selection
.
selectionStartLineNumber
).
trim
();
}
else
{
const
endOfLinePreference
=
os
.
EOL
===
'
\n
'
?
EndOfLinePreference
.
LF
:
EndOfLinePreference
.
CRLF
;
const
endOfLinePreference
=
isWindows
?
EndOfLinePreference
.
LF
:
EndOfLinePreference
.
CRLF
;
text
=
editor
.
getModel
().
getValueInRange
(
selection
,
endOfLinePreference
);
}
instance
.
sendText
(
text
,
true
);
...
...
src/vs/workbench/contrib/terminal/electron-browser/terminal.contribution.ts
浏览文件 @
5b7bdacc
...
...
@@ -16,7 +16,7 @@ import { getDefaultShell } from 'vs/workbench/contrib/terminal/node/terminal';
import
{
IWorkbenchActionRegistry
,
Extensions
as
ActionExtensions
}
from
'
vs/workbench/common/actions
'
;
import
{
KeyCode
,
KeyMod
}
from
'
vs/base/common/keyCodes
'
;
import
{
ContextKeyExpr
}
from
'
vs/platform/contextkey/common/contextkey
'
;
import
{
KillTerminalAction
,
ClearSelectionTerminalAction
,
CopyTerminalSelectionAction
,
CreateNewTerminalAction
,
CreateNewInActiveWorkspaceTerminalAction
,
FocusActiveTerminalAction
,
FocusNextTerminalAction
,
FocusPreviousTerminalAction
,
SelectDefaultShellWindowsTerminalAction
,
RunSelectedTextInTerminalAction
,
RunActiveFileInTerminalAction
,
ScrollDownTerminalAction
,
ScrollDownPageTerminalAction
,
ScrollToBottomTerminalAction
,
ScrollUpTerminalAction
,
ScrollUpPageTerminalAction
,
ScrollToTopTerminalAction
,
TerminalPasteAction
,
ToggleTerminalAction
,
ClearTerminalAction
,
AllowWorkspaceShellTerminalCommand
,
DisallowWorkspaceShellTerminalCommand
,
RenameTerminalAction
,
SelectAllTerminalAction
,
FocusTerminalFindWidgetAction
,
HideTerminalFindWidgetAction
,
DeleteWordLeftTerminalAction
,
DeleteWordRightTerminalAction
,
QuickOpenActionTermContributor
,
QuickOpenTermAction
,
TERMINAL_PICKER_PREFIX
,
MoveToLineStartTerminalAction
,
MoveToLineEndTerminalAction
,
SplitTerminalAction
,
SplitInActiveWorkspaceTerminalAction
,
FocusPreviousPaneTerminalAction
,
FocusNextPaneTerminalAction
,
ResizePaneLeftTerminalAction
,
ResizePaneRightTerminalAction
,
ResizePaneUpTerminalAction
,
ResizePaneDownTerminalAction
,
ScrollToPreviousCommandAction
,
ScrollToNextCommandAction
,
SelectToPreviousCommandAction
,
SelectToNextCommandAction
,
SelectToPreviousLineAction
,
SelectToNextLineAction
,
ToggleEscapeSequenceLoggingAction
,
SendSequenceTerminalCommand
,
ToggleRegexCommand
,
ToggleWholeWordCommand
,
ToggleCaseSensitiveCommand
,
FindNext
,
FindPrevious
,
DeleteToLineStartTerminalAction
}
from
'
vs/workbench/contrib/terminal/electron-
browser/terminalActions
'
;
import
{
ClearSelectionTerminalAction
,
CreateNewTerminalAction
,
CreateNewInActiveWorkspaceTerminalAction
,
FocusActiveTerminalAction
,
FocusNextTerminalAction
,
FocusPreviousTerminalAction
,
SelectDefaultShellWindowsTerminalAction
,
RunSelectedTextInTerminalAction
,
RunActiveFileInTerminalAction
,
ScrollDownTerminalAction
,
ScrollDownPageTerminalAction
,
ScrollToBottomTerminalAction
,
ScrollUpTerminalAction
,
ScrollUpPageTerminalAction
,
ScrollToTopTerminalAction
,
TerminalPasteAction
,
ClearTerminalAction
,
AllowWorkspaceShellTerminalCommand
,
DisallowWorkspaceShellTerminalCommand
,
RenameTerminalAction
,
FocusTerminalFindWidgetAction
,
HideTerminalFindWidgetAction
,
DeleteWordLeftTerminalAction
,
DeleteWordRightTerminalAction
,
QuickOpenActionTermContributor
,
QuickOpenTermAction
,
MoveToLineStartTerminalAction
,
MoveToLineEndTerminalAction
,
SplitTerminalAction
,
SplitInActiveWorkspaceTerminalAction
,
FocusPreviousPaneTerminalAction
,
FocusNextPaneTerminalAction
,
ResizePaneLeftTerminalAction
,
ResizePaneRightTerminalAction
,
ResizePaneUpTerminalAction
,
ResizePaneDownTerminalAction
,
ScrollToPreviousCommandAction
,
ScrollToNextCommandAction
,
SelectToPreviousCommandAction
,
SelectToNextCommandAction
,
SelectToPreviousLineAction
,
SelectToNextLineAction
,
ToggleEscapeSequenceLoggingAction
,
SendSequenceTerminalCommand
,
ToggleRegexCommand
,
ToggleWholeWordCommand
,
ToggleCaseSensitiveCommand
,
FindNext
,
FindPrevious
,
DeleteToLineStartTerminalAction
,
TERMINAL_PICKER_PREFIX
,
KillTerminalAction
,
CopyTerminalSelectionAction
,
SelectAllTerminalAction
,
ToggleTerminalAction
}
from
'
vs/workbench/contrib/terminal/
browser/terminalActions
'
;
import
{
Registry
}
from
'
vs/platform/registry/common/platform
'
;
import
{
SyncActionDescriptor
}
from
'
vs/platform/actions/common/actions
'
;
import
{
TerminalService
}
from
'
vs/workbench/contrib/terminal/electron-browser/terminalService
'
;
...
...
src/vs/workbench/contrib/terminal/electron-browser/terminalPanel.ts
浏览文件 @
5b7bdacc
...
...
@@ -17,7 +17,7 @@ import { ITerminalService, TERMINAL_PANEL_ID } from 'vs/workbench/contrib/termin
import
{
IThemeService
,
ITheme
,
registerThemingParticipant
,
ICssStyleCollector
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
TerminalFindWidget
}
from
'
vs/workbench/contrib/terminal/browser/terminalFindWidget
'
;
import
{
editorHoverBackground
,
editorHoverBorder
,
editorForeground
}
from
'
vs/platform/theme/common/colorRegistry
'
;
import
{
KillTerminalAction
,
SwitchTerminalAction
,
SwitchTerminalActionItem
,
CopyTerminalSelectionAction
,
TerminalPasteAction
,
ClearTerminalAction
,
SelectAllTerminalAction
,
CreateNewTerminalAction
,
SplitTerminalAction
}
from
'
vs/workbench/contrib/terminal/
electron-
browser/terminalActions
'
;
import
{
KillTerminalAction
,
SwitchTerminalAction
,
SwitchTerminalActionItem
,
CopyTerminalSelectionAction
,
TerminalPasteAction
,
ClearTerminalAction
,
SelectAllTerminalAction
,
CreateNewTerminalAction
,
SplitTerminalAction
}
from
'
vs/workbench/contrib/terminal/browser/terminalActions
'
;
import
{
Panel
}
from
'
vs/workbench/browser/panel
'
;
import
{
StandardMouseEvent
}
from
'
vs/base/browser/mouseEvent
'
;
import
{
URI
}
from
'
vs/base/common/uri
'
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录