diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-14 10:30:10 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-14 10:30:10 +0000 |
| commit | 388a91c8a8d542f7a8e0ddff879cce4d4c2b20ae (patch) | |
| tree | a4bd12cfebe76928271d7d999dd0ed744a89ca17 /editors/code/src/config.ts | |
| parent | a274ae384e38be5ad1b23cd2b7f2120e5a284209 (diff) | |
| parent | 388a1945accb98eaa4e612645075ef08317f5781 (diff) | |
| download | rust-388a91c8a8d542f7a8e0ddff879cce4d4c2b20ae.tar.gz rust-388a91c8a8d542f7a8e0ddff879cce4d4c2b20ae.zip | |
Merge #8951
8951: internal: migrate to vscode.FileSystem API r=matklad a=wxb1ank I encountered an error where `bootstrap()` attempts to create a directory with the path `C:\C:\...`. I couldn't find this reported anywhere else. Using the `vscode.FileSystem` API instead of the `fs` one works here. I assume the latter automatically prepends `C:\` to paths whereas the former does not. I don't know if this suggests `vscode.FileSystem` should be used in more places for consistency. Co-authored-by: wxb1ank <wxblank@gmail.com>
Diffstat (limited to 'editors/code/src/config.ts')
| -rw-r--r-- | editors/code/src/config.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index 1f1fe59a412..2277eeb7ea8 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -31,10 +31,10 @@ export class Config { enableProposedApi: boolean | undefined; } = vscode.extensions.getExtension(this.extensionId)!.packageJSON; - readonly globalStoragePath: string; + readonly globalStorageUri: vscode.Uri; constructor(ctx: vscode.ExtensionContext) { - this.globalStoragePath = ctx.globalStorageUri.fsPath; + this.globalStorageUri = ctx.globalStorageUri; vscode.workspace.onDidChangeConfiguration(this.onDidChangeConfiguration, this, ctx.subscriptions); this.refreshLogging(); } |
