Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
dc31d5b5
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,发现更多精彩内容 >>
提交
dc31d5b5
编写于
5月 14, 2020
作者:
I
isidor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move accessibilityInformation to existing file and reanme to IAccessibilityInformation
上级
6e50f24e
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
13 addition
and
17 deletion
+13
-17
src/vs/base/common/accessibility.ts
src/vs/base/common/accessibility.ts
+0
-9
src/vs/platform/accessibility/common/accessibility.ts
src/vs/platform/accessibility/common/accessibility.ts
+5
-0
src/vs/workbench/api/browser/mainThreadStatusBar.ts
src/vs/workbench/api/browser/mainThreadStatusBar.ts
+2
-2
src/vs/workbench/api/common/extHost.protocol.ts
src/vs/workbench/api/common/extHost.protocol.ts
+2
-2
src/vs/workbench/common/views.ts
src/vs/workbench/common/views.ts
+2
-2
src/vs/workbench/contrib/timeline/common/timeline.ts
src/vs/workbench/contrib/timeline/common/timeline.ts
+2
-2
未找到文件。
src/vs/base/common/accessibility.ts
已删除
100644 → 0
浏览文件 @
6e50f24e
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export
interface
AccessibilityInformation
{
label
:
string
;
role
?:
string
;
}
src/vs/platform/accessibility/common/accessibility.ts
浏览文件 @
dc31d5b5
...
@@ -32,3 +32,8 @@ export const enum AccessibilitySupport {
...
@@ -32,3 +32,8 @@ export const enum AccessibilitySupport {
}
}
export
const
CONTEXT_ACCESSIBILITY_MODE_ENABLED
=
new
RawContextKey
<
boolean
>
(
'
accessibilityModeEnabled
'
,
false
);
export
const
CONTEXT_ACCESSIBILITY_MODE_ENABLED
=
new
RawContextKey
<
boolean
>
(
'
accessibilityModeEnabled
'
,
false
);
export
interface
IAccessibilityInformation
{
label
:
string
;
role
?:
string
;
}
src/vs/workbench/api/browser/mainThreadStatusBar.ts
浏览文件 @
dc31d5b5
...
@@ -9,7 +9,7 @@ import { ThemeColor } from 'vs/platform/theme/common/themeService';
...
@@ -9,7 +9,7 @@ import { ThemeColor } from 'vs/platform/theme/common/themeService';
import
{
extHostNamedCustomer
}
from
'
vs/workbench/api/common/extHostCustomers
'
;
import
{
extHostNamedCustomer
}
from
'
vs/workbench/api/common/extHostCustomers
'
;
import
{
dispose
}
from
'
vs/base/common/lifecycle
'
;
import
{
dispose
}
from
'
vs/base/common/lifecycle
'
;
import
{
Command
}
from
'
vs/editor/common/modes
'
;
import
{
Command
}
from
'
vs/editor/common/modes
'
;
import
{
AccessibilityInformation
}
from
'
vs/base
/common/accessibility
'
;
import
{
IAccessibilityInformation
}
from
'
vs/platform/accessibility
/common/accessibility
'
;
@
extHostNamedCustomer
(
MainContext
.
MainThreadStatusBar
)
@
extHostNamedCustomer
(
MainContext
.
MainThreadStatusBar
)
export
class
MainThreadStatusBar
implements
MainThreadStatusBarShape
{
export
class
MainThreadStatusBar
implements
MainThreadStatusBarShape
{
...
@@ -26,7 +26,7 @@ export class MainThreadStatusBar implements MainThreadStatusBarShape {
...
@@ -26,7 +26,7 @@ export class MainThreadStatusBar implements MainThreadStatusBarShape {
this
.
entries
.
clear
();
this
.
entries
.
clear
();
}
}
$setEntry
(
id
:
number
,
statusId
:
string
,
statusName
:
string
,
text
:
string
,
tooltip
:
string
|
undefined
,
command
:
Command
|
undefined
,
color
:
string
|
ThemeColor
|
undefined
,
alignment
:
MainThreadStatusBarAlignment
,
priority
:
number
|
undefined
,
accessibilityInformation
:
AccessibilityInformation
):
void
{
$setEntry
(
id
:
number
,
statusId
:
string
,
statusName
:
string
,
text
:
string
,
tooltip
:
string
|
undefined
,
command
:
Command
|
undefined
,
color
:
string
|
ThemeColor
|
undefined
,
alignment
:
MainThreadStatusBarAlignment
,
priority
:
number
|
undefined
,
accessibilityInformation
:
I
AccessibilityInformation
):
void
{
// if there are icons in the text use the tooltip for the aria label
// if there are icons in the text use the tooltip for the aria label
let
ariaLabel
:
string
;
let
ariaLabel
:
string
;
if
(
accessibilityInformation
)
{
if
(
accessibilityInformation
)
{
...
...
src/vs/workbench/api/common/extHost.protocol.ts
浏览文件 @
dc31d5b5
...
@@ -56,7 +56,7 @@ import { CallHierarchyItem } from 'vs/workbench/contrib/callHierarchy/common/cal
...
@@ -56,7 +56,7 @@ import { CallHierarchyItem } from 'vs/workbench/contrib/callHierarchy/common/cal
import
{
Dto
}
from
'
vs/base/common/types
'
;
import
{
Dto
}
from
'
vs/base/common/types
'
;
import
{
ISerializableEnvironmentVariableCollection
}
from
'
vs/workbench/contrib/terminal/common/environmentVariable
'
;
import
{
ISerializableEnvironmentVariableCollection
}
from
'
vs/workbench/contrib/terminal/common/environmentVariable
'
;
import
{
DebugConfigurationProviderTriggerKind
}
from
'
vs/workbench/api/common/extHostTypes
'
;
import
{
DebugConfigurationProviderTriggerKind
}
from
'
vs/workbench/api/common/extHostTypes
'
;
import
{
AccessibilityInformation
}
from
'
vs/base
/common/accessibility
'
;
import
{
IAccessibilityInformation
}
from
'
vs/platform/accessibility
/common/accessibility
'
;
export
interface
IEnvironment
{
export
interface
IEnvironment
{
isExtensionDevelopmentDebug
:
boolean
;
isExtensionDevelopmentDebug
:
boolean
;
...
@@ -546,7 +546,7 @@ export interface MainThreadQuickOpenShape extends IDisposable {
...
@@ -546,7 +546,7 @@ export interface MainThreadQuickOpenShape extends IDisposable {
}
}
export
interface
MainThreadStatusBarShape
extends
IDisposable
{
export
interface
MainThreadStatusBarShape
extends
IDisposable
{
$setEntry
(
id
:
number
,
statusId
:
string
,
statusName
:
string
,
text
:
string
,
tooltip
:
string
|
undefined
,
command
:
ICommandDto
|
undefined
,
color
:
string
|
ThemeColor
|
undefined
,
alignment
:
statusbar
.
StatusbarAlignment
,
priority
:
number
|
undefined
,
accessibilityInformation
:
AccessibilityInformation
|
undefined
):
void
;
$setEntry
(
id
:
number
,
statusId
:
string
,
statusName
:
string
,
text
:
string
,
tooltip
:
string
|
undefined
,
command
:
ICommandDto
|
undefined
,
color
:
string
|
ThemeColor
|
undefined
,
alignment
:
statusbar
.
StatusbarAlignment
,
priority
:
number
|
undefined
,
accessibilityInformation
:
I
AccessibilityInformation
|
undefined
):
void
;
$dispose
(
id
:
number
):
void
;
$dispose
(
id
:
number
):
void
;
}
}
...
...
src/vs/workbench/common/views.ts
浏览文件 @
dc31d5b5
...
@@ -22,7 +22,7 @@ import { SetMap } from 'vs/base/common/collections';
...
@@ -22,7 +22,7 @@ import { SetMap } from 'vs/base/common/collections';
import
{
IProgressIndicator
}
from
'
vs/platform/progress/common/progress
'
;
import
{
IProgressIndicator
}
from
'
vs/platform/progress/common/progress
'
;
import
Severity
from
'
vs/base/common/severity
'
;
import
Severity
from
'
vs/base/common/severity
'
;
import
{
IPaneComposite
}
from
'
vs/workbench/common/panecomposite
'
;
import
{
IPaneComposite
}
from
'
vs/workbench/common/panecomposite
'
;
import
{
AccessibilityInformation
}
from
'
vs/base
/common/accessibility
'
;
import
{
IAccessibilityInformation
}
from
'
vs/platform/accessibility
/common/accessibility
'
;
export
const
TEST_VIEW_CONTAINER_ID
=
'
workbench.view.extension.test
'
;
export
const
TEST_VIEW_CONTAINER_ID
=
'
workbench.view.extension.test
'
;
...
@@ -636,7 +636,7 @@ export interface ITreeItem {
...
@@ -636,7 +636,7 @@ export interface ITreeItem {
children
?:
ITreeItem
[];
children
?:
ITreeItem
[];
accessibilityInformation
?:
AccessibilityInformation
;
accessibilityInformation
?:
I
AccessibilityInformation
;
}
}
export
interface
ITreeViewDataProvider
{
export
interface
ITreeViewDataProvider
{
...
...
src/vs/workbench/contrib/timeline/common/timeline.ts
浏览文件 @
dc31d5b5
...
@@ -10,7 +10,7 @@ import { URI } from 'vs/base/common/uri';
...
@@ -10,7 +10,7 @@ import { URI } from 'vs/base/common/uri';
import
{
Command
}
from
'
vs/editor/common/modes
'
;
import
{
Command
}
from
'
vs/editor/common/modes
'
;
import
{
ExtensionIdentifier
}
from
'
vs/platform/extensions/common/extensions
'
;
import
{
ExtensionIdentifier
}
from
'
vs/platform/extensions/common/extensions
'
;
import
{
createDecorator
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
createDecorator
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
AccessibilityInformation
}
from
'
vs/base
/common/accessibility
'
;
import
{
IAccessibilityInformation
}
from
'
vs/platform/accessibility
/common/accessibility
'
;
export
function
toKey
(
extension
:
ExtensionIdentifier
|
string
,
source
:
string
)
{
export
function
toKey
(
extension
:
ExtensionIdentifier
|
string
,
source
:
string
)
{
return
`
${
typeof
extension
===
'
string
'
?
extension
:
ExtensionIdentifier
.
toKey
(
extension
)}
|
${
source
}
`
;
return
`
${
typeof
extension
===
'
string
'
?
extension
:
ExtensionIdentifier
.
toKey
(
extension
)}
|
${
source
}
`
;
...
@@ -25,7 +25,7 @@ export interface TimelineItem {
...
@@ -25,7 +25,7 @@ export interface TimelineItem {
id
?:
string
;
id
?:
string
;
timestamp
:
number
;
timestamp
:
number
;
label
:
string
;
label
:
string
;
accessibilityInformation
?:
AccessibilityInformation
;
accessibilityInformation
?:
I
AccessibilityInformation
;
icon
?:
URI
,
icon
?:
URI
,
iconDark
?:
URI
,
iconDark
?:
URI
,
themeIcon
?:
{
id
:
string
},
themeIcon
?:
{
id
:
string
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录