volar-service-typescript 0.0.24 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +3 -3
- package/lib/configs/getFormatCodeSettings.d.ts +1 -1
- package/lib/configs/getUserPreferences.d.ts +1 -1
- package/lib/features/codeActionResolve.d.ts +1 -1
- package/lib/features/completions/basic.d.ts +1 -1
- package/lib/features/diagnostics.d.ts +1 -1
- package/lib/features/rename.d.ts +1 -1
- package/lib/types.d.ts +2 -2
- package/lib/utils/previewer.d.ts +1 -1
- package/lib/utils/snippetForFunctionCall.d.ts +1 -1
- package/lib/utils/transforms.d.ts +1 -1
- package/lib/utils/typeConverters.d.ts +1 -1
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { ServicePlugin } from '@volar/language-service';
|
|
2
|
-
import type * as ts from 'typescript
|
|
2
|
+
import type * as ts from 'typescript';
|
|
3
3
|
export * from '@volar/typescript';
|
|
4
4
|
export interface Provide {
|
|
5
|
-
'typescript/typescript': () => typeof import('typescript
|
|
5
|
+
'typescript/typescript': () => typeof import('typescript');
|
|
6
6
|
'typescript/sys': () => ts.System;
|
|
7
7
|
'typescript/languageService': () => ts.LanguageService;
|
|
8
8
|
'typescript/languageServiceHost': () => ts.LanguageServiceHost;
|
|
9
9
|
'typescript/syntacticLanguageService': () => ts.LanguageService;
|
|
10
10
|
'typescript/syntacticLanguageServiceHost': () => ts.LanguageServiceHost;
|
|
11
11
|
}
|
|
12
|
-
export declare function create(ts: typeof import('typescript
|
|
12
|
+
export declare function create(ts: typeof import('typescript')): ServicePlugin;
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FormattingOptions } from '@volar/language-service';
|
|
2
|
-
import type * as ts from 'typescript
|
|
2
|
+
import type * as ts from 'typescript';
|
|
3
3
|
import type { TextDocument } from 'vscode-languageserver-textdocument';
|
|
4
4
|
import type { SharedContext } from '../types';
|
|
5
5
|
export declare function getFormatCodeSettings(ctx: SharedContext, document: TextDocument, options?: FormattingOptions): Promise<ts.FormatCodeSettings>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as ts from 'typescript
|
|
1
|
+
import type * as ts from 'typescript';
|
|
2
2
|
import type { TextDocument } from 'vscode-languageserver-textdocument';
|
|
3
3
|
import type { SharedContext } from '../types';
|
|
4
4
|
export declare function getUserPreferences(ctx: SharedContext, document: TextDocument): Promise<ts.UserPreferences>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as vscode from '@volar/language-service';
|
|
2
|
-
import type * as ts from 'typescript
|
|
2
|
+
import type * as ts from 'typescript';
|
|
3
3
|
import type { TextDocument } from 'vscode-languageserver-textdocument';
|
|
4
4
|
import type { SharedContext } from '../types';
|
|
5
5
|
import type { Data, FixAllData, RefactorData } from './codeAction';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as vscode from '@volar/language-service';
|
|
2
|
-
import type * as ts from 'typescript
|
|
2
|
+
import type * as ts from 'typescript';
|
|
3
3
|
import type { SharedContext } from '../types';
|
|
4
4
|
export declare function register(ctx: SharedContext): (uri: string, options: {
|
|
5
5
|
semantic?: boolean;
|
package/lib/features/rename.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as vscode from '@volar/language-service';
|
|
2
|
-
import type * as ts from 'typescript
|
|
2
|
+
import type * as ts from 'typescript';
|
|
3
3
|
import type { SharedContext } from '../types';
|
|
4
4
|
export declare function register(ctx: SharedContext): (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
5
5
|
export declare function fileTextChangesToWorkspaceEdit(changes: readonly ts.FileTextChanges[], ctx: SharedContext): vscode.WorkspaceEdit;
|
package/lib/types.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ServiceContext } from '@volar/language-service';
|
|
2
|
-
import type * as ts from 'typescript
|
|
2
|
+
import type * as ts from 'typescript';
|
|
3
3
|
import type { TextDocument } from 'vscode-languageserver-textdocument';
|
|
4
4
|
export type SharedContext = ServiceContext & {
|
|
5
5
|
typescript: {
|
|
6
6
|
languageServiceHost: ts.LanguageServiceHost;
|
|
7
7
|
languageService: ts.LanguageService;
|
|
8
8
|
};
|
|
9
|
-
ts: typeof import('typescript
|
|
9
|
+
ts: typeof import('typescript');
|
|
10
10
|
getTextDocument: (uri: string) => TextDocument | undefined;
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=types.d.ts.map
|
package/lib/utils/previewer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as vscode from '@volar/language-service';
|
|
2
|
-
import type * as ts from 'typescript
|
|
2
|
+
import type * as ts from 'typescript';
|
|
3
3
|
import type { TextDocument } from 'vscode-languageserver-textdocument';
|
|
4
4
|
import type { SharedContext } from '../types';
|
|
5
5
|
export declare function entriesToLocations(entries: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "volar-service-typescript",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
4
4
|
"description": "Integrate TypeScript into Volar",
|
|
5
5
|
"homepage": "https://github.com/volarjs/services/tree/master/packages/typescript",
|
|
6
6
|
"bugs": "https://github.com/volarjs/services/issues",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/path-browserify": "latest",
|
|
28
|
-
"@types/semver": "
|
|
28
|
+
"@types/semver": "latest",
|
|
29
29
|
"@volar/typescript": "latest"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"path-browserify": "^1.0.1",
|
|
33
33
|
"semver": "^7.5.4",
|
|
34
|
-
"typescript-auto-import-cache": "^0.3.
|
|
34
|
+
"typescript-auto-import-cache": "^0.3.1",
|
|
35
35
|
"vscode-languageserver-textdocument": "^1.0.11",
|
|
36
36
|
"vscode-nls": "^5.2.0",
|
|
37
37
|
"vscode-uri": "^3.0.8"
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"optional": true
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "d8838f4288d4836a8829a458855f557d58732963"
|
|
49
49
|
}
|