mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 17:19:01 +01:00
Can't read StatusBarItem.tooltip anymore. Fixes #133231
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
import * as assert from 'assert';
|
||||
import { join } from 'path';
|
||||
import { CancellationTokenSource, commands, Position, QuickPickItem, Selection, StatusBarAlignment, TextEditor, TextEditorSelectionChangeKind, TextEditorViewColumnChangeEvent, Uri, ViewColumn, window, workspace } from 'vscode';
|
||||
import { CancellationTokenSource, commands, MarkdownString, Position, QuickPickItem, Selection, StatusBarAlignment, TextEditor, TextEditorSelectionChangeKind, TextEditorViewColumnChangeEvent, Uri, ViewColumn, window, workspace } from 'vscode';
|
||||
import { assertNoRpc, closeAllEditors, createRandomFile, pathEquals } from '../utils';
|
||||
|
||||
|
||||
@@ -735,6 +735,10 @@ suite('vscode API - window', () => {
|
||||
assert.strictEqual(statusBarEntryWithoutId.name, undefined);
|
||||
statusBarEntryWithoutId.name = 'Test Name';
|
||||
assert.strictEqual(statusBarEntryWithoutId.name, 'Test Name');
|
||||
statusBarEntryWithoutId.tooltip = 'Tooltip';
|
||||
assert.strictEqual(statusBarEntryWithoutId.tooltip, 'Tooltip');
|
||||
statusBarEntryWithoutId.tooltip = new MarkdownString('**bold**');
|
||||
assert.strictEqual(statusBarEntryWithoutId.tooltip.value, '**bold**');
|
||||
|
||||
const statusBarEntryWithId = window.createStatusBarItem('testId', StatusBarAlignment.Right, 200);
|
||||
assert.strictEqual(statusBarEntryWithId.alignment, StatusBarAlignment.Right);
|
||||
|
||||
Reference in New Issue
Block a user