Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Commit

Permalink
release v1.0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
richard1122 committed Sep 21, 2016
1 parent 6342060 commit 1f67309
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "YouCompleteMe for vscode",
"author": "Richard He",
"license": "MIT",
"version": "1.0.20",
"version": "1.0.21",
"publisher": "RichardHe",
"repository": {
"type": "git",
Expand Down Expand Up @@ -55,6 +55,11 @@
"type": "boolean",
"default": false,
"description": "show debug messages"
},
"ycmd.enable_hover_type": {
"type": "boolean",
"default": true,
"description": "GetType from ycmd by hover on variable"
}
}
},
Expand Down
4 changes: 3 additions & 1 deletion server/src/ycm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ export default class Ycm {
}

public async getType(documentUri: string, position: Position, documents: TextDocuments) {
if (!this.settings.ycmd.enable_hover_type) return null
const type = await this.runCompleterCommand(documentUri, position, documents, 'GetType') as YcmGetTypeResponse
logger('getType', JSON.stringify(type))
return mapYcmTypeToHover(type, documents.get(documentUri).languageId)
Expand Down Expand Up @@ -316,6 +317,7 @@ export interface Settings {
global_extra_config: string,
python: string,
confirm_extra_conf: boolean,
debug: boolean
debug: boolean,
enable_hover_type: boolean
}
}

0 comments on commit 1f67309

Please sign in to comment.