Skip to content

Commit

Permalink
fix: 优化了 setting 中的配置
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwang committed Dec 31, 2019
1 parent 352b1b8 commit 1a5df29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions src/code/server/codeSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@ export enum LogLevel{
DEBUG = 0,
INFO = 1 ,
ERROR = 2,
RELEASE = 3
}

export class CodeSettings{
//DEV SETTINGS
public static logLevel = LogLevel.DEBUG;
public static isOpenDebugCode = true; //是否打开debug代码段
public static isAllowDefJumpPreload = true; //是否允许定义跳转到预置文件
// public static logLevel = LogLevel.DEBUG;
// public static isOpenDebugCode = true; //是否打开debug代码段
// public static isAllowDefJumpPreload = true; //是否允许定义跳转到预置文件

//RELEASE SETTINGS
// public static logLevel = LogLevel.RELEASE;
// public static isOpenDebugCode = false; //是否打开debug代码段
// public static isAllowDefJumpPreload = true; //是否允许定义跳转到预置文件
public static logLevel = LogLevel.INFO;
public static isOpenDebugCode = false; //是否打开debug代码段
public static isAllowDefJumpPreload = true; //是否允许定义跳转到预置文件
}
2 changes: 1 addition & 1 deletion src/code/server/typeInfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class TypeInfer {
let uri = value.containerURI;
//[尝试]向上补全, 所以补全这边的 tailListCache 要拷贝
this.recursiveProcessSymbolTagForDefinition(uri, value.searchName, tailListCache, false);
if(this.retArray.length === 0){
if(value.tagType && this.retArray.length === 0){
this.recursiveSearchTagForDefinition(value, uri, searchPrefix, tailListCache, isStripping);
}
}
Expand Down

0 comments on commit 1a5df29

Please sign in to comment.