mirror of
https://github.com/denoland/deno.git
synced 2024-11-01 09:24:20 -04:00
728d205d9d
Closes: denoland/vscode_deno#433
58 lines
1.2 KiB
JSON
58 lines
1.2 KiB
JSON
{
|
|
"title": "Extract to interface",
|
|
"kind": "refactor.extract.interface",
|
|
"edit": {
|
|
"documentChanges": [
|
|
{
|
|
"textDocument": {
|
|
"uri": "file:///a/file.ts",
|
|
"version": 1
|
|
},
|
|
"edits": [
|
|
{
|
|
"range": {
|
|
"start": {
|
|
"line": 0,
|
|
"character": 0
|
|
},
|
|
"end": {
|
|
"line": 0,
|
|
"character": 0
|
|
}
|
|
},
|
|
"newText": "interface NewType {\n a?: number;\n b?: string;\n}\n\n"
|
|
},
|
|
{
|
|
"range": {
|
|
"start": {
|
|
"line": 0,
|
|
"character": 7
|
|
},
|
|
"end": {
|
|
"line": 0,
|
|
"character": 33
|
|
}
|
|
},
|
|
"newText": "NewType"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"isPreferred": true,
|
|
"data": {
|
|
"specifier": "file:///a/file.ts",
|
|
"range": {
|
|
"start": {
|
|
"line": 0,
|
|
"character": 7
|
|
},
|
|
"end": {
|
|
"line": 0,
|
|
"character": 33
|
|
}
|
|
},
|
|
"refactorName": "Extract type",
|
|
"actionName": "Extract to interface"
|
|
}
|
|
}
|