mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-28 17:23:19 -05:00
Update run w/parameters icon and increment parameterized notebook (#15127)
* update icon and increment parameterized notebook
This commit is contained in:
@@ -364,8 +364,8 @@ export class RunParametersAction extends TooltipFromLabelAction {
|
||||
public async openParameterizedNotebook(uri: URI): Promise<void> {
|
||||
const editor = this._notebookService.findNotebookEditor(uri);
|
||||
let modelContents = JSON.stringify(editor.model.toJSON());
|
||||
let basename = path.basename(uri.fsPath);
|
||||
let untitledUri = uri.with({ authority: '', scheme: 'untitled', path: basename });
|
||||
let untitledUriPath = this._notebookService.getUntitledUriPath(path.basename(uri.fsPath));
|
||||
let untitledUri = uri.with({ authority: '', scheme: 'untitled', path: untitledUriPath });
|
||||
this._notebookService.openNotebook(untitledUri, {
|
||||
initialContent: modelContents,
|
||||
preserveFocus: true
|
||||
|
||||
Reference in New Issue
Block a user