-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): update packages/service/vscode digest to 9fda43d (#141)
* fix(deps): update packages/service/vscode digest to 9fda43d * update --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: yioneko <yioneko@outlook.com>
- Loading branch information
1 parent
1872b8e
commit 983dbe5
Showing
8 changed files
with
74 additions
and
56 deletions.
There are no files selected for viewing
34 changes: 6 additions & 28 deletions
34
packages/service/patches/015-disable-bufsync-tab-resource.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,15 @@ | ||
diff --git a/src/tsServer/bufferSyncSupport.ts b/src/tsServer/bufferSyncSupport.ts | ||
index 608ec60..e766a71 100644 | ||
index 9f5d76f..806d073 100644 | ||
--- a/src/tsServer/bufferSyncSupport.ts | ||
+++ b/src/tsServer/bufferSyncSupport.ts | ||
@@ -379,19 +379,7 @@ class TabResourceTracker extends Disposable { | ||
@@ -756,10 +756,6 @@ export default class BufferSyncSupport extends Disposable { | ||
return false; | ||
} | ||
|
||
this._tabResources = new ResourceMap<{ readonly tabs: Set<vscode.Tab> }>(normalizePath, config); | ||
|
||
- for (const tabGroup of vscode.window.tabGroups.all) { | ||
- for (const tab of tabGroup.tabs) { | ||
- this.add(tab); | ||
- } | ||
- } | ||
|
||
- this._register(vscode.window.tabGroups.onDidChangeTabs(e => { | ||
- const closed = e.closed.flatMap(tab => this.delete(tab)); | ||
- const opened = e.opened.flatMap(tab => this.add(tab)); | ||
- if (closed.length || opened.length) { | ||
- this._onDidChange.fire({ closed, opened }); | ||
- } | ||
- })); | ||
} | ||
|
||
public has(resource: vscode.Uri): boolean { | ||
@@ -745,9 +733,9 @@ export default class BufferSyncSupport extends Disposable { | ||
} | ||
|
||
private shouldValidate(buffer: SyncedBuffer): boolean { | ||
- if (!this.client.configuration.enableProjectDiagnostics && !this._tabResources.has(buffer.resource)) { // Only validate resources that are showing to the user | ||
- return false; | ||
- } | ||
+ // if (!this.client.configuration.enableProjectDiagnostics && !this._tabResources.has(buffer.resource)) { // Only validate resources that are showing to the user | ||
+ // return false; | ||
+ // } | ||
|
||
- | ||
switch (buffer.languageId) { | ||
case languageModeIds.javascript: | ||
case languageModeIds.javascriptreact: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/src/tsServer/protocol/protocol.d.ts b/src/tsServer/protocol/protocol.d.ts | ||
index 45e09d6..5a001ca 100644 | ||
--- a/src/tsServer/protocol/protocol.d.ts | ||
+++ b/src/tsServer/protocol/protocol.d.ts | ||
@@ -2,7 +2,7 @@ | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
-import type ts from '../../../../node_modules/typescript/lib/typescript'; | ||
+import type ts from 'typescript/lib/tsserverlibrary'; | ||
export = ts.server.protocol; | ||
|
||
|
||
@@ -11,7 +11,7 @@ declare enum ServerType { | ||
Semantic = 'semantic', | ||
} | ||
|
||
-declare module '../../../../node_modules/typescript/lib/typescript' { | ||
+declare module 'typescript/lib/tsserverlibrary' { | ||
namespace server.protocol { | ||
type TextInsertion = ts.TextInsertion; | ||
type ScriptElementKind = ts.ScriptElementKind; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
import * as vscode from "vscode"; | ||
import { Emitter } from "vscode-languageserver-protocol"; | ||
|
||
export function createExtensionsShim() { | ||
export function createExtensionsShim(): typeof vscode.extensions { | ||
return { | ||
onDidChange: new Emitter().event, | ||
onDidChange: new Emitter<void>().event, | ||
all: [], | ||
getExtension() { | ||
return undefined; | ||
}, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule vscode
updated
1812 files