🐛 partial fix for dev containers loading config
This commit is contained in:
parent
4035ede567
commit
2b24e8db0d
2 changed files with 11 additions and 2 deletions
5
extensions/vscode/.gitignore
vendored
5
extensions/vscode/.gitignore
vendored
|
|
@ -11,4 +11,7 @@ bin
|
|||
assets
|
||||
|
||||
gui/*
|
||||
!gui/onigasm.wasm
|
||||
!gui/onigasm.wasm
|
||||
|
||||
.devcontainer
|
||||
.github
|
||||
|
|
@ -55,9 +55,15 @@ class VsCodeConfigHandler {
|
|||
if (this.savedConfig) {
|
||||
return this.savedConfig;
|
||||
}
|
||||
let workspaceConfigs: any[] = [];
|
||||
try {
|
||||
workspaceConfigs = await this._getWorkspaceConfigs();
|
||||
} catch (e) {
|
||||
console.warn("Failed to load workspace configs");
|
||||
}
|
||||
this.savedConfig = await loadFullConfigNode(
|
||||
ideProtocolClient.readFile,
|
||||
await this._getWorkspaceConfigs()
|
||||
workspaceConfigs
|
||||
);
|
||||
this.savedConfig.allowAnonymousTelemetry =
|
||||
this.savedConfig.allowAnonymousTelemetry &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue