Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
徽霖
Vscode
提交
b4107923
V
Vscode
项目概览
徽霖
/
Vscode
通知
9
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,发现更多精彩内容 >>
提交
b4107923
编写于
7月 08, 2016
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixes #8800: Move ScrollbarVisibility to /common/
上级
9b18dc50
变更
20
隐藏空白更改
内联
并排
Showing
20 changed file
with
28 addition
and
26 deletion
+28
-26
build/monaco/monaco.d.ts.recipe
build/monaco/monaco.d.ts.recipe
+1
-1
src/vs/base/browser/ui/list/listView.ts
src/vs/base/browser/ui/list/listView.ts
+1
-1
src/vs/base/browser/ui/scrollbar/abstractScrollbar.ts
src/vs/base/browser/ui/scrollbar/abstractScrollbar.ts
+1
-2
src/vs/base/browser/ui/scrollbar/horizontalScrollbar.ts
src/vs/base/browser/ui/scrollbar/horizontalScrollbar.ts
+2
-2
src/vs/base/browser/ui/scrollbar/scrollableElement.ts
src/vs/base/browser/ui/scrollbar/scrollableElement.ts
+2
-2
src/vs/base/browser/ui/scrollbar/scrollableElementOptions.ts
src/vs/base/browser/ui/scrollbar/scrollableElementOptions.ts
+1
-5
src/vs/base/browser/ui/scrollbar/scrollbarVisibilityController.ts
...ase/browser/ui/scrollbar/scrollbarVisibilityController.ts
+1
-1
src/vs/base/browser/ui/scrollbar/verticalScrollbar.ts
src/vs/base/browser/ui/scrollbar/verticalScrollbar.ts
+2
-2
src/vs/base/common/scrollable.ts
src/vs/base/common/scrollable.ts
+6
-0
src/vs/base/parts/quickopen/browser/quickOpenWidget.ts
src/vs/base/parts/quickopen/browser/quickOpenWidget.ts
+1
-1
src/vs/base/parts/tree/browser/tree.ts
src/vs/base/parts/tree/browser/tree.ts
+1
-1
src/vs/base/parts/tree/browser/treeView.ts
src/vs/base/parts/tree/browser/treeView.ts
+1
-1
src/vs/editor/browser/standalone/standaloneEditor.ts
src/vs/editor/browser/standalone/standaloneEditor.ts
+1
-1
src/vs/editor/common/config/commonEditorConfig.ts
src/vs/editor/common/config/commonEditorConfig.ts
+1
-1
src/vs/editor/common/editorCommon.ts
src/vs/editor/common/editorCommon.ts
+1
-1
src/vs/editor/contrib/quickFix/browser/quickFixSelectionWidget.ts
...ditor/contrib/quickFix/browser/quickFixSelectionWidget.ts
+1
-1
src/vs/monaco.d.ts
src/vs/monaco.d.ts
+1
-0
src/vs/workbench/browser/parts/editor/binaryDiffEditor.ts
src/vs/workbench/browser/parts/editor/binaryDiffEditor.ts
+1
-1
src/vs/workbench/browser/parts/editor/binaryEditor.ts
src/vs/workbench/browser/parts/editor/binaryEditor.ts
+1
-1
src/vs/workbench/browser/parts/editor/tabsTitleControl.ts
src/vs/workbench/browser/parts/editor/tabsTitleControl.ts
+1
-1
未找到文件。
build/monaco/monaco.d.ts.recipe
浏览文件 @
b4107923
...
...
@@ -61,7 +61,7 @@ export interface ICommandHandler {
#include(vs/editor/browser/standalone/standaloneServices): IEditorOverrideServices
#include(vs/platform/markers/common/markers): IMarkerData
#include(vs/editor/browser/standalone/colorizer): IColorizerOptions, IColorizerElementOptions
#include(vs/base/
browser/ui/scrollbar/scrollableElementOptions
): ScrollbarVisibility
#include(vs/base/
common/scrollable
): ScrollbarVisibility
#include(vs/base/common/actions): IAction
#includeAll(vs/editor/common/editorCommon;IMode=>languages.IMode): IPosition, IRange, ISelection, SelectionDirection, IScrollEvent
#includeAll(vs/editor/browser/editorBrowser;editorCommon.=>):
...
...
src/vs/base/browser/ui/list/listView.ts
浏览文件 @
b4107923
...
...
@@ -8,7 +8,7 @@ import { IDisposable, dispose } from 'vs/base/common/lifecycle';
import
{
Gesture
}
from
'
vs/base/browser/touch
'
;
import
*
as
DOM
from
'
vs/base/browser/dom
'
;
import
{
ScrollableElement
}
from
'
vs/base/browser/ui/scrollbar/scrollableElement
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
browser/ui/scrollbar/scrollableElementOptions
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
common/scrollable
'
;
import
{
RangeMap
,
IRange
,
relativeComplement
,
each
}
from
'
./rangeMap
'
;
import
{
IDelegate
,
IRenderer
}
from
'
./list
'
;
import
{
RowCache
,
IRow
}
from
'
./rowCache
'
;
...
...
src/vs/base/browser/ui/scrollbar/abstractScrollbar.ts
浏览文件 @
b4107923
...
...
@@ -13,8 +13,7 @@ import {FastDomNode, createFastDomNode} from 'vs/base/browser/styleMutator';
import
{
ScrollbarState
}
from
'
vs/base/browser/ui/scrollbar/scrollbarState
'
;
import
{
ScrollbarArrow
,
ScrollbarArrowOptions
}
from
'
vs/base/browser/ui/scrollbar/scrollbarArrow
'
;
import
{
ScrollbarVisibilityController
}
from
'
vs/base/browser/ui/scrollbar/scrollbarVisibilityController
'
;
import
{
Scrollable
}
from
'
vs/base/common/scrollable
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/browser/ui/scrollbar/scrollableElementOptions
'
;
import
{
Scrollable
,
ScrollbarVisibility
}
from
'
vs/base/common/scrollable
'
;
/**
* The orthogonal distance to the slider at which dragging "resets". This implements "snapping"
...
...
src/vs/base/browser/ui/scrollbar/horizontalScrollbar.ts
浏览文件 @
b4107923
...
...
@@ -7,8 +7,8 @@
import
{
AbstractScrollbar
,
ScrollbarHost
,
IMouseMoveEventData
}
from
'
vs/base/browser/ui/scrollbar/abstractScrollbar
'
;
import
{
IMouseEvent
,
StandardMouseWheelEvent
}
from
'
vs/base/browser/mouseEvent
'
;
import
{
IDomNodePagePosition
}
from
'
vs/base/browser/dom
'
;
import
{
Scroll
barVisibility
,
Scroll
ableElementResolvedOptions
}
from
'
vs/base/browser/ui/scrollbar/scrollableElementOptions
'
;
import
{
Scrollable
,
ScrollEvent
}
from
'
vs/base/common/scrollable
'
;
import
{
ScrollableElementResolvedOptions
}
from
'
vs/base/browser/ui/scrollbar/scrollableElementOptions
'
;
import
{
Scrollable
,
ScrollEvent
,
ScrollbarVisibility
}
from
'
vs/base/common/scrollable
'
;
import
{
ScrollbarState
}
from
'
vs/base/browser/ui/scrollbar/scrollbarState
'
;
import
{
ARROW_IMG_SIZE
}
from
'
vs/base/browser/ui/scrollbar/scrollbarArrow
'
;
...
...
src/vs/base/browser/ui/scrollbar/scrollableElement.ts
浏览文件 @
b4107923
...
...
@@ -12,9 +12,9 @@ import * as Platform from 'vs/base/common/platform';
import
{
StandardMouseWheelEvent
,
IMouseEvent
}
from
'
vs/base/browser/mouseEvent
'
;
import
{
HorizontalScrollbar
}
from
'
vs/base/browser/ui/scrollbar/horizontalScrollbar
'
;
import
{
VerticalScrollbar
}
from
'
vs/base/browser/ui/scrollbar/verticalScrollbar
'
;
import
{
Scroll
barVisibility
,
Scroll
ableElementCreationOptions
,
ScrollableElementChangeOptions
,
ScrollableElementResolvedOptions
}
from
'
vs/base/browser/ui/scrollbar/scrollableElementOptions
'
;
import
{
ScrollableElementCreationOptions
,
ScrollableElementChangeOptions
,
ScrollableElementResolvedOptions
}
from
'
vs/base/browser/ui/scrollbar/scrollableElementOptions
'
;
import
{
IDisposable
,
dispose
}
from
'
vs/base/common/lifecycle
'
;
import
{
Scrollable
,
ScrollEvent
,
INewScrollState
}
from
'
vs/base/common/scrollable
'
;
import
{
Scrollable
,
ScrollEvent
,
INewScrollState
,
ScrollbarVisibility
}
from
'
vs/base/common/scrollable
'
;
import
{
Widget
}
from
'
vs/base/browser/ui/widget
'
;
import
{
TimeoutTimer
}
from
'
vs/base/common/async
'
;
import
{
FastDomNode
,
createFastDomNode
}
from
'
vs/base/browser/styleMutator
'
;
...
...
src/vs/base/browser/ui/scrollbar/scrollableElementOptions.ts
浏览文件 @
b4107923
...
...
@@ -4,11 +4,7 @@
*--------------------------------------------------------------------------------------------*/
'
use strict
'
;
export
enum
ScrollbarVisibility
{
Auto
=
1
,
Hidden
=
2
,
Visible
=
3
}
import
{
ScrollbarVisibility
}
from
'
vs/base/common/scrollable
'
;
export
interface
ScrollableElementCreationOptions
{
/**
...
...
src/vs/base/browser/ui/scrollbar/scrollbarVisibilityController.ts
浏览文件 @
b4107923
...
...
@@ -7,7 +7,7 @@
import
{
Disposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
TimeoutTimer
}
from
'
vs/base/common/async
'
;
import
{
FastDomNode
}
from
'
vs/base/browser/styleMutator
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
browser/ui/scrollbar/scrollableElementOptions
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
common/scrollable
'
;
export
class
ScrollbarVisibilityController
extends
Disposable
{
private
_visibility
:
ScrollbarVisibility
;
...
...
src/vs/base/browser/ui/scrollbar/verticalScrollbar.ts
浏览文件 @
b4107923
...
...
@@ -7,8 +7,8 @@
import
{
AbstractScrollbar
,
ScrollbarHost
,
IMouseMoveEventData
}
from
'
vs/base/browser/ui/scrollbar/abstractScrollbar
'
;
import
{
IMouseEvent
,
StandardMouseWheelEvent
}
from
'
vs/base/browser/mouseEvent
'
;
import
{
IDomNodePagePosition
}
from
'
vs/base/browser/dom
'
;
import
{
Scroll
barVisibility
,
Scroll
ableElementResolvedOptions
}
from
'
vs/base/browser/ui/scrollbar/scrollableElementOptions
'
;
import
{
Scrollable
,
ScrollEvent
}
from
'
vs/base/common/scrollable
'
;
import
{
ScrollableElementResolvedOptions
}
from
'
vs/base/browser/ui/scrollbar/scrollableElementOptions
'
;
import
{
Scrollable
,
ScrollEvent
,
ScrollbarVisibility
}
from
'
vs/base/common/scrollable
'
;
import
{
ScrollbarState
}
from
'
vs/base/browser/ui/scrollbar/scrollbarState
'
;
import
{
ARROW_IMG_SIZE
}
from
'
vs/base/browser/ui/scrollbar/scrollbarArrow
'
;
...
...
src/vs/base/common/scrollable.ts
浏览文件 @
b4107923
...
...
@@ -7,6 +7,12 @@
import
{
Disposable
}
from
'
vs/base/common/lifecycle
'
;
import
Event
,
{
Emitter
}
from
'
vs/base/common/event
'
;
export
enum
ScrollbarVisibility
{
Auto
=
1
,
Hidden
=
2
,
Visible
=
3
}
export
interface
ScrollEvent
{
width
:
number
;
scrollWidth
:
number
;
...
...
src/vs/base/parts/quickopen/browser/quickOpenWidget.ts
浏览文件 @
b4107923
...
...
@@ -27,7 +27,7 @@ import DOM = require('vs/base/browser/dom');
import
{
IActionProvider
}
from
'
vs/base/parts/tree/browser/actionsRenderer
'
;
import
{
KeyCode
,
KeyMod
,
CommonKeybindings
}
from
'
vs/base/common/keyCodes
'
;
import
{
IDisposable
,
dispose
}
from
'
vs/base/common/lifecycle
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
browser/ui/scrollbar/scrollableElementOptions
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
common/scrollable
'
;
export
interface
IQuickOpenCallbacks
{
onOk
:
()
=>
void
;
...
...
src/vs/base/parts/tree/browser/tree.ts
浏览文件 @
b4107923
...
...
@@ -10,7 +10,7 @@ import Events = require('vs/base/common/eventEmitter');
import
Mouse
=
require
(
'
vs/base/browser/mouseEvent
'
);
import
Keyboard
=
require
(
'
vs/base/browser/keyboardEvent
'
);
import
{
INavigator
}
from
'
vs/base/common/iterator
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/browser/ui/scrollbar/scrollableElementOptions
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/common/scrollable
'
;
export
interface
ITree
extends
Events
.
IEventEmitter
{
...
...
src/vs/base/parts/tree/browser/treeView.ts
浏览文件 @
b4107923
...
...
@@ -18,7 +18,7 @@ import Model = require('vs/base/parts/tree/browser/treeModel');
import
dnd
=
require
(
'
./treeDnd
'
);
import
{
ArrayIterator
,
MappedIterator
}
from
'
vs/base/common/iterator
'
;
import
{
ScrollableElement
}
from
'
vs/base/browser/ui/scrollbar/scrollableElement
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/browser/ui/scrollbar/scrollableElementOptions
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/common/scrollable
'
;
import
{
HeightMap
}
from
'
vs/base/parts/tree/browser/treeViewModel
'
;
import
_
=
require
(
'
vs/base/parts/tree/browser/tree
'
);
import
{
IViewItem
}
from
'
vs/base/parts/tree/browser/treeViewModel
'
;
...
...
src/vs/editor/browser/standalone/standaloneEditor.ts
浏览文件 @
b4107923
...
...
@@ -10,7 +10,7 @@ import * as editorCommon from 'vs/editor/common/editorCommon';
import
{
ContentWidgetPositionPreference
,
OverlayWidgetPositionPreference
}
from
'
vs/editor/browser/editorBrowser
'
;
import
{
ShallowCancelThenPromise
}
from
'
vs/base/common/async
'
;
import
{
StandaloneEditor
,
IStandaloneCodeEditor
,
StandaloneDiffEditor
,
IStandaloneDiffEditor
,
startup
,
IEditorConstructionOptions
,
IDiffEditorConstructionOptions
}
from
'
vs/editor/browser/standalone/standaloneCodeEditor
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
browser/ui/scrollbar/scrollableElementOptions
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
common/scrollable
'
;
import
{
IEditorOverrideServices
,
ensureDynamicPlatformServices
,
ensureStaticPlatformServices
}
from
'
vs/editor/browser/standalone/standaloneServices
'
;
import
{
IDisposable
}
from
'
vs/base/common/lifecycle
'
;
import
URI
from
'
vs/base/common/uri
'
;
...
...
src/vs/editor/common/config/commonEditorConfig.ts
浏览文件 @
b4107923
...
...
@@ -14,7 +14,7 @@ import {Registry} from 'vs/platform/platform';
import
{
DefaultConfig
,
DEFAULT_INDENTATION
,
DEFAULT_TRIM_AUTO_WHITESPACE
,
GOLDEN_LINE_HEIGHT_RATIO
}
from
'
vs/editor/common/config/defaultConfig
'
;
import
*
as
editorCommon
from
'
vs/editor/common/editorCommon
'
;
import
{
EditorLayoutProvider
}
from
'
vs/editor/common/viewLayout/editorLayoutProvider
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
browser/ui/scrollbar/scrollableElementOptions
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
common/scrollable
'
;
// TODO@Alex: investigate if it is better to stick to 31 bits (see smi = SMall Integer)
// See https://thibaultlaurens.github.io/javascript/2013/04/29/how-the-v8-engine-works/#tagged-values
...
...
src/vs/editor/common/editorCommon.ts
浏览文件 @
b4107923
...
...
@@ -12,7 +12,7 @@ import {TPromise} from 'vs/base/common/winjs.base';
import
{
IInstantiationService
,
IConstructorSignature1
,
IConstructorSignature2
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
ILineContext
,
IMode
,
IToken
}
from
'
vs/editor/common/modes
'
;
import
{
ViewLineToken
}
from
'
vs/editor/common/core/viewLineToken
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
browser/ui/scrollbar/scrollableElementOptions
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
common/scrollable
'
;
import
{
IDisposable
}
from
'
vs/base/common/lifecycle
'
;
import
{
Position
}
from
'
vs/editor/common/core/position
'
;
import
{
Range
}
from
'
vs/editor/common/core/range
'
;
...
...
src/vs/editor/contrib/quickFix/browser/quickFixSelectionWidget.ts
浏览文件 @
b4107923
...
...
@@ -21,7 +21,7 @@ import {ContentWidgetPositionPreference, ICodeEditor, IContentWidget, IContentWi
import
{
IQuickFix2
}
from
'
../common/quickFix
'
;
import
{
QuickFixModel
}
from
'
./quickFixModel
'
;
import
{
alert
}
from
'
vs/base/browser/ui/aria/aria
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
browser/ui/scrollbar/scrollableElementOptions
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
common/scrollable
'
;
import
{
IDisposable
,
dispose
}
from
'
vs/base/common/lifecycle
'
;
var
$
=
dom
.
emmet
;
...
...
src/vs/monaco.d.ts
浏览文件 @
b4107923
...
...
@@ -926,6 +926,7 @@ declare module monaco.editor {
theme
?:
string
;
mimeType
?:
string
;
}
export
enum
ScrollbarVisibility
{
Auto
=
1
,
Hidden
=
2
,
...
...
src/vs/workbench/browser/parts/editor/binaryDiffEditor.ts
浏览文件 @
b4107923
...
...
@@ -19,7 +19,7 @@ import {BinaryEditorModel} from 'vs/workbench/common/editor/binaryEditorModel';
import
{
DiffEditorModel
}
from
'
vs/workbench/common/editor/diffEditorModel
'
;
import
{
IWorkbenchEditorService
}
from
'
vs/workbench/services/editor/common/editorService
'
;
import
{
ITelemetryService
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
browser/ui/scrollbar/scrollableElementOptions
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
common/scrollable
'
;
/**
* An implementation of editor for diffing binary files like images or videos.
...
...
src/vs/workbench/browser/parts/editor/binaryEditor.ts
浏览文件 @
b4107923
...
...
@@ -15,7 +15,7 @@ import {BinaryEditorModel} from 'vs/workbench/common/editor/binaryEditorModel';
import
{
IWorkbenchEditorService
}
from
'
vs/workbench/services/editor/common/editorService
'
;
import
{
ITelemetryService
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
DomScrollableElement
}
from
'
vs/base/browser/ui/scrollbar/scrollableElement
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
browser/ui/scrollbar/scrollableElementOptions
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
common/scrollable
'
;
/*
* This class is only intended to be subclassed and not instantiated.
...
...
src/vs/workbench/browser/parts/editor/tabsTitleControl.ts
浏览文件 @
b4107923
...
...
@@ -33,7 +33,7 @@ import {IMenuService} from 'vs/platform/actions/common/actions';
import
{
TitleControl
}
from
'
vs/workbench/browser/parts/editor/titleControl
'
;
import
{
IDisposable
,
dispose
}
from
'
vs/base/common/lifecycle
'
;
import
{
ScrollableElement
}
from
'
vs/base/browser/ui/scrollbar/scrollableElement
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
browser/ui/scrollbar/scrollableElementOptions
'
;
import
{
ScrollbarVisibility
}
from
'
vs/base/
common/scrollable
'
;
import
{
extractResources
}
from
'
vs/base/browser/dnd
'
;
export
class
TabsTitleControl
extends
TitleControl
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录