Geequlim 8 жил өмнө
parent
commit
90687c8a9b

+ 6 - 0
CHANGELOG.md

@@ -1,5 +1,11 @@
 # Change Log
 # Change Log
 
 
+### 0.1.3
+
+* Better syntax highlight for GDScript
+* Add mouse hover information support
+* Add definition provider for GDScript
+
 ### 0.1.2
 ### 0.1.2
 * Multiline string and `StringName` highlight support
 * Multiline string and `StringName` highlight support
 * Builtin classes, properties, functions and constants highlight support
 * Builtin classes, properties, functions and constants highlight support

+ 8 - 0
README.md

@@ -9,6 +9,8 @@ The plugin make it is possible to code GDScript with Visual Studio Code feel lik
 * Code completion
 * Code completion
 * Static code validating
 * Static code validating
 * Run project or opened scene
 * Run project or opened scene
+* Hover to show documentations, definition and so on
+* Go to difinitions with Ctrl+Click or show all definition in workspace
 
 
 ## Commands
 ## Commands
 
 
@@ -43,6 +45,12 @@ Please feel free to open issues and pull requirests on github about the [Godot-T
 
 
 ## Release Notes
 ## Release Notes
 
 
+### 0.1.3
+
+* Better syntax highlight for GDScript
+* Add mouse hover information support
+* Add definition provider for GDScript
+
 ### 0.1.2
 ### 0.1.2
 * Multiline string and `StringName` highlight support
 * Multiline string and `StringName` highlight support
 * Builtin classes, properties, functions and constants highlight support
 * Builtin classes, properties, functions and constants highlight support

+ 1 - 1
package.json

@@ -3,7 +3,7 @@
   "displayName": "Godot Tools",
   "displayName": "Godot Tools",
   "icon": "icon.png",
   "icon": "icon.png",
   "description": "\"Tools for game development with godot game engine\"",
   "description": "\"Tools for game development with godot game engine\"",
-  "version": "0.1.2",
+  "version": "0.1.3",
   "publisher": "geequlim",
   "publisher": "geequlim",
   "engines": {
   "engines": {
     "vscode": "^1.5.0"
     "vscode": "^1.5.0"

+ 0 - 1
src/gdscript/definitionprovider.ts

@@ -65,7 +65,6 @@ class GDScriptDefinitionProivder implements DefinitionProvider {
             if(isStr(selStr)) {
             if(isStr(selStr)) {
                 selStr =  getStrContent(selStr);
                 selStr =  getStrContent(selStr);
                 let fpath = path.join(path.dirname(document.uri.fsPath), selStr)
                 let fpath = path.join(path.dirname(document.uri.fsPath), selStr)
-                console.log(fpath);
                 if(fs.existsSync(fpath) && fs.statSync(fpath).isFile())
                 if(fs.existsSync(fpath) && fs.statSync(fpath).isFile())
                     selStr = fpath
                     selStr = fpath
             }
             }

+ 0 - 3
src/tool_manager.ts

@@ -153,11 +153,8 @@ class ToolManager {
     let scenePath = null
     let scenePath = null
     if(vscode.window.activeTextEditor)
     if(vscode.window.activeTextEditor)
       scenePath = vscode.workspace.asRelativePath(vscode.window.activeTextEditor.document.uri);
       scenePath = vscode.workspace.asRelativePath(vscode.window.activeTextEditor.document.uri);
-    console.log("======================", scenePath);
-    console.log(Object.keys(config.scriptSceneMap).toString());
     if(scenePath.endsWith(".gd"))
     if(scenePath.endsWith(".gd"))
       scenePath = config.scriptSceneMap[config.normalizePath(scenePath)];
       scenePath = config.scriptSceneMap[config.normalizePath(scenePath)];
-    console.log("======================", scenePath);
     if(scenePath && (scenePath.endsWith(".tscn") || scenePath.endsWith(".scn"))) {
     if(scenePath && (scenePath.endsWith(".tscn") || scenePath.endsWith(".scn"))) {
       scenePath = ` res://${scenePath} `;
       scenePath = ` res://${scenePath} `;
       this.openWorkspaceWithEditor(scenePath);
       this.openWorkspaceWithEditor(scenePath);