<commit_before>/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

'use strict';

import { Position, Selection, Range, CompletionItemProvider, CompletionItemKind, TextDocument, CancellationToken, CompletionItem, window, commands, Uri, ProviderResult, TextEditor } from 'vscode';

import { ITypescriptServiceClient } from '../typescriptService';
import { FileLocationRequestArgs, DocCommandTemplateResponse } from '../protocol';

import * as nls from 'vscode-nls';
const localize = nls.loadMessageBundle();

const tryCompleteJsDocCommand = '_typeScript.tryCompleteJsDoc';


class JsDocCompletionItem extends CompletionItem {
	constructor(file: Uri, position: Position) {
		super('/** @param */', CompletionItemKind.Snippet);
		this.documentation = localize('typescript.jsDocCompletionItem.detail', 'JSDoc comment');
		this.insertText = '';
		this.sortText = '\0';
		this.command = {
			title: 'Try Complete Js Doc',
			command: tryCompleteJsDocCommand,
			arguments: [file, position]
		};
	}
}<commit_msg>Fix jsdoc completion not showing when you disable snippet suggestions<commit_after>/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

'use strict';

import { Position, Selection, Range, CompletionItemProvider, CompletionItemKind, TextDocument, CancellationToken, CompletionItem, window, commands, Uri, ProviderResult, TextEditor } from 'vscode';

import { ITypescriptServiceClient } from '../typescriptService';
import { FileLocationRequestArgs, DocCommandTemplateResponse } from '../protocol';

import * as nls from 'vscode-nls';
const localize = nls.loadMessageBundle();

const tryCompleteJsDocCommand = '_typeScript.tryCompleteJsDoc';


class JsDocCompletionItem extends CompletionItem {
	constructor(file: Uri, position: Position) {
		super('/** @param */', CompletionItemKind.Text);
		this.documentation = localize('typescript.jsDocCompletionItem.detail', 'JSDoc comment');
		this.insertText = '';
		this.sortText = '\0';
		this.command = {
			title: 'Try Complete Js Doc',
			command: tryCompleteJsDocCommand,
			arguments: [file, position]
		};
	}
}
{'fraction_non_alphanumeric': 0.23582425835523846, 'fraction_numerical': 0.0007510326699211416, 'mean_word_length': 2.669421487603306, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4439967', 'n_tokens_mistral': 671, 'n_tokens_neox': 642, 'n_words': 187}