mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Changes to use fsPath
This commit is contained in:
parent
d8baf61913
commit
7bf5773eb2
|
@ -76,8 +76,8 @@ export class ResourceContextKey extends Disposable implements IContextKey<URI> {
|
|||
this._resourceKey.set(value);
|
||||
this._schemeKey.set(value ? value.scheme : null);
|
||||
this._filenameKey.set(value ? basename(value) : null);
|
||||
this._folderKey.set(value ? dirname(value).path : null);
|
||||
this._pathKey.set(value ? value.path : null);
|
||||
this._folderKey.set(value ? dirname(value).fsPath : null);
|
||||
this._pathKey.set(value ? value.fsPath : null);
|
||||
this._langIdKey.set(value ? this._modeService.getModeIdByFilepathOrFirstLine(value) : null);
|
||||
this._extensionKey.set(value ? extname(value) : null);
|
||||
this._hasResource.set(!!value);
|
||||
|
|
Loading…
Reference in a new issue