Skip to content

Commit

Permalink
Merge remote branch 'origin/master' into edge
Browse files Browse the repository at this point in the history
  • Loading branch information
automatic-merge committed Oct 3, 2023
2 parents 349ddd4 + fd2acd5 commit 50b05c5
Show file tree
Hide file tree
Showing 873 changed files with 92,006 additions and 20,868 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ else
endif

all: coverage-instrument
$(GPRBUILD) -P gnat/lsp_3_17.gpr -p $(COVERAGE_BUILD_FLAGS)
$(GPRBUILD) -P gnat/tester.gpr -p $(BUILD_FLAGS)
$(GPRBUILD) -d -ws -c -u -P gnat/lsp_server.gpr -p $(BUILD_FLAGS) s-memory.adb
$(GPRBUILD) -P gnat/lsp_server.gpr -p $(COVERAGE_BUILD_FLAGS) \
-XVERSION=$(VERSION) -XBUILD_DATE=$(BUILD_DATE)
$(GPRBUILD) -P gnat/codec_test.gpr -p $(COVERAGE_BUILD_FLAGS)
$(GPRBUILD) -P gnat/lsp_client.gpr -p $(COVERAGE_BUILD_FLAGS) \
-XVERSION=$(VERSION)
$(GPRBUILD) -P gnat/lsp_client.gpr -p $(COVERAGE_BUILD_FLAGS)
ifdef NODE
mkdir -p integration/vscode/ada/$(NODE_ARCH)/$(NODE_PLATFORM)
cp -f $(ALS) integration/vscode/ada/$(NODE_ARCH)/$(NODE_PLATFORM)
Expand Down Expand Up @@ -137,6 +137,7 @@ endif

clean:
-$(GPRCLEAN) -P gnat/lsp.gpr $(LIBRARY_FLAGS)
-$(GPRCLEAN) -P gnat/lsp_3_17.gpr $(LIBRARY_FLAGS)
-$(GPRCLEAN) -P gnat/lsp_server.gpr $(LIBRARY_FLAGS)
-$(GPRCLEAN) -P gnat/tester.gpr $(LIBRARY_FLAGS)
-$(GPRCLEAN) -P gnat/codec_test.gpr $(LIBRARY_FLAGS)
Expand Down Expand Up @@ -165,7 +166,7 @@ check: all
set -e; \
export PYTHON=$(PYTHON); \
if [ `$(PYTHON) -c "import sys;print('e3' in sys.modules)"` = "True" ]; then\
(cd testsuite ; sh run.sh ) ; \
(cd testsuite ; sh run.sh $(test)) ; \
else \
for a in testsuite/*_lsp/*/*.json; do \
echo $$a ; \
Expand Down
21 changes: 5 additions & 16 deletions doc/debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,19 @@

## Short introduction

This request is used to test language server.
This command `als-suspend-execution` is used to test language server.

## Change description

Currently debug request has only one kind:
Currently `als-suspend-execution` debug command has only one argument:

* Suspend_Execution - stop processing task until input queue has given
* inputQueueLength - integer

On execution it stops processing task until input queue has given
number of messages. After getting this request ALS stops message
processing, but still accepts new requests/notifications. Once
number of input messages reaches given limit, ALS resumes message
processing.

New request:
* Method: `$/alsDebug`
* params: `AlsDebugParams` defined as follows:

```typescript
interface AlsDebugSuspendExecution {
inputQueueLength : number; /* Min input queue length */
}

export type AlsDebugParams = AlsDebugSuspendExecution;

```

Response:
* result: `null`
Loading

0 comments on commit 50b05c5

Please sign in to comment.