mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode b8c2e7108b3cae7aa2782112da654bedd8bb3a52 (#4808)
This commit is contained in:
@@ -373,7 +373,7 @@ export class ConfigurationEditingService {
|
||||
}
|
||||
|
||||
private async resolveModelReference(resource: URI): Promise<IReference<IResolvedTextEditorModel>> {
|
||||
const exists = await this.fileService.existsFile(resource);
|
||||
const exists = await this.fileService.exists(resource);
|
||||
if (!exists) {
|
||||
await this.fileService.updateContent(resource, '{}', { encoding: 'utf8' });
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ export class JSONEditingService implements IJSONEditingService {
|
||||
}
|
||||
|
||||
private async resolveModelReference(resource: URI): Promise<IReference<IResolvedTextEditorModel>> {
|
||||
const exists = await this.fileService.existsFile(resource);
|
||||
const exists = await this.fileService.exists(resource);
|
||||
if (!exists) {
|
||||
await this.fileService.updateContent(resource, '{}', { encoding: 'utf8' });
|
||||
}
|
||||
|
||||
@@ -369,13 +369,13 @@ class FileServiceBasedWorkspaceConfiguration extends AbstractWorkspaceConfigurat
|
||||
|
||||
private watchWorkspaceConfigurationFile(): void {
|
||||
if (this.workspaceConfig) {
|
||||
this.fileService.watchFileChanges(this.workspaceConfig);
|
||||
this.fileService.watch(this.workspaceConfig);
|
||||
}
|
||||
}
|
||||
|
||||
private unWatchWorkspaceConfigurtionFile(): void {
|
||||
if (this.workspaceConfig) {
|
||||
this.fileService.unwatchFileChanges(this.workspaceConfig);
|
||||
this.fileService.unwatch(this.workspaceConfig);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -638,7 +638,7 @@ export class FileServiceBasedFolderConfiguration extends AbstractFolderConfigura
|
||||
|
||||
private doLoadFolderConfigurationContents(): Promise<Array<{ resource: URI, value: string }>> {
|
||||
const workspaceFilePathToConfiguration: { [relativeWorkspacePath: string]: Promise<IContent | undefined> } = Object.create(null);
|
||||
const bulkContentFetchromise = Promise.resolve(this.fileService.resolveFile(this.folderConfigurationPath))
|
||||
const bulkContentFetchromise = Promise.resolve(this.fileService.resolve(this.folderConfigurationPath))
|
||||
.then(stat => {
|
||||
if (stat.isDirectory && stat.children) {
|
||||
stat.children
|
||||
|
||||
Reference in New Issue
Block a user