mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fix file URI input (#6837)
* Fix QueryInput URI to work with transformers * Fix input for results as well
This commit is contained in:
@@ -43,7 +43,7 @@ export function convertEditorInput(input: EditorInput, options: IQueryEditorOpti
|
|||||||
//QueryInput
|
//QueryInput
|
||||||
uri = getQueryEditorFileUri(input);
|
uri = getQueryEditorFileUri(input);
|
||||||
if (uri) {
|
if (uri) {
|
||||||
const queryResultsInput: QueryResultsInput = instantiationService.createInstance(QueryResultsInput, uri.toString());
|
const queryResultsInput: QueryResultsInput = instantiationService.createInstance(QueryResultsInput, uri.toString(true));
|
||||||
let queryInput: QueryInput = instantiationService.createInstance(QueryInput, '', input, queryResultsInput, undefined);
|
let queryInput: QueryInput = instantiationService.createInstance(QueryInput, '', input, queryResultsInput, undefined);
|
||||||
return queryInput;
|
return queryInput;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ export class QueryInput extends EditorInput implements IEncodingSupport, IConnec
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Getters for private properties
|
// Getters for private properties
|
||||||
public get uri(): string { return this.getResource().toString(); }
|
public get uri(): string { return this.getResource().toString(true); }
|
||||||
public get sql(): UntitledEditorInput { return this._sql; }
|
public get sql(): UntitledEditorInput { return this._sql; }
|
||||||
public get results(): QueryResultsInput { return this._results; }
|
public get results(): QueryResultsInput { return this._results; }
|
||||||
public updateSelection(selection: ISelectionData): void { this._updateSelection.fire(selection); }
|
public updateSelection(selection: ISelectionData): void { this._updateSelection.fire(selection); }
|
||||||
|
|||||||
Reference in New Issue
Block a user