mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-08 01:28:26 -05:00
Merge VS Code 1.31.1 (#4283)
This commit is contained in:
@@ -11,39 +11,38 @@ suite('Console', () => {
|
||||
|
||||
test('getFirstFrame', () => {
|
||||
let stack = 'at vscode.commands.registerCommand (/Users/someone/Desktop/test-ts/out/src/extension.js:18:17)';
|
||||
let frame = getFirstFrame(stack);
|
||||
let frame = getFirstFrame(stack)!;
|
||||
|
||||
assert.equal(frame.uri.fsPath, normalize('/Users/someone/Desktop/test-ts/out/src/extension.js'));
|
||||
assert.equal(frame.line, 18);
|
||||
assert.equal(frame.column, 17);
|
||||
|
||||
stack = 'at /Users/someone/Desktop/test-ts/out/src/extension.js:18:17';
|
||||
frame = getFirstFrame(stack);
|
||||
frame = getFirstFrame(stack)!;
|
||||
|
||||
assert.equal(frame.uri.fsPath, normalize('/Users/someone/Desktop/test-ts/out/src/extension.js'));
|
||||
assert.equal(frame.line, 18);
|
||||
assert.equal(frame.column, 17);
|
||||
|
||||
stack = 'at c:\\Users\\someone\\Desktop\\end-js\\extension.js:18:17';
|
||||
frame = getFirstFrame(stack);
|
||||
frame = getFirstFrame(stack)!;
|
||||
|
||||
assert.equal(frame.uri.fsPath, 'c:\\Users\\someone\\Desktop\\end-js\\extension.js');
|
||||
assert.equal(frame.line, 18);
|
||||
assert.equal(frame.column, 17);
|
||||
|
||||
stack = 'at e.$executeContributedCommand(c:\\Users\\someone\\Desktop\\end-js\\extension.js:18:17)';
|
||||
frame = getFirstFrame(stack);
|
||||
frame = getFirstFrame(stack)!;
|
||||
|
||||
assert.equal(frame.uri.fsPath, 'c:\\Users\\someone\\Desktop\\end-js\\extension.js');
|
||||
assert.equal(frame.line, 18);
|
||||
assert.equal(frame.column, 17);
|
||||
|
||||
stack = 'at /Users/someone/Desktop/test-ts/out/src/extension.js:18:17\nat /Users/someone/Desktop/test-ts/out/src/other.js:28:27\nat /Users/someone/Desktop/test-ts/out/src/more.js:38:37';
|
||||
frame = getFirstFrame(stack);
|
||||
frame = getFirstFrame(stack)!;
|
||||
|
||||
assert.equal(frame.uri.fsPath, normalize('/Users/someone/Desktop/test-ts/out/src/extension.js'));
|
||||
assert.equal(frame.line, 18);
|
||||
assert.equal(frame.column, 17);
|
||||
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user