mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
Don't cache file config options until we succesfully complete a request
Fixes #58518
This commit is contained in:
@@ -95,12 +95,14 @@ export default class FileConfigurationManager {
|
||||
return;
|
||||
}
|
||||
|
||||
this.formatOptions.set(document.uri, currentOptions);
|
||||
const args: Proto.ConfigureRequestArguments = {
|
||||
file,
|
||||
...currentOptions,
|
||||
};
|
||||
await this.client.execute('configure', args, token);
|
||||
const response = await this.client.execute('configure', args, token);
|
||||
if (response.type === 'response') {
|
||||
this.formatOptions.set(document.uri, currentOptions);
|
||||
}
|
||||
}
|
||||
|
||||
public async setGlobalConfigurationFromDocument(
|
||||
|
||||
Reference in New Issue
Block a user