mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 05:51:32 +01:00
untitled - bring back loadOrCreate()
This commit is contained in:
@@ -216,12 +216,12 @@ export class MainThreadDocuments implements MainThreadDocumentsShape {
|
||||
}
|
||||
|
||||
private _doCreateUntitled(resource?: URI, mode?: string, initialValue?: string): Promise<URI> {
|
||||
return this._textFileService.untitled.createOrGet({
|
||||
return this._textFileService.untitled.loadOrCreate({
|
||||
resource,
|
||||
mode,
|
||||
initialValue,
|
||||
useResourcePath: Boolean(resource && resource.path)
|
||||
}).resolve().then(model => {
|
||||
}).then(model => {
|
||||
const resource = model.resource;
|
||||
|
||||
if (!this._modelIsSynced.has(resource.toString())) {
|
||||
|
||||
Reference in New Issue
Block a user