Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
86c743c2
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 搜索 >>
提交
86c743c2
编写于
7月 27, 2018
作者:
I
isidor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
simpleEditor: minor renames
上级
8faec971
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
44 addition
and
49 deletion
+44
-49
src/vs/workbench/parts/codeEditor/electron-browser/simpleEditorOptions.ts
.../parts/codeEditor/electron-browser/simpleEditorOptions.ts
+36
-41
src/vs/workbench/parts/debug/electron-browser/breakpointWidget.ts
...orkbench/parts/debug/electron-browser/breakpointWidget.ts
+3
-3
src/vs/workbench/parts/debug/electron-browser/repl.ts
src/vs/workbench/parts/debug/electron-browser/repl.ts
+2
-2
src/vs/workbench/parts/extensions/electron-browser/extensionsViewlet.ts
...ch/parts/extensions/electron-browser/extensionsViewlet.ts
+3
-3
未找到文件。
src/vs/workbench/parts/codeEditor/electron-browser/simpleEditor
WidgetConfig
.ts
→
src/vs/workbench/parts/codeEditor/electron-browser/simpleEditor
Options
.ts
浏览文件 @
86c743c2
...
...
@@ -5,8 +5,6 @@
import
{
IEditorOptions
}
from
'
vs/editor/common/config/editorOptions
'
;
import
{
ICodeEditorWidgetOptions
}
from
'
vs/editor/browser/widget/codeEditorWidget
'
;
// Allowed Editor Contributions:
import
{
MenuPreventer
}
from
'
vs/workbench/parts/codeEditor/electron-browser/menuPreventer
'
;
import
{
SelectionClipboard
}
from
'
vs/workbench/parts/codeEditor/electron-browser/selectionClipboard
'
;
import
{
ContextMenuController
}
from
'
vs/editor/contrib/contextmenu/contextmenu
'
;
...
...
@@ -14,44 +12,41 @@ import { SuggestController } from 'vs/editor/contrib/suggest/suggestController';
import
{
SnippetController2
}
from
'
vs/editor/contrib/snippet/snippetController2
'
;
import
{
TabCompletionController
}
from
'
vs/workbench/parts/snippets/electron-browser/tabCompletion
'
;
export
class
SimpleEditorWidgetConfig
{
public
static
getCodeEditorWidgetOptions
():
ICodeEditorWidgetOptions
{
return
{
isSimpleWidget
:
true
,
contributions
:
[
MenuPreventer
,
SelectionClipboard
,
ContextMenuController
,
SuggestController
,
SnippetController2
,
TabCompletionController
,
]
};
}
export
function
getSimpleCodeEditorWidgetOptions
():
ICodeEditorWidgetOptions
{
return
{
isSimpleWidget
:
true
,
contributions
:
[
MenuPreventer
,
SelectionClipboard
,
ContextMenuController
,
SuggestController
,
SnippetController2
,
TabCompletionController
,
]
};
}
public
static
getEditorOptions
():
IEditorOptions
{
return
{
wordWrap
:
'
on
'
,
overviewRulerLanes
:
0
,
glyphMargin
:
false
,
lineNumbers
:
'
off
'
,
folding
:
false
,
selectOnLineNumbers
:
false
,
hideCursorInOverviewRuler
:
true
,
selectionHighlight
:
false
,
scrollbar
:
{
horizontal
:
'
hidden
'
},
lineDecorationsWidth
:
0
,
overviewRulerBorder
:
false
,
scrollBeyondLastLine
:
false
,
renderLineHighlight
:
'
none
'
,
fixedOverflowWidgets
:
true
,
acceptSuggestionOnEnter
:
'
smart
'
,
minimap
:
{
enabled
:
false
}
};
}
export
function
getSimpleEditorOptions
():
IEditorOptions
{
return
{
wordWrap
:
'
on
'
,
overviewRulerLanes
:
0
,
glyphMargin
:
false
,
lineNumbers
:
'
off
'
,
folding
:
false
,
selectOnLineNumbers
:
false
,
hideCursorInOverviewRuler
:
true
,
selectionHighlight
:
false
,
scrollbar
:
{
horizontal
:
'
hidden
'
},
lineDecorationsWidth
:
0
,
overviewRulerBorder
:
false
,
scrollBeyondLastLine
:
false
,
renderLineHighlight
:
'
none
'
,
fixedOverflowWidgets
:
true
,
acceptSuggestionOnEnter
:
'
smart
'
,
minimap
:
{
enabled
:
false
}
};
}
src/vs/workbench/parts/debug/electron-browser/breakpointWidget.ts
浏览文件 @
86c743c2
...
...
@@ -17,7 +17,6 @@ import { IContextViewService } from 'vs/platform/contextview/browser/contextView
import
{
IDebugService
,
IBreakpoint
,
BreakpointWidgetContext
as
Context
,
CONTEXT_BREAKPOINT_WIDGET_VISIBLE
,
DEBUG_SCHEME
,
IDebugEditorContribution
,
EDITOR_CONTRIBUTION_ID
,
CONTEXT_IN_BREAKPOINT_WIDGET
}
from
'
vs/workbench/parts/debug/common/debug
'
;
import
{
attachSelectBoxStyler
}
from
'
vs/platform/theme/common/styler
'
;
import
{
IThemeService
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
SimpleEditorWidgetConfig
}
from
'
vs/workbench/parts/codeEditor/electron-browser/simpleEditorWidgetConfig
'
;
import
{
createDecorator
,
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IContextKeyService
}
from
'
vs/platform/contextkey/common/contextkey
'
;
import
{
ServicesAccessor
,
EditorCommand
,
registerEditorCommand
}
from
'
vs/editor/browser/editorExtensions
'
;
...
...
@@ -34,6 +33,7 @@ import { ServiceCollection } from 'vs/platform/instantiation/common/serviceColle
import
{
IDecorationOptions
}
from
'
vs/editor/common/editorCommon
'
;
import
{
CodeEditorWidget
}
from
'
vs/editor/browser/widget/codeEditorWidget
'
;
import
{
KeybindingWeight
}
from
'
vs/platform/keybinding/common/keybindingsRegistry
'
;
import
{
getSimpleEditorOptions
,
getSimpleCodeEditorWidgetOptions
}
from
'
vs/workbench/parts/codeEditor/electron-browser/simpleEditorOptions
'
;
const
$
=
dom
.
$
;
const
IPrivateBreakpointWidgetService
=
createDecorator
<
IPrivateBreakpointWidgetService
>
(
'
privateBreakopintWidgetService
'
);
...
...
@@ -200,8 +200,8 @@ export class BreakpointWidget extends ZoneWidget implements IPrivateBreakpointWi
const
scopedInstatiationService
=
this
.
instantiationService
.
createChild
(
new
ServiceCollection
(
[
IContextKeyService
,
scopedContextKeyService
],
[
IPrivateBreakpointWidgetService
,
this
]));
const
options
=
SimpleEditorWidgetConfig
.
get
EditorOptions
();
const
codeEditorWidgetOptions
=
SimpleEditorWidgetConfig
.
get
CodeEditorWidgetOptions
();
const
options
=
getSimple
EditorOptions
();
const
codeEditorWidgetOptions
=
getSimple
CodeEditorWidgetOptions
();
this
.
input
=
scopedInstatiationService
.
createInstance
(
CodeEditorWidget
,
container
,
options
,
codeEditorWidgetOptions
);
CONTEXT_IN_BREAKPOINT_WIDGET
.
bindTo
(
scopedContextKeyService
).
set
(
true
);
const
model
=
this
.
modelService
.
createModel
(
''
,
null
,
uri
.
parse
(
`
${
DEBUG_SCHEME
}
:
${
this
.
editor
.
getId
()}
:breakpointinput`
),
true
);
...
...
src/vs/workbench/parts/debug/electron-browser/repl.ts
浏览文件 @
86c743c2
...
...
@@ -30,7 +30,6 @@ import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
import
{
IInstantiationService
,
createDecorator
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
IStorageService
,
StorageScope
}
from
'
vs/platform/storage/common/storage
'
;
import
{
ReplExpressionsRenderer
,
ReplExpressionsController
,
ReplExpressionsDataSource
,
ReplExpressionsActionProvider
,
ReplExpressionsAccessibilityProvider
}
from
'
vs/workbench/parts/debug/electron-browser/replViewer
'
;
import
{
SimpleEditorWidgetConfig
}
from
'
vs/workbench/parts/codeEditor/electron-browser/simpleEditorWidgetConfig
'
;
import
{
ClearReplAction
}
from
'
vs/workbench/parts/debug/browser/debugActions
'
;
import
{
Panel
}
from
'
vs/workbench/browser/panel
'
;
import
{
IPanelService
}
from
'
vs/workbench/services/panel/common/panelService
'
;
...
...
@@ -48,6 +47,7 @@ import { HistoryNavigator } from 'vs/base/common/history';
import
{
IHistoryNavigationWidget
}
from
'
vs/base/browser/history
'
;
import
{
createAndBindHistoryNavigationWidgetScopedContextKeyService
}
from
'
vs/platform/widget/browser/contextScopedHistoryWidget
'
;
import
{
KeybindingWeight
}
from
'
vs/platform/keybinding/common/keybindingsRegistry
'
;
import
{
getSimpleEditorOptions
,
getSimpleCodeEditorWidgetOptions
}
from
'
vs/workbench/parts/codeEditor/electron-browser/simpleEditorOptions
'
;
const
$
=
dom
.
$
;
...
...
@@ -173,7 +173,7 @@ export class Repl extends Panel implements IPrivateReplService, IHistoryNavigati
const
scopedInstantiationService
=
this
.
instantiationService
.
createChild
(
new
ServiceCollection
(
[
IContextKeyService
,
scopedContextKeyService
],
[
IPrivateReplService
,
this
]));
this
.
replInput
=
scopedInstantiationService
.
createInstance
(
CodeEditorWidget
,
this
.
replInputContainer
,
SimpleEditorWidgetConfig
.
getEditorOptions
(),
SimpleEditorWidgetConfig
.
get
CodeEditorWidgetOptions
());
this
.
replInput
=
scopedInstantiationService
.
createInstance
(
CodeEditorWidget
,
this
.
replInputContainer
,
getSimpleEditorOptions
(),
getSimple
CodeEditorWidgetOptions
());
modes
.
SuggestRegistry
.
register
({
scheme
:
DEBUG_SCHEME
,
pattern
:
'
**/replinput
'
,
hasAccessToAllModels
:
true
},
{
triggerCharacters
:
[
'
.
'
],
...
...
src/vs/workbench/parts/extensions/electron-browser/extensionsViewlet.ts
浏览文件 @
86c743c2
...
...
@@ -64,8 +64,8 @@ import { IModelService } from 'vs/editor/common/services/modelService';
import
{
Range
}
from
'
vs/editor/common/core/range
'
;
import
{
Position
}
from
'
vs/editor/common/core/position
'
;
import
{
ITextModel
}
from
'
vs/editor/common/model
'
;
import
{
SimpleEditorWidgetConfig
}
from
'
vs/workbench/parts/codeEditor/electron-browser/simpleEditorWidgetConfig
'
;
import
{
IEditorOptions
}
from
'
vs/editor/common/config/editorOptions
'
;
import
{
getSimpleEditorOptions
,
getSimpleCodeEditorWidgetOptions
}
from
'
vs/workbench/parts/codeEditor/electron-browser/simpleEditorOptions
'
;
interface
SearchInputEvent
extends
Event
{
target
:
HTMLInputElement
;
...
...
@@ -341,8 +341,8 @@ export class ExtensionsViewlet extends ViewContainerViewlet implements IExtensio
const
header
=
append
(
this
.
root
,
$
(
'
.header
'
));
this
.
monacoStyleContainer
=
append
(
header
,
$
(
'
.monaco-container
'
));
this
.
searchBox
=
this
.
instantiationService
.
createInstance
(
CodeEditorWidget
,
this
.
monacoStyleContainer
,
mixinHTMLInputStyleOptions
(
SimpleEditorWidgetConfig
.
get
EditorOptions
(),
localize
(
'
searchExtensions
'
,
"
Search Extensions in Marketplace
"
)),
SimpleEditorWidgetConfig
.
get
CodeEditorWidgetOptions
());
mixinHTMLInputStyleOptions
(
getSimple
EditorOptions
(),
localize
(
'
searchExtensions
'
,
"
Search Extensions in Marketplace
"
)),
getSimple
CodeEditorWidgetOptions
());
this
.
placeholderText
=
append
(
this
.
monacoStyleContainer
,
$
(
'
.search-placeholder
'
,
null
,
localize
(
'
searchExtensions
'
,
"
Search Extensions in Marketplace
"
)));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录