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 CHANGED
@@ -1,13 +1,13 @@
1
1
  import type { ServicePlugin } from '@volar/language-service';
2
- import type * as ts from 'typescript/lib/tsserverlibrary';
2
+ import type * as ts from 'typescript';
3
3
  export * from '@volar/typescript';
4
4
  export interface Provide {
5
- 'typescript/typescript': () => typeof import('typescript/lib/tsserverlibrary');
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/lib/tsserverlibrary')): ServicePlugin;
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/lib/tsserverlibrary';
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/lib/tsserverlibrary';
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/lib/tsserverlibrary';
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/lib/tsserverlibrary';
2
+ import type * as ts from 'typescript';
3
3
  import type { SharedContext } from '../../types';
4
4
  export interface Data {
5
5
  uri: string;
@@ -1,5 +1,5 @@
1
1
  import type * as vscode from '@volar/language-service';
2
- import type * as ts from 'typescript/lib/tsserverlibrary';
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;
@@ -1,5 +1,5 @@
1
1
  import type * as vscode from '@volar/language-service';
2
- import type * as ts from 'typescript/lib/tsserverlibrary';
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/lib/tsserverlibrary';
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/lib/tsserverlibrary');
9
+ ts: typeof import('typescript');
10
10
  getTextDocument: (uri: string) => TextDocument | undefined;
11
11
  };
12
12
  //# sourceMappingURL=types.d.ts.map
@@ -1,4 +1,4 @@
1
- import type * as ts from 'typescript/lib/tsserverlibrary';
1
+ import type * as ts from 'typescript';
2
2
  import type { SharedContext } from '../types';
3
3
  export interface IFilePathToResourceConverter {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type * as ts from 'typescript/lib/tsserverlibrary';
1
+ import type * as ts from 'typescript';
2
2
  export declare function snippetForFunctionCall(item: {
3
3
  insertText?: string;
4
4
  label: string;
@@ -1,5 +1,5 @@
1
1
  import type * as vscode from '@volar/language-service';
2
- import type * as ts from 'typescript/lib/tsserverlibrary';
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: {
@@ -1,4 +1,4 @@
1
- import type * as ts from 'typescript/lib/tsserverlibrary';
1
+ import type * as ts from 'typescript';
2
2
  export declare namespace SymbolKind {
3
3
  function fromProtocolScriptElementKind(kind: ts.ScriptElementKind): 2 | 5 | 10 | 22 | 11 | 6 | 7 | 13 | 12 | 9 | 26 | 15;
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "volar-service-typescript",
3
- "version": "0.0.24",
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": "^7.5.4",
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.0",
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": "f0532815ff3cdcf289dc582ddd3b8e3bff0cba26"
48
+ "gitHead": "d8838f4288d4836a8829a458855f557d58732963"
49
49
  }