forked from blender/blender
open in vscode #1
Ankit Meel
commented 2023-04-20 15:22:56 +02:00
Owner
![image](/attachments/75973976-bfc5-45df-8718-0737b94e667f)
```
// ==UserScript==
// @name Open file in VSCode
// @namespace https://tampermonkey.net/
// @version 0.1
// @description Adds vscode://file url to file urls on gitea
// @author ankitm
// @match https://projects.blender.org/*
// @icon https://icons.duckduckgo.com/ip2/blender.org.ico
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant none
// ==/UserScript==
waitForKeyElements("[class^=\"diff-file-box diff-box\"]", addVscodeDeepLink , false);
function addVscodeDeepLink(filebox) {
var fileurl = filebox.attr("data-new-filename");
var line = filebox.find("[class^=\"lines-num lines-num-new\"]").first().attr("data-line-num");
var vscodeurl = "vscode://file/Users/ankitkumar/blender-build/blender/" + fileurl + ":" + line;
var vscodebutton = document.createElement("a");
vscodebutton.href = vscodeurl;
vscodebutton.innerText = "Open in VS Code";
vscodebutton.style = "margin-right: 10px; color: #0366d6; font-size: 14px; font-weight: 600; text-decoration: none;";
vscodebutton.onclick = function(e) {
window.open(vscodeurl, '_blank').focus();
e.preventDefault();
};
filebox[0].querySelector("[class^=\"diff-file-header-actions\"]").appendChild(vscodebutton);
}
```
Ankit Meel
commented 2023-05-26 16:24:12 +02:00
Author
Owner
```
vptr:OpenSubdiv
alignment:std::__1::__function::__value_func
alignment:std::__1::function
# alignment:blender::deg::(anonymous namespace)
# alignment:blender::deg::DepsNodeFactoryImpl<blender::deg::OperationNode>::create_node
# alignment:blender::deg::DepsgraphNodeBuilder
# alignment:blender::deg::OperationNode
# alignment:blender::deg::Depsgraph::add_new_relation
alignment:*
enum:IDRecalcFlag
enum:graph_id_tag_update
vptr:ccl::ShaderManager
signed-integer-overflow:fluid.c
pointer-overflow:gl_index_buffer.hh
pointer-overflow:*
signed-integer-overflow:*
vptr:*
integer-divide-by-zero:*
float-divide-by-zero:*
```
Ankit Meel
referenced this issue from a commit 2024-10-09 11:02:51 +02:00
Fix: EEVEE-Next: Nvidia compilation error
Ankit Meel
referenced this issue from a commit 2024-10-09 11:04:07 +02:00
Remove CloudRig as a promoted feature set (#1)
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?