mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
enable @typescript-eslint/member-delimiter-style, https://github.com/microsoft/vscode/issues/140391
This commit is contained in:
@@ -14,7 +14,7 @@ export interface ItemDescription {
|
||||
documentation?: string;
|
||||
kind?: CompletionItemKind;
|
||||
resultText?: string;
|
||||
command?: { title: string, command: string };
|
||||
command?: { title: string; command: string };
|
||||
notAvailable?: boolean;
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ export function assertCompletion(completions: CompletionList, expected: ItemDesc
|
||||
|
||||
const testUri = 'test://test/test.html';
|
||||
|
||||
export async function testCompletionFor(value: string, expected: { count?: number, items?: ItemDescription[] }, uri = testUri, workspaceFolders?: WorkspaceFolder[]): Promise<void> {
|
||||
export async function testCompletionFor(value: string, expected: { count?: number; items?: ItemDescription[] }, uri = testUri, workspaceFolders?: WorkspaceFolder[]): Promise<void> {
|
||||
let offset = value.indexOf('|');
|
||||
value = value.substr(0, offset) + value.substr(offset + 1);
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import * as path from 'path';
|
||||
suite('HTML Language Configuration', () => {
|
||||
const config = JSON.parse((fs.readFileSync(path.join(__dirname, '../../../../html/language-configuration.json')).toString()));
|
||||
|
||||
function createRegex(str: string | { pattern: string, flags: string }): RegExp {
|
||||
function createRegex(str: string | { pattern: string; flags: string }): RegExp {
|
||||
if (typeof str === 'string') {
|
||||
return new RegExp(str, 'g');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user