@artel/artc 0.9.26039-pre-release → 0.9.26040-pre-release

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/build/Cli.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CommandLineCompiler
4
- } from "./chunk-L6XKUP4X.js";
5
- import "./chunk-6MDQX6SE.js";
4
+ } from "./chunk-PZ3Z6CQ2.js";
5
+ import "./chunk-R3HOGWRU.js";
6
6
  import {
7
7
  __async
8
- } from "./chunk-6WDAMNXB.js";
8
+ } from "./chunk-L4KESOHQ.js";
9
9
 
10
10
  // source/Cli.ts
11
11
  function main() {
package/build/api/Api.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Compiler
3
- } from "../chunk-6MDQX6SE.js";
3
+ } from "../chunk-R3HOGWRU.js";
4
4
  import {
5
5
  AccessKind,
6
6
  AccessedFunction_entity,
@@ -311,7 +311,7 @@ import {
311
311
  withoutQuotes,
312
312
  withoutTemplateQuotes,
313
313
  yieldTask
314
- } from "../chunk-6WDAMNXB.js";
314
+ } from "../chunk-L4KESOHQ.js";
315
315
  export {
316
316
  AccessKind,
317
317
  AccessedFunction_entity,
@@ -6,9 +6,9 @@ import {
6
6
  PhysicalFileSystem,
7
7
  PhysicalTypeScriptLibrariesProvider,
8
8
  PrintingDiagnosticAcceptor
9
- } from "../chunk-L6XKUP4X.js";
10
- import "../chunk-6MDQX6SE.js";
11
- import "../chunk-6WDAMNXB.js";
9
+ } from "../chunk-PZ3Z6CQ2.js";
10
+ import "../chunk-R3HOGWRU.js";
11
+ import "../chunk-L4KESOHQ.js";
12
12
  export {
13
13
  CommandLineCompiler,
14
14
  FileSystemUri,
@@ -3,6 +3,7 @@ import {
3
3
  AccessedFunction_typeMember,
4
4
  AccessorEntity,
5
5
  Analyzer3 as Analyzer,
6
+ ArtelSourceAndConfigurationFileExtensionSet,
6
7
  Cached,
7
8
  CancelledError,
8
9
  CompilationLoader,
@@ -141,7 +142,7 @@ import {
141
142
  traverseTreeAsync,
142
143
  traverseTreeAsync2,
143
144
  yieldTask
144
- } from "../chunk-6WDAMNXB.js";
145
+ } from "../chunk-L4KESOHQ.js";
145
146
 
146
147
  // source/services/common/Types.ts
147
148
  import * as ls from "vscode-languageserver";
@@ -18690,6 +18691,10 @@ var _LanguageServer = class _LanguageServer {
18690
18691
  this.disposables.push(disposable);
18691
18692
  disposable = this.connection.onCodeActionResolve((params, token) => this.withTaskController(token, (taskController) => this.onCodeActionResolve(params, taskController)));
18692
18693
  this.disposables.push(disposable);
18694
+ disposable = this.connection.workspace.onDidDeleteFiles((params) => this.onDidDeleteFiles(params));
18695
+ this.disposables.push(disposable);
18696
+ disposable = this.connection.workspace.onDidRenameFiles((params) => this.onDidRenameFiles(params));
18697
+ this.disposables.push(disposable);
18693
18698
  disposable = this.connection.onRequest(customRequests.getLocalesAvailableForTranslation, (params, token) => this.withTaskController(token, (_taskController) => __async(this, null, function* () {
18694
18699
  return void 0;
18695
18700
  })));
@@ -18802,6 +18807,7 @@ var _LanguageServer = class _LanguageServer {
18802
18807
  this.definitionServiceM = new DefinitionServiceM(this.sourceGenerationService);
18803
18808
  this.isInitialized = true;
18804
18809
  Logger.info(`\u0418\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u0441\u0435\u0440\u0432\u0438\u0441\u043E\u0432 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 \u0437\u0430 ${Math.round(performance.now() - initializeStartTime)} \u043C\u0441.`);
18810
+ const artelAndConfigurationFilesGlob = `**/*{${Array.from(ArtelSourceAndConfigurationFileExtensionSet).join(",")}}`;
18805
18811
  return {
18806
18812
  capabilities: {
18807
18813
  textDocumentSync: {
@@ -18813,6 +18819,22 @@ var _LanguageServer = class _LanguageServer {
18813
18819
  workspaceFolders: {
18814
18820
  supported: true,
18815
18821
  changeNotifications: true
18822
+ },
18823
+ fileOperations: {
18824
+ didDelete: {
18825
+ filters: [{
18826
+ pattern: {
18827
+ glob: artelAndConfigurationFilesGlob
18828
+ }
18829
+ }]
18830
+ },
18831
+ didRename: {
18832
+ filters: [{
18833
+ pattern: {
18834
+ glob: artelAndConfigurationFilesGlob
18835
+ }
18836
+ }]
18837
+ }
18816
18838
  }
18817
18839
  },
18818
18840
  definitionProvider: true,
@@ -19986,6 +20008,43 @@ ${e}`);
19986
20008
  Debug.never(kind);
19987
20009
  }
19988
20010
  }
20011
+ onDidDeleteFiles(params) {
20012
+ return __async(this, null, function* () {
20013
+ for (const fileDelete of params.files) {
20014
+ const uri = this.convertVscodeUriToUri(URI.parse(fileDelete.uri));
20015
+ if (isSourceOrConfigurationFileName(uri)) {
20016
+ yield this.clearDiagnostics(uri);
20017
+ }
20018
+ }
20019
+ });
20020
+ }
20021
+ onDidRenameFiles(params) {
20022
+ return __async(this, null, function* () {
20023
+ for (const fileRename of params.files) {
20024
+ const uri = this.convertVscodeUriToUri(URI.parse(fileRename.oldUri));
20025
+ if (isSourceOrConfigurationFileName(uri)) {
20026
+ yield this.clearDiagnostics(uri);
20027
+ }
20028
+ }
20029
+ });
20030
+ }
20031
+ clearDiagnostics(uri) {
20032
+ return __async(this, null, function* () {
20033
+ if (this.workspaceDiagnosticsPartialResultToken !== void 0) {
20034
+ const report = {
20035
+ kind: "full",
20036
+ uri: this.convertUriToVscodeUri(uri).toString(),
20037
+ items: [],
20038
+ version: null
20039
+ };
20040
+ yield this.connection.sendProgress(
20041
+ ls3.WorkspaceDiagnosticRequest.type,
20042
+ this.workspaceDiagnosticsPartialResultToken,
20043
+ { items: [report] }
20044
+ );
20045
+ }
20046
+ });
20047
+ }
19989
20048
  onRawPackageConfigurationsChanged(configurations) {
19990
20049
  return __async(this, null, function* () {
19991
20050
  for (const configuration of configurations) {
@@ -780,7 +780,7 @@ var UniqueWithComparatorQuery = class extends Query {
780
780
  };
781
781
 
782
782
  // source/common/Constants.ts
783
- var ArtelVersion = true ? "0.9.26039-pre-release" : "";
783
+ var ArtelVersion = true ? "0.9.26040-pre-release" : "";
784
784
  var ArtelSourceFileExtensions = [".\u0430\u0440\u0442", ".\u0430\u0440\u0442\u0435\u043B\u044C", ".art", ".artel", ".\u0430\u0440\u0442\u043C", ".\u0430\u0440\u0442\u0435\u043B\u044C\u043C", ".artm", ".artelm"];
785
785
  var ArtelSourceFileExtensionSet = new Set(ArtelSourceFileExtensions);
786
786
  var ArtelSourceAndConfigurationFileExtensionSet = new Set(ArtelSourceFileExtensionSet).add(".json");
@@ -3789,8 +3789,10 @@ var russianKeywords2 = new Lazy(() => [
3789
3789
  { keyword: "\u0443\u043A", kind: 1027 /* Pointer */ },
3790
3790
  { keyword: "\u0431\u0430\u0437\u0430", kind: 1002 /* Base */ },
3791
3791
  { keyword: "\u0432\u043E\u0437\u0432\u0440\u0430\u0442", kind: 1028 /* Return */ },
3792
- { keyword: "\u0432\u0441\u0451", kind: 1011 /* End */ },
3792
+ { keyword: "\u043A\u0431", kind: 1011 /* End */ },
3793
+ // конец блока
3793
3794
  { keyword: "\u0432\u0441\u0435", kind: 1011 /* End */ },
3795
+ { keyword: "\u0432\u0441\u0451", kind: 1011 /* End */ },
3794
3796
  { keyword: "\u0432\u044B\u0434\u0430\u0447\u0430", kind: 1037 /* Yield */ },
3795
3797
  { keyword: "\u0434\u0430", kind: 1036 /* Yes */ },
3796
3798
  { keyword: "\u0435\u0441\u043B\u0438", kind: 1018 /* If */ },
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Compiler
3
- } from "./chunk-6MDQX6SE.js";
3
+ } from "./chunk-R3HOGWRU.js";
4
4
  import {
5
5
  ArtelVersion,
6
6
  Cached,
@@ -16,7 +16,7 @@ import {
16
16
  __async,
17
17
  performanceMeasurementStageNames,
18
18
  performanceMeasurementStages
19
- } from "./chunk-6WDAMNXB.js";
19
+ } from "./chunk-L4KESOHQ.js";
20
20
 
21
21
  // source/executor/FileSystemUri.ts
22
22
  import { platform } from "os";
@@ -10,7 +10,7 @@ import {
10
10
  WellKnownDeclarationsLoadError,
11
11
  __async,
12
12
  createTsInteropInputsForCompilation
13
- } from "./chunk-6WDAMNXB.js";
13
+ } from "./chunk-L4KESOHQ.js";
14
14
 
15
15
  // source/executor/Compiler.ts
16
16
  var Compiler = class {
@@ -106,6 +106,9 @@ export declare class LanguageServer {
106
106
  private onCodeActionResolve;
107
107
  private convertCodeAction;
108
108
  private convertCodeActionKind;
109
+ private onDidDeleteFiles;
110
+ private onDidRenameFiles;
111
+ private clearDiagnostics;
109
112
  private onRawPackageConfigurationsChanged;
110
113
  private convertSourceFileRange;
111
114
  private getSourceFileContext;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artel/artc",
3
- "version": "0.9.26039-pre-release",
3
+ "version": "0.9.26040-pre-release",
4
4
  "description": "Артель Компилятор | Artel Compiler",
5
5
  "author": "Nezaboodka Team <contact@nezaboodka.com>",
6
6
  "license": "Apache-2.0",