Skip to content

Commit

Permalink
fix: Update VSCode to (^1.84.2) (main) (#139)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason3S <Jason3S@users.noreply.github.com>
Co-authored-by: Jason Dent <jason@streetsidesoftware.nl>
  • Loading branch information
3 people committed Dec 3, 2023
1 parent eb76ad1 commit 8570618
Show file tree
Hide file tree
Showing 4 changed files with 214 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -51,7 +51,7 @@
"@jest/globals": "^29.6.4",
"@tsconfig/node16": "^16.1.1",
"@types/node": "^18.17.14",
"@types/vscode": "^1.81.0",
"@types/vscode": "^1.84.2",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"eslint": "^8.48.0",
Expand Down
190 changes: 187 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/vscode-mock.ts
Expand Up @@ -63,6 +63,7 @@ import {
SymbolInformation,
SymbolKind,
SymbolTag,
SyntaxTokenType,
TaskGroup,
TaskPanelKind,
TaskRevealKind,
Expand Down Expand Up @@ -275,6 +276,7 @@ export function createVSCodeMock(jest: TestFramework): VSCodeMock {
SymbolInformation,
SymbolKind,
SymbolTag,
SyntaxTokenType,
TaskGroup,
TaskPanelKind,
TaskRevealKind,
Expand Down
24 changes: 24 additions & 0 deletions src/vscode/extHostTypes.ts
Expand Up @@ -917,6 +917,7 @@ export class CodeActionKind implements vscode.CodeActionKind {
public static Source: CodeActionKind;
public static SourceOrganizeImports: CodeActionKind;
public static SourceFixAll: CodeActionKind;
public static Notebook: vscode.CodeActionKind;

constructor(public readonly value: string) {}

Expand All @@ -933,6 +934,7 @@ export class CodeActionKind implements vscode.CodeActionKind {
}
}
CodeActionKind.Empty = new CodeActionKind('');
CodeActionKind.Notebook = CodeActionKind.Empty.append('notebook');
CodeActionKind.QuickFix = CodeActionKind.Empty.append('quickfix');
CodeActionKind.Refactor = CodeActionKind.Empty.append('refactor');
CodeActionKind.RefactorExtract = CodeActionKind.Refactor.append('extract');
Expand Down Expand Up @@ -1745,3 +1747,25 @@ function equals<T>(

return true;
}

/**
* Enumeration of commonly encountered syntax token types.
*/
export enum SyntaxTokenType {
/**
* Everything except tokens that are part of comments, string literals and regular expressions.
*/
Other = 0,
/**
* A comment.
*/
Comment = 1,
/**
* A string literal.
*/
String = 2,
/**
* A regular expression.
*/
RegEx = 3,
}

0 comments on commit 8570618

Please sign in to comment.