Skip to content

Commit

Permalink
fix(deps): update packages/service/vscode digest to 6243562 (#88)
Browse files Browse the repository at this point in the history
* fix(deps): update packages/service/vscode digest to 6243562

* updates

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: yioneko <yioneko@outlook.com>
  • Loading branch information
renovate[bot] and yioneko committed Jul 11, 2023
1 parent d79cb57 commit a44f086
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 32 deletions.
4 changes: 2 additions & 2 deletions packages/service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
"@vscode/l10n": "^0.0.14",
"@vtsls/vscode-fuzzy": "workspace:0.0.1",
"jsonc-parser": "^3.2.0",
"semver": "5.5.1",
"semver": "7.5.2",
"typescript": "5.1.3",
"vscode-languageserver-protocol": "^3.17.3",
"vscode-languageserver-textdocument": "^1.0.8",
"vscode-uri": "^3.0.7"
},
"devDependencies": {
"@types/semver": "^5.5.0",
"@types/semver": "^7.5.0",
"esbuild": "^0.17.19",
"vitest": "^0.31.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/service/src/shims/diagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export class DiagnosticCollection implements vscode.DiagnosticCollection {

private keys(): URI[] {
const keys = [];
for (const { resource } of this._data.entries) {
for (const { resource } of this._data.entries()) {
keys.push(resource);
}
return keys;
Expand Down
2 changes: 1 addition & 1 deletion packages/service/src/shims/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ export class WorkspaceEdit {
textEdit[1].push(candidate.edit);
}
}
return [...textEdits.values];
return [...textEdits.values()];
}

get size(): number {
Expand Down
8 changes: 4 additions & 4 deletions packages/service/src/shims/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ export class WorkspaceShimService extends Disposable {

get textDocuments(): vscode.TextDocument[] {
const result = [];
for (const doc of this._documents.values) {
for (const doc of this._documents.values()) {
result.push(this.delegate.converter.convertTextDocuemntFromLsp(doc));
}
return result;
}

$getDocumentByLspUri(uri: lsp.URI): TextDocument | undefined {
for (const doc of this._documents.values) {
for (const doc of this._documents.values()) {
if (doc.uri == uri) {
return doc;
}
Expand All @@ -91,7 +91,7 @@ export class WorkspaceShimService extends Disposable {

get workspaceFolders(): vscode.WorkspaceFolder[] {
const result = [];
for (const folder of this._workspaceFolders.values) {
for (const folder of this._workspaceFolders.values()) {
result.push(folder);
}
return result;
Expand Down Expand Up @@ -191,7 +191,7 @@ export class WorkspaceShimService extends Disposable {
}

getWorkspaceFolder(uri: vscode.Uri): vscode.WorkspaceFolder | undefined {
for (const folder of this._workspaceFolders.values) {
for (const folder of this._workspaceFolders.values()) {
const fUri = folder.uri;
const fPathWithSlash = fUri.path.endsWith("/") ? fUri.path : fUri.path + "/";
// ignore query and fragment
Expand Down
2 changes: 1 addition & 1 deletion packages/service/src/utils/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class TSLspConverter extends LspInvariantConverter {
};
} else {
const changes: lsp.WorkspaceEdit["changes"] = {};
for (const { resource: uri, value: edits } of textEditsByUri.entries) {
for (const { resource: uri, value: edits } of textEditsByUri.entries()) {
changes[uri.toString()] = edits;
}
return { changes };
Expand Down
2 changes: 1 addition & 1 deletion packages/service/vscode
Submodule vscode updated 999 files
40 changes: 18 additions & 22 deletions pnpm-lock.yaml

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

0 comments on commit a44f086

Please sign in to comment.