回答編集履歴

1

誤字修正

2018/10/13 03:58

投稿

oikashinoa
oikashinoa

スコア2826

test CHANGED
@@ -4,4 +4,26 @@
4
4
 
5
5
 
6
6
 
7
- 今インストール済みの機能拡張見たらそんな感じでした
7
+ 今インストール済みの機能拡張見たらそんな感じでした
8
+
9
+
10
+
11
+ ↓みたら import * as vscode from 'vscode';でいいみたいですね。
12
+
13
+ [Microsoft/vscode-extension-samples: Sample code illustrating the VS Code extension API.](https://github.com/Microsoft/vscode-extension-samples)
14
+
15
+
16
+
17
+ ↓上記のsampleでどれだったか分からなくなったんですが以下の使い方かも。
18
+
19
+ function getEditorInfo(): { text: string; tooltip: string; color: string; } {
20
+
21
+ const editor = window.activeTextEditor;
22
+
23
+ (略)
24
+
25
+ const resource = editor.document.uri;
26
+
27
+
28
+
29
+ 力に成れずすみません