Skip to content

Commit 10a1daa

Browse files
Disable debounced behavior for documentSymbols (#178)
1 parent 451e42a commit 10a1daa

File tree

9 files changed

+13
-22
lines changed

9 files changed

+13
-22
lines changed

client/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vscode-powerquery-client",
3-
"version": "0.0.51",
3+
"version": "0.0.52",
44
"description": "VS Code part of language server",
55
"author": "Microsoft Corporation",
66
"license": "MIT",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vscode-powerquery",
3-
"version": "0.1.49",
3+
"version": "0.1.50",
44
"displayName": "Power Query / M Language",
55
"description": "Language service for the Power Query / M formula language",
66
"author": "Microsoft Corporation",

scripts/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vscode-powerquery-scripts",
3-
"version": "0.0.51",
3+
"version": "0.0.52",
44
"description": "Scripts for vscode-powerquery repository",
55
"author": "Microsoft Corporation",
66
"license": "MIT",

server/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vscode-powerquery-server",
3-
"version": "0.0.51",
3+
"version": "0.0.52",
44
"description": "Power Query language server implementation.",
55
"author": "Microsoft Corporation",
66
"license": "MIT",

server/src/server.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@ const connection: LS.Connection = LS.createConnection(LS.ProposedFeatures.all);
3131
const documents: LS.TextDocuments<TextDocument> = new LS.TextDocuments(TextDocument);
3232
const moduleLibraries: ModuleLibraries = new ModuleLibraries();
3333

34-
const debouncedDocumentSymbols: (
35-
this: unknown,
36-
params: LS.DocumentSymbolParams,
37-
cancellationToken: LS.CancellationToken,
38-
) => Promise<LS.DocumentSymbol[] | undefined> = FuncUtils.partitionFn(
39-
() => FuncUtils.debounce(documentSymbols, 250),
40-
(params: LS.DocumentSymbolParams, _cancellationToken: LS.CancellationToken) => params.textDocument.uri.toString(),
41-
);
42-
4334
const debouncedValidateDocument: (this: unknown, textDocument: PQLS.TextDocument) => Promise<void> =
4435
FuncUtils.partitionFn(
4536
() => FuncUtils.debounce(validateDocument, 250),
@@ -155,7 +146,7 @@ connection.onFoldingRanges(async (params: LS.FoldingRangeParams, cancellationTok
155146
}
156147
});
157148

158-
connection.onDocumentSymbol(debouncedDocumentSymbols);
149+
connection.onDocumentSymbol(documentSymbols);
159150

160151
connection.onHover(
161152
async (params: LS.TextDocumentPositionParams, cancellationToken: LS.CancellationToken): Promise<LS.Hover> => {

0 commit comments

Comments
 (0)