release 0.1.3

This commit is contained in:
Geequlim
2016-12-30 22:40:52 +08:00
parent ffbf1ed783
commit 90687c8a9b
5 changed files with 15 additions and 5 deletions

View File

@@ -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
}

View File

@@ -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);