mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Refresh master with initial release/0.24 snapshot (#332)
* Initial port of release/0.24 source code * Fix additional headers * Fix a typo in launch.json
This commit is contained in:
@@ -100,7 +100,7 @@ function doCreateTest(description: string, inputStr: string, expectedStr: string
|
||||
|
||||
const selection = new Range(1, 1 + cursorOffset, 1, 1 + cursorOffset + cursorLength);
|
||||
|
||||
return PagedScreenReaderStrategy.fromEditorSelection(currentState, model, selection);
|
||||
return PagedScreenReaderStrategy.fromEditorSelection(currentState, model, selection, true);
|
||||
},
|
||||
deduceModelPosition: (viewAnchorPosition: Position, deltaOffset: number, lineFeedCnt: number): Position => {
|
||||
return null;
|
||||
|
||||
@@ -500,7 +500,7 @@ suite('TextAreaState', () => {
|
||||
|
||||
function testPagedScreenReaderStrategy(lines: string[], selection: Selection, expected: TextAreaState): void {
|
||||
const model = Model.createFromString(lines.join('\n'));
|
||||
const actual = PagedScreenReaderStrategy.fromEditorSelection(TextAreaState.EMPTY, model, selection);
|
||||
const actual = PagedScreenReaderStrategy.fromEditorSelection(TextAreaState.EMPTY, model, selection, true);
|
||||
assert.ok(actual.equals(expected));
|
||||
model.dispose();
|
||||
}
|
||||
|
||||
@@ -14,7 +14,15 @@ import { TestTheme, TestThemeService } from 'vs/platform/theme/test/common/testT
|
||||
const themeServiceMock = new TestThemeService();
|
||||
|
||||
suite('Decoration Render Options', () => {
|
||||
var options: IDecorationRenderOptions = {
|
||||
gutterIconPath: URI.parse('https://github.com/Microsoft/vscode/blob/master/resources/linux/code.png'),
|
||||
gutterIconSize: 'contain',
|
||||
backgroundColor: 'red',
|
||||
borderColor: 'yellow'
|
||||
};
|
||||
test('register and resolve decoration type', () => {
|
||||
assert.equal(1, 1);
|
||||
// var s = new CodeEditorServiceImpl(themeServiceMock);
|
||||
// s.registerDecorationType('example', options);
|
||||
// assert.notEqual(s.resolveDecorationOptions('example', false), undefined);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user