mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 01:25:37 -05:00
add config for open after save behavior (#15675)
This commit is contained in:
@@ -314,7 +314,8 @@ export class ResultSerializer {
|
||||
* Open the saved file in a new vscode editor pane
|
||||
*/
|
||||
private openSavedFile(filePath: URI, format: string): void {
|
||||
if (format !== SaveFormat.EXCEL) {
|
||||
const openAfterSaveConfig = this._configurationService.getValue<IQueryEditorConfiguration>('queryEditor').results.openAfterSave;
|
||||
if (format !== SaveFormat.EXCEL && openAfterSaveConfig) {
|
||||
this._editorService.openEditor({ resource: filePath }).then((result) => {
|
||||
|
||||
}, (error: any) => {
|
||||
@@ -330,7 +331,7 @@ export class ResultSerializer {
|
||||
[{
|
||||
label: nls.localize('openFile', "Open file"),
|
||||
run: () => {
|
||||
this.openerService.open(filePath, { openExternal: true });
|
||||
this.openerService.open(filePath, { openExternal: format === SaveFormat.EXCEL });
|
||||
}
|
||||
}]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user