Update to VS Code 1.52.1
This commit is contained in:
@@ -244,7 +244,8 @@ export class BrowserHostService extends Disposable implements IHostService {
|
||||
if (this.shouldReuse(options, true /* file */)) {
|
||||
editorService.openEditor({
|
||||
leftResource: editors[0].resource,
|
||||
rightResource: editors[1].resource
|
||||
rightResource: editors[1].resource,
|
||||
options: { pinned: true }
|
||||
});
|
||||
}
|
||||
|
||||
@@ -349,7 +350,7 @@ export class BrowserHostService extends Disposable implements IHostService {
|
||||
return true; // always handle --wait in same window
|
||||
}
|
||||
|
||||
const windowConfig = this.configurationService.getValue<IWindowSettings>('window');
|
||||
const windowConfig = this.configurationService.getValue<IWindowSettings | undefined>('window');
|
||||
const openInNewWindowConfig = isFile ? (windowConfig?.openFilesInNewWindow || 'off' /* default */) : (windowConfig?.openFoldersInNewWindow || 'default' /* default */);
|
||||
|
||||
let openInNewWindow = (options.preferNewWindow || !!options.forceNewWindow) && !options.forceReuseWindow;
|
||||
|
||||
@@ -81,7 +81,7 @@ export interface IHostService {
|
||||
/**
|
||||
* Reload the currently active window.
|
||||
*/
|
||||
reload(): Promise<void>;
|
||||
reload(options?: { disableExtensions?: boolean }): Promise<void>;
|
||||
|
||||
/**
|
||||
* Attempt to close the active window.
|
||||
|
||||
@@ -102,8 +102,8 @@ export class NativeHostService extends Disposable implements IHostService {
|
||||
return this.nativeHostService.relaunch();
|
||||
}
|
||||
|
||||
reload(): Promise<void> {
|
||||
return this.nativeHostService.reload();
|
||||
reload(options?: { disableExtensions?: boolean }): Promise<void> {
|
||||
return this.nativeHostService.reload(options);
|
||||
}
|
||||
|
||||
close(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user