mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Address comments about ? operator
This commit is contained in:
parent
75455fd428
commit
b395575f00
|
@ -687,9 +687,9 @@ export class CommandCenter {
|
|||
|
||||
const activeTextEditor = window.activeTextEditor;
|
||||
// Must extract these now because opening a new document will change the activeTextEditor reference
|
||||
const previousVisibleRange = activeTextEditor && activeTextEditor.visibleRanges[0];
|
||||
const previousURI = activeTextEditor && activeTextEditor.document.uri;
|
||||
const previousSelection = activeTextEditor && activeTextEditor.selection;
|
||||
const previousVisibleRange = activeTextEditor?.visibleRanges[0];
|
||||
const previousURI = activeTextEditor?.document.uri;
|
||||
const previousSelection = activeTextEditor?.selection;
|
||||
|
||||
for (const uri of uris) {
|
||||
const opts: TextDocumentShowOptions = {
|
||||
|
|
Loading…
Reference in a new issue