未验证 提交 6d7800fe 编写于 作者: M Miguel Solorio 提交者: GitHub

Merge branch 'master' into misolori/seti-update-05-2020

...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
"keyword.control.anchor.regexp" "keyword.control.anchor.regexp"
], ],
"settings": { "settings": {
"foreground": "#ff0000" "foreground": "#EE0000"
} }
}, },
{ {
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
{ {
"scope": "constant.character.escape", "scope": "constant.character.escape",
"settings": { "settings": {
"foreground": "#ff0000" "foreground": "#EE0000"
} }
}, },
{ {
......
...@@ -318,10 +318,14 @@ suite('notebook workflow', () => { ...@@ -318,10 +318,14 @@ suite('notebook workflow', () => {
// ---- move up and down ---- // // ---- move up and down ---- //
await vscode.commands.executeCommand('notebook.cell.moveDown'); await vscode.commands.executeCommand('notebook.cell.moveDown');
assert.equal(vscode.notebook.activeNotebookEditor!.document.cells.indexOf(vscode.notebook.activeNotebookEditor!.selection!), 1,
`first move down, active cell ${vscode.notebook.activeNotebookEditor!.selection!.uri.toString()}, ${vscode.notebook.activeNotebookEditor!.selection!.source}`);
await vscode.commands.executeCommand('notebook.cell.moveDown'); await vscode.commands.executeCommand('notebook.cell.moveDown');
activeCell = vscode.notebook.activeNotebookEditor!.selection; activeCell = vscode.notebook.activeNotebookEditor!.selection;
assert.equal(vscode.notebook.activeNotebookEditor!.document.cells.indexOf(activeCell!), 2); assert.equal(vscode.notebook.activeNotebookEditor!.document.cells.indexOf(activeCell!), 2,
`second move down, active cell ${vscode.notebook.activeNotebookEditor!.selection!.uri.toString()}, ${vscode.notebook.activeNotebookEditor!.selection!.source}`);
assert.equal(vscode.notebook.activeNotebookEditor!.document.cells[0].source, 'test'); assert.equal(vscode.notebook.activeNotebookEditor!.document.cells[0].source, 'test');
assert.equal(vscode.notebook.activeNotebookEditor!.document.cells[1].source, ''); assert.equal(vscode.notebook.activeNotebookEditor!.document.cells[1].source, '');
assert.equal(vscode.notebook.activeNotebookEditor!.document.cells[2].source, 'test'); assert.equal(vscode.notebook.activeNotebookEditor!.document.cells[2].source, 'test');
......
...@@ -727,7 +727,7 @@ export class SelectBoxList extends Disposable implements ISelectBoxDelegate, ILi ...@@ -727,7 +727,7 @@ export class SelectBoxList extends Disposable implements ISelectBoxDelegate, ILi
mouseSupport: false, mouseSupport: false,
accessibilityProvider: { accessibilityProvider: {
getAriaLabel: (element) => element.text, getAriaLabel: (element) => element.text,
getWidgetAriaLabel: () => localize('selectBox', "Select Box"), getWidgetAriaLabel: () => localize({ key: 'selectBox', comment: ['Behave like native select dropdown element.'] }, "Select Box"),
getRole: () => 'option', getRole: () => 'option',
getWidgetRole: () => 'listbox' getWidgetRole: () => 'listbox'
} }
......
...@@ -82,7 +82,7 @@ export class RenameInputField implements IContentWidget { ...@@ -82,7 +82,7 @@ export class RenameInputField implements IContentWidget {
const updateLabel = () => { const updateLabel = () => {
const [accept, preview] = this._acceptKeybindings; const [accept, preview] = this._acceptKeybindings;
this._keybindingService.lookupKeybinding(accept); this._keybindingService.lookupKeybinding(accept);
this._label!.innerText = localize('label', "{0} to Rename, {1} to Preview", this._keybindingService.lookupKeybinding(accept)?.getLabel(), this._keybindingService.lookupKeybinding(preview)?.getLabel()); this._label!.innerText = localize({ key: 'label', comment: ['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"'] }, "{0} to Rename, {1} to Preview", this._keybindingService.lookupKeybinding(accept)?.getLabel(), this._keybindingService.lookupKeybinding(preview)?.getLabel());
}; };
updateLabel(); updateLabel();
this._disposables.add(this._keybindingService.onDidUpdateKeybindings(updateLabel)); this._disposables.add(this._keybindingService.onDidUpdateKeybindings(updateLabel));
......
...@@ -687,7 +687,7 @@ export class MoveFocusedViewAction extends Action { ...@@ -687,7 +687,7 @@ export class MoveFocusedViewAction extends Action {
const quickPick = this.quickInputService.createQuickPick(); const quickPick = this.quickInputService.createQuickPick();
quickPick.placeholder = nls.localize('moveFocusedView.selectDestination', "Select a Destination for the View"); quickPick.placeholder = nls.localize('moveFocusedView.selectDestination', "Select a Destination for the View");
quickPick.title = nls.localize('moveFocusedView.title', "View: Move {0}", viewDescriptor.name); quickPick.title = nls.localize({ key: 'moveFocusedView.title', comment: ['{0} indicates the title of the view the user has selected to move.'] }, "View: Move {0}", viewDescriptor.name);
const items: Array<IQuickPickItem | IQuickPickSeparator> = []; const items: Array<IQuickPickItem | IQuickPickSeparator> = [];
const currentContainer = this.viewDescriptorService.getViewContainerByViewId(focusedViewId)!; const currentContainer = this.viewDescriptorService.getViewContainerByViewId(focusedViewId)!;
......
...@@ -377,10 +377,10 @@ export abstract class ViewPane extends Pane implements IView { ...@@ -377,10 +377,10 @@ export abstract class ViewPane extends Pane implements IView {
private calculateTitle(title: string): string { private calculateTitle(title: string): string {
const viewContainer = this.viewDescriptorService.getViewContainerByViewId(this.id)!; const viewContainer = this.viewDescriptorService.getViewContainerByViewId(this.id)!;
const model = this.viewDescriptorService.getViewContainerModel(viewContainer); const model = this.viewDescriptorService.getViewContainerModel(viewContainer);
const viewDescriptor = this.viewDescriptorService.getViewDescriptorById(this.id)!; const viewDescriptor = this.viewDescriptorService.getViewDescriptorById(this.id);
const isDefault = this.viewDescriptorService.getDefaultContainerById(this.id) === viewContainer; const isDefault = this.viewDescriptorService.getDefaultContainerById(this.id) === viewContainer;
if (!isDefault && viewDescriptor.containerTitle && model.title !== viewDescriptor.containerTitle) { if (!isDefault && viewDescriptor?.containerTitle && model.title !== viewDescriptor.containerTitle) {
return `${viewDescriptor.containerTitle}: ${title}`; return `${viewDescriptor.containerTitle}: ${title}`;
} }
......
...@@ -100,7 +100,7 @@ const VIEW_CONTAINER: ViewContainer = Registry.as<IViewContainersRegistry>(ViewE ...@@ -100,7 +100,7 @@ const VIEW_CONTAINER: ViewContainer = Registry.as<IViewContainersRegistry>(ViewE
id: OpenDebugConsoleAction.ID, id: OpenDebugConsoleAction.ID,
keybindings: openPanelKb keybindings: openPanelKb
}, },
order: 3, order: 2,
hideIfEmpty: true hideIfEmpty: true
}, ViewContainerLocation.Panel); }, ViewContainerLocation.Panel);
......
...@@ -292,7 +292,7 @@ export class UserDataSyncWorkbenchContribution extends Disposable implements IWo ...@@ -292,7 +292,7 @@ export class UserDataSyncWorkbenchContribution extends Disposable implements IWo
this.disableSync(); this.disableSync();
this.notificationService.notify({ this.notificationService.notify({
severity: Severity.Error, severity: Severity.Error,
message: localize('error upgrade required', "Turned off sync because the current version ({0}) of {1} is not compatible with the Preferences Sync Service. Please update and turn on sync to continue syncing.", this.productService.version, this.productService.nameLong), message: localize('error upgrade required', "Turned off sync because the current version ({0}, {1}) of {2} is not compatible with the Preferences Sync Service. Please update and turn on sync to continue syncing.", this.productService.version, this.productService.commit, this.productService.nameLong),
}); });
return true; return true;
} }
......
...@@ -316,7 +316,7 @@ describe(`VSCode Smoke Tests (${opts.web ? 'Web' : 'Electron'})`, () => { ...@@ -316,7 +316,7 @@ describe(`VSCode Smoke Tests (${opts.web ? 'Web' : 'Electron'})`, () => {
if (!opts.web) { setupDataLossTests(); } if (!opts.web) { setupDataLossTests(); }
if (!opts.web) { setupDataPreferencesTests(); } if (!opts.web) { setupDataPreferencesTests(); }
setupDataSearchTests(); setupDataSearchTests();
setupDataNotebookTests(); if (!opts.web) { setupDataNotebookTests(); }
setupDataLanguagesTests(); setupDataLanguagesTests();
setupDataEditorTests(); setupDataEditorTests();
setupDataStatusbarTests(!!opts.web); setupDataStatusbarTests(!!opts.web);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册