mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-11 18:48:33 -05:00
Merge from vscode 8e0f348413f4f616c23a88ae30030efa85811973 (#6381)
* Merge from vscode 8e0f348413f4f616c23a88ae30030efa85811973 * disable strict null check
This commit is contained in:
@@ -2052,7 +2052,7 @@ suite('Editor Controller - Regression tests', () => {
|
||||
getInitialState: () => NULL_STATE,
|
||||
tokenize: undefined!,
|
||||
tokenize2: (line: string, state: IState): TokenizationResult2 => {
|
||||
return new TokenizationResult2(null!, state);
|
||||
return new TokenizationResult2(new Uint32Array(0), state);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -18,7 +18,8 @@ export function testCommand(
|
||||
selection: Selection,
|
||||
commandFactory: (selection: Selection) => editorCommon.ICommand,
|
||||
expectedLines: string[],
|
||||
expectedSelection: Selection
|
||||
expectedSelection: Selection,
|
||||
forceTokenization?: boolean
|
||||
): void {
|
||||
let model = TextModel.createFromString(lines.join('\n'), undefined, languageIdentifier);
|
||||
withTestCodeEditor('', { model: model }, (_editor, cursor) => {
|
||||
@@ -26,6 +27,10 @@ export function testCommand(
|
||||
return;
|
||||
}
|
||||
|
||||
if (forceTokenization) {
|
||||
model.forceTokenization(model.getLineCount());
|
||||
}
|
||||
|
||||
cursor.setSelections('tests', [selection]);
|
||||
|
||||
cursor.trigger('tests', editorCommon.Handler.ExecuteCommand, commandFactory(cursor.getSelection()));
|
||||
|
||||
Reference in New Issue
Block a user