mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2026-01-04 10:09:58 +03:00
release 0.1.3
This commit is contained in:
@@ -65,7 +65,6 @@ class GDScriptDefinitionProivder implements DefinitionProvider {
|
||||
if(isStr(selStr)) {
|
||||
selStr = getStrContent(selStr);
|
||||
let fpath = path.join(path.dirname(document.uri.fsPath), selStr)
|
||||
console.log(fpath);
|
||||
if(fs.existsSync(fpath) && fs.statSync(fpath).isFile())
|
||||
selStr = fpath
|
||||
}
|
||||
|
||||
@@ -153,11 +153,8 @@ class ToolManager {
|
||||
let scenePath = null
|
||||
if(vscode.window.activeTextEditor)
|
||||
scenePath = vscode.workspace.asRelativePath(vscode.window.activeTextEditor.document.uri);
|
||||
console.log("======================", scenePath);
|
||||
console.log(Object.keys(config.scriptSceneMap).toString());
|
||||
if(scenePath.endsWith(".gd"))
|
||||
scenePath = config.scriptSceneMap[config.normalizePath(scenePath)];
|
||||
console.log("======================", scenePath);
|
||||
if(scenePath && (scenePath.endsWith(".tscn") || scenePath.endsWith(".scn"))) {
|
||||
scenePath = ` res://${scenePath} `;
|
||||
this.openWorkspaceWithEditor(scenePath);
|
||||
|
||||
Reference in New Issue
Block a user