change how we detect if a untitled query is valid (#6776)

This commit is contained in:
Anthony Dresser
2019-08-17 14:44:16 -07:00
committed by GitHub
parent b4c2acb8d0
commit 7f6839d38e
4 changed files with 23 additions and 41 deletions

View File

@@ -56,12 +56,6 @@ export interface IUntitledEditorService {
*/
exists(resource: URI): boolean;
// {{SQL CARBON EDIT}}
/**
* Returns all untitled editor inputs.
*/
getAll(resources?: URI[]): UntitledEditorInput[];
/**
* Returns dirty untitled editors as resource URIs.
*/
@@ -147,8 +141,7 @@ export class UntitledEditorService extends Disposable implements IUntitledEditor
return this.mapResourceToInput.get(resource);
}
// {{SQL CARBON EDIT}}
public getAll(resources?: URI[]): UntitledEditorInput[] {
protected getAll(resources?: URI[]): UntitledEditorInput[] {
if (resources) {
return arrays.coalesce(resources.map(r => this.get(r)));
}