0

설명서를 읽었으며 VS 2013에서 javascript intellisense에 대한 완료 목록에 항목을 추가하는 방법을 알 수 없습니다. 항목은 event.items를 통해 액세스 할 수 있지만이 배열로 푸시하면 완료 목록에 영향을 미치지 않는 것 같습니다. 종류위한Visual Studio 2013에서 Javascript Intellisense Extension 도구를 사용하여 완료 목록에 추가하는 방법

intellisense.addEventListener('statementcompletion', function (event) { 

    var attempt = new Object(); 
    attempt.name = "helllo"; 
    attempt.value = function() {console.log("helllooo"); 
    attempt.kind = "function"; 
    attemp.scope = "global"; 

    event.items.push(attempt); 
}); 

답변

0

가능한 값은, 「방법」, 「필드」, 「속성」, 「파라미터」, 「변수 '및'소유 '.

다음 코드 스 니펫이 작동해야합니다.

intellisense.addEventListener ('statementcompletion', 기능 (E) {

e.items.push({name:'Hello', kind:'method'}); 

});