File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export async function compose (resource?: Uri) {
100
100
) ;
101
101
102
102
if ( result === openInBrowser ) {
103
- commands . executeCommand ( 'vscode.open' , Uri . parse ( item . url ) ) ;
103
+ commands . executeCommand ( 'vscode.open' , item . url ) ;
104
104
}
105
105
} catch ( error ) {
106
106
// tslint:disable-next-line:no-console
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export function openItem (storagePath?: string) {
51
51
}
52
52
53
53
try {
54
- const fileUri = Uri . parse ( `file:// ${ storagePath } /${ item . id } .md`) ;
54
+ const fileUri = Uri . file ( ` ${ storagePath } /${ item . id } .md`) ;
55
55
56
56
// 拡張機能用ディレクトリがない場合初期化
57
57
if ( ! fs . existsSync ( storagePath ) ) {
Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ export class QiitaItem extends TreeItem {
16
16
super ( item . title , collapsibleState ) ;
17
17
}
18
18
19
- public resourceUri = Uri . parse ( 'file:/// text.md') ; // Hack: アイコンをMarkdownのものに
19
+ public resourceUri = Uri . file ( ' text.md') ; // Hack: アイコンをMarkdownのものに
20
20
public contextValue = 'qiitaItems' ;
21
21
}
You can’t perform that action at this time.
0 commit comments